	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_update_lbq
_ql_update_lbq:                         ## @ql_update_lbq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$33, 8(%rsi)
	jl	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%ebx, %ecx
	andl	$15, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %r8
	movq	%rbx, %r9
	callq	_netif_printk
	movq	%r15, %rdi
	movq	40(%r14), %r15
	leaq	(%rbx,%rbx,2), %r13
	leaq	(%r15,%r13,8), %r12
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ql_get_next_chunk
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r15,%r13,8), %r14
	addq	16(%r15,%r13,8), %r14
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_pci_unmap_addr_set
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %edx
	movq	%r12, %rdi
	callq	_pci_unmap_len_set
	movq	%r14, %rdi
	callq	_cpu_to_le64
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_pci_dma_sync_single_for_device
	incq	%rbx
	movq	16(%r14), %rax
	cmpq	%rax, %rbx
	movl	$0, %ecx
	cmoveq	%rcx, %rbx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cmpl	$16, %ecx
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%r14)
	movq	24(%r14), %rcx
	addq	$16, %rcx
	cmpq	%rax, %rcx
	movl	$0, %eax
	cmovneq	%rcx, %rax
	movq	%rax, 24(%r14)
	movl	8(%r14), %eax
	leal	-16(%rax), %ecx
	movl	%ecx, 8(%r14)
	cmpl	$48, %eax
	jg	LBB0_2
## %bb.6:
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, (%r14)
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	leaq	L_.str.1(%rip), %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%rbx, %r9
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_err                      ## TAILCALL
LBB0_9:
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	24(%r14), %r9
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	callq	_netif_printk
	movq	24(%r14), %rdi
	movl	32(%r14), %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ql_write_db_reg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_status,4,2                  ## @rx_status
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lbq: try cleaning clean_idx = %d.\n"

	.comm	_ifup,4,2                       ## @ifup
L_.str.1:                               ## @.str.1
	.asciz	"Could not get a page chunk, i=%d, clean_idx =%d .\n"

	.comm	_mapaddr,4,2                    ## @mapaddr
	.comm	_maplen,4,2                     ## @maplen
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
L_.str.2:                               ## @.str.2
	.asciz	"lbq: updating prod idx = %d.\n"

	.no_dead_strip	_ql_update_lbq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_update_lbq
_ql_update_lbq:                         ; @ql_update_lbq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1, #8]
	cmp	w8, #33
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	w26, #24
Lloh2:
	adrp	x27, _maplen@GOTPAGE
Lloh3:
	ldr	x27, [x27, _maplen@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	and	w23, w21, #0xf
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh6:
	adrp	x8, _rx_status@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rx_status@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x20
	mov	x4, x22
	mov	x5, x21
	bl	_netif_printk
	ldr	x25, [x19, #40]
	madd	x24, x21, x26, x25
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_ql_get_next_chunk
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	madd	x8, x21, x26, x25
	ldp	x8, x9, [x8, #8]
	add	x25, x8, x9
Lloh12:
	adrp	x8, _mapaddr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mapaddr@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x25
	bl	_pci_unmap_addr_set
	ldr	w1, [x27]
	ldr	w2, [x19, #36]
	mov	x0, x24
	bl	_pci_unmap_len_set
	mov	x0, x25
	bl	_cpu_to_le64
	ldr	x8, [x24]
	str	w0, [x8]
	ldr	w0, [x20, #4]
	ldr	w2, [x19, #36]
	ldr	w3, [x28]
	mov	x1, x25
	bl	_pci_dma_sync_single_for_device
	add	x9, x21, #1
	ldr	x8, [x19, #16]
	cmp	x9, x8
	csinc	x21, xzr, x21, eq
	add	w23, w23, #1
	cmp	w23, #16
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x21, [x19]
	ldr	x9, [x19, #24]
	add	x9, x9, #16
	cmp	x9, x8
	csel	x8, xzr, x9, eq
	str	x8, [x19, #24]
	ldr	w8, [x19, #8]
	sub	w9, w8, #16
	str	w9, [x19, #8]
	cmp	w8, #48
	b.gt	LBB0_2
; %bb.6:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x21
	b.ne	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	str	x21, [x19]
Lloh15:
	adrp	x8, _ifup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x23
	mov	x5, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_netif_err
LBB0_9:
Lloh20:
	adrp	x8, _rx_status@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rx_status@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	x5, [x19, #24]
Lloh26:
	adrp	x4, l_.str.2@PAGE
Lloh27:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_printk
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #32]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ql_write_db_reg
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_status,4,2                  ; @rx_status
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lbq: try cleaning clean_idx = %d.\n"

	.comm	_ifup,4,2                       ; @ifup
l_.str.1:                               ; @.str.1
	.asciz	"Could not get a page chunk, i=%d, clean_idx =%d .\n"

	.comm	_mapaddr,4,2                    ; @mapaddr
	.comm	_maplen,4,2                     ; @maplen
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
l_.str.2:                               ; @.str.2
	.asciz	"lbq: updating prod idx = %d.\n"

	.no_dead_strip	_ql_update_lbq
.subsections_via_symbols
