	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_alloc_net_req_rsp_queues
_ql_alloc_net_req_rsp_queues:           ## @ql_alloc_net_req_rsp_queues
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_NUM_REQ_Q_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, (%rdi)
	movq	_NUM_RSP_Q_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 4(%rdi)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wmb
	movl	24(%rbx), %edi
	movslq	(%rbx), %rsi
	leaq	12(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_LS_64BITS
	movl	(%rbx), %ecx
	decl	%ecx
	testl	%eax, %ecx
	je	LBB0_5
LBB0_2:
	movl	28(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	24(%rbx), %edi
	movslq	4(%rbx), %rsi
	leaq	32(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	32(%rbx), %edi
	callq	_LS_64BITS
	movl	4(%rbx), %ecx
	decl	%ecx
	testl	%eax, %ecx
	je	LBB0_8
LBB0_7:
	movl	28(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	movl	24(%rbx), %edi
	movslq	(%rbx), %rsi
	movq	16(%rbx), %rdx
	movl	12(%rbx), %ecx
	callq	_pci_free_consistent
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_8:
	movq	_QL_ALLOC_REQ_RSP_Q_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_REQ_Q_ENTRIES,4,2          ## @NUM_REQ_Q_ENTRIES
	.comm	_NUM_RSP_Q_ENTRIES,4,2          ## @NUM_RSP_Q_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reqQ failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"rspQ allocation failed\n"

	.comm	_QL_ALLOC_REQ_RSP_Q_DONE,4,2    ## @QL_ALLOC_REQ_RSP_Q_DONE
	.no_dead_strip	_ql_alloc_net_req_rsp_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_alloc_net_req_rsp_queues
_ql_alloc_net_req_rsp_queues:           ; @ql_alloc_net_req_rsp_queues
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NUM_REQ_Q_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_REQ_Q_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	str	w8, [x0]
Lloh3:
	adrp	x8, _NUM_RSP_Q_ENTRIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_RSP_Q_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	str	w8, [x0, #4]
	bl	_wmb
	ldr	w0, [x19, #24]
	ldrsw	x1, [x19]
	add	x2, x19, #12
	bl	_pci_alloc_consistent
	str	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_LS_64BITS
	ldr	w8, [x19]
	sub	w8, w8, #1
	tst	w8, w0
	b.eq	LBB0_5
LBB0_2:
	ldr	w0, [x19, #28]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19, #24]
	ldrsw	x1, [x19, #4]
	add	x2, x19, #32
	bl	_pci_alloc_consistent
	str	x0, [x19, #40]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_LS_64BITS
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	tst	w8, w0
	b.eq	LBB0_8
LBB0_7:
	ldr	w0, [x19, #28]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	ldr	w0, [x19, #24]
	ldrsw	x1, [x19]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #12]
	bl	_pci_free_consistent
	b	LBB0_3
LBB0_8:
Lloh13:
	adrp	x8, _QL_ALLOC_REQ_RSP_Q_DONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QL_ALLOC_REQ_RSP_Q_DONE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_REQ_Q_ENTRIES,4,2          ; @NUM_REQ_Q_ENTRIES
	.comm	_NUM_RSP_Q_ENTRIES,4,2          ; @NUM_RSP_Q_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reqQ failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"rspQ allocation failed\n"

	.comm	_QL_ALLOC_REQ_RSP_Q_DONE,4,2    ; @QL_ALLOC_REQ_RSP_Q_DONE
	.no_dead_strip	_ql_alloc_net_req_rsp_queues
.subsections_via_symbols
