	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sched_skb
_sched_skb:                             ## @sched_skb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movq	16(%r13), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	___skb_queue_tail
	movq	8(%r13), %rax
	incq	%rax
	movq	%rax, 8(%r13)
	jmp	LBB0_4
LBB0_1:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	cmpl	%r15d, %ecx
	ja	LBB0_18
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_NPORTS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_11
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movq	_MAX_NPORTS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r14d
	jae	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	incl	%eax
	movl	%eax, (%r13)
	movl	(%rbx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	16(%r13), %rax
	leaq	(%rax,%rcx,8), %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movl	(%rax), %ecx
	movq	16(%r13), %rax
	movl	(%r13), %edx
	movl	(%rax,%rdx,8), %esi
	cmpl	%ecx, %esi
	jb	LBB0_10
	jmp	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sched_update_avail
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	cmpl	$0, (%rbx)
	je	LBB0_17
## %bb.13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r14d
	movq	_MAX_NPORTS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r14d
	jae	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	incl	%eax
	movl	%eax, (%r13)
	movl	(%rbx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	16(%r13), %rax
	leaq	(%rax,%rcx,8), %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r12
	movl	(%rax), %ecx
	movq	16(%r13), %rax
	movl	(%r13), %edx
	movl	(%rax,%rdx,8), %esi
	cmpl	%ecx, %esi
	jb	LBB0_16
LBB0_9:
	subl	%ecx, %esi
	movl	%edx, %ecx
	movl	%esi, (%rax,%rcx,8)
	decq	8(%r13)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___skb_unlink
	jmp	LBB0_22
LBB0_17:
	movq	8(%r13), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rbx, %r15
	movq	8(%rbx), %rbx
	movq	_CMDQ_STAT_LAST_PKT_DB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_CMDQ_STAT_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_F_CMDQ0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	_A_SG_DOORBELL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_writel
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_debug
LBB0_23:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sched_skb %p\n"

	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_MAX_NPORTS,4,2                 ## @MAX_NPORTS
	.comm	_CMDQ_STAT_LAST_PKT_DB,4,2      ## @CMDQ_STAT_LAST_PKT_DB
	.comm	_CMDQ_STAT_RUNNING,4,2          ## @CMDQ_STAT_RUNNING
	.comm	_F_CMDQ0_ENABLE,4,2             ## @F_CMDQ0_ENABLE
	.comm	_A_SG_DOORBELL,8,3              ## @A_SG_DOORBELL
L_.str.1:                               ## @.str.1
	.asciz	"sched_skb ret %p\n"

	.no_dead_strip	_sched_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sched_skb
_sched_skb:                             ; @sched_skb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #4
	mov	x1, x21
	bl	___skb_queue_tail
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_23
LBB0_3:
Lloh2:
	adrp	x9, _MAX_SKB_FRAGS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w9, w9, #1
	cmp	w9, w20
	b.hi	LBB0_17
; %bb.4:
Lloh5:
	adrp	x23, _MAX_NPORTS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MAX_NPORTS@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.5:
	mov	w24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w9, [x23]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x22]
	ldr	x9, [x22, #16]
	add	x8, x9, w8, uxtw #3
	add	x21, x8, #4
	mov	x0, x21
	bl	_skb_peek
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x9, [x22, #16]
	ldr	w10, [x22]
	add	x9, x9, x10, lsl #3
	ldr	w10, [x9]
	cmp	w10, w8
	b.lo	LBB0_6
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_sched_update_avail
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w8, [x23]
	cbz	w8, LBB0_16
; %bb.11:
	mov	w24, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.hs	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w9, [x23]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x22]
	ldr	x9, [x22, #16]
	add	x8, x9, w8, uxtw #3
	add	x21, x8, #4
	mov	x0, x21
	bl	_skb_peek
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x9, [x22, #16]
	ldr	w10, [x22]
	add	x9, x9, x10, lsl #3
	ldr	w10, [x9]
	cmp	w10, w8
	b.lo	LBB0_12
LBB0_15:
	sub	w8, w10, w8
	str	w8, [x9]
	ldr	x8, [x22, #8]
	sub	x8, x8, #1
	str	x8, [x22, #8]
	mov	x0, x20
	mov	x1, x21
	bl	___skb_unlink
	b	LBB0_21
LBB0_16:
	ldr	x8, [x22, #8]
LBB0_17:
	cbz	x8, LBB0_20
; %bb.18:
	ldr	x20, [x19, #8]
Lloh7:
	adrp	x21, _CMDQ_STAT_LAST_PKT_DB@GOTPAGE
Lloh8:
	ldr	x21, [x21, _CMDQ_STAT_LAST_PKT_DB@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
Lloh9:
	adrp	x8, _CMDQ_STAT_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMDQ_STAT_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_set_bit
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_set_bit
Lloh12:
	adrp	x8, _F_CMDQ0_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F_CMDQ0_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _A_SG_DOORBELL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _A_SG_DOORBELL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_20:
	mov	x20, #0
LBB0_21:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x20, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sched_skb %p\n"

	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_MAX_NPORTS,4,2                 ; @MAX_NPORTS
	.comm	_CMDQ_STAT_LAST_PKT_DB,4,2      ; @CMDQ_STAT_LAST_PKT_DB
	.comm	_CMDQ_STAT_RUNNING,4,2          ; @CMDQ_STAT_RUNNING
	.comm	_F_CMDQ0_ENABLE,4,2             ; @F_CMDQ0_ENABLE
	.comm	_A_SG_DOORBELL,8,3              ; @A_SG_DOORBELL
l_.str.1:                               ; @.str.1
	.asciz	"sched_skb ret %p\n"

	.no_dead_strip	_sched_skb
.subsections_via_symbols
