	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_populate_free_queue
_ql_populate_free_queue:                ## @ql_populate_free_queue
	.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
	movq	24(%rdi), %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movq	_QL_HEADER_SPACE@GOTPCREL(%rip), %r13
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	callq	_netdev_alloc_skb
	movq	%rax, 24(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	movq	(%r13), %rsi
	callq	_skb_reserve
	movl	20(%r15), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	subq	(%r13), %rdx
	movl	(%r14), %ecx
	callq	_pci_map_single
	movl	%eax, %r12d
	movl	20(%r15), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_LS_64BITS
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	%r12d, %edi
	callq	_MS_64BITS
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_dma_unmap_addr_set
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	subq	(%r13), %rdx
	movq	%rbx, %rdi
	callq	_dma_unmap_len_set
	decl	(%r15)
	jne	LBB0_9
## %bb.8:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdx
	callq	_netdev_printk
	jmp	LBB0_10
LBB0_6:
	movl	16(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	movq	24(%rbx), %rdi
	callq	_dev_kfree_skb
	movq	$0, 24(%rbx)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed netdev_alloc_skb()\n"

	.comm	_QL_HEADER_SPACE,8,3            ## @QL_HEADER_SPACE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
L_.str.1:                               ## @.str.1
	.asciz	"PCI mapping failed with error: %d\n"

	.comm	_mapaddr,4,2                    ## @mapaddr
	.comm	_maplen,4,2                     ## @maplen
	.no_dead_strip	_ql_populate_free_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_populate_free_queue
_ql_populate_free_queue:                ; @ql_populate_free_queue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0, #24]
	cbz	x19, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _QL_HEADER_SPACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QL_HEADER_SPACE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _mapaddr@GOTPAGE
Lloh5:
	ldr	x24, [x24, _mapaddr@GOTPAGEOFF]
Lloh6:
	adrp	x25, _maplen@GOTPAGE
Lloh7:
	ldr	x25, [x25, _maplen@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19]
	cbz	x19, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
	bl	_netdev_alloc_skb
	str	x0, [x19, #24]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #24]
	ldr	x1, [x22]
	bl	_skb_reserve
	ldr	w0, [x20, #20]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	sub	x2, x8, x9
	ldr	w3, [x23]
	bl	_pci_map_single
	mov	x21, x0
	ldr	w0, [x20, #20]
	mov	x1, x21
	bl	_pci_dma_mapping_error
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_LS_64BITS
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_MS_64BITS
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_dma_unmap_addr_set
	ldr	w1, [x25]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	sub	x2, x8, x9
	mov	x0, x19
	bl	_dma_unmap_len_set
	ldr	w8, [x20]
	subs	w8, w8, #1
	str	w8, [x20]
	b.ne	LBB0_2
; %bb.7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_netdev_printk
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x2, x0
	ldr	w0, [x20, #16]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	ldr	x0, [x19, #24]
	bl	_dev_kfree_skb
	mov	w0, #0
	str	xzr, [x19, #24]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed netdev_alloc_skb()\n"

	.comm	_QL_HEADER_SPACE,8,3            ; @QL_HEADER_SPACE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
l_.str.1:                               ; @.str.1
	.asciz	"PCI mapping failed with error: %d\n"

	.comm	_mapaddr,4,2                    ; @mapaddr
	.comm	_maplen,4,2                     ; @maplen
	.no_dead_strip	_ql_populate_free_queue
.subsections_via_symbols
