	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_ll2_acquire_connection_rx
_qed_ll2_acquire_connection_rx:         ## @qed_ll2_acquire_connection_rx
	.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	(%rsi), %r8d
	xorl	%r15d, %r15d
	testl	%r8d, %r8d
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QED_CHAIN_MODE_NEXT_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QED_CHAIN_CNT_TYPE_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	24(%r12), %r13
	movl	$4, %r9d
	pushq	$0
	pushq	%r13
	callq	_qed_chain_alloc
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movl	%ebx, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	callq	_qed_chain_get_capacity
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	8(%r12), %rbx
	movq	%rax, 16(%r12)
	movl	(%r14), %edi
	movq	_QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QED_CHAIN_MODE_PBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QED_CHAIN_CNT_TYPE_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movl	$4, %r9d
	pushq	$0
	pushq	%rbx
	callq	_qed_chain_alloc
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	jmp	LBB0_9
LBB0_8:
	movq	_QED_MSG_LL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_DP_VERBOSE
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ## @QED_CHAIN_USE_TO_CONSUME_PRODUCE
	.comm	_QED_CHAIN_MODE_NEXT_PTR,4,2    ## @QED_CHAIN_MODE_NEXT_PTR
	.comm	_QED_CHAIN_CNT_TYPE_U16,4,2     ## @QED_CHAIN_CNT_TYPE_U16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate ll2 rxq chain\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate ll2 Rx desc\n"

	.comm	_QED_CHAIN_MODE_PBL,4,2         ## @QED_CHAIN_MODE_PBL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate ll2 rcq chain\n"

	.comm	_QED_MSG_LL2,4,2                ## @QED_MSG_LL2
L_.str.3:                               ## @.str.3
	.asciz	"Allocated LL2 Rxq [Type %08x] with 0x%08x buffers\n"

	.no_dead_strip	_qed_ll2_acquire_connection_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_ll2_acquire_connection_rx
_qed_ll2_acquire_connection_rx:         ; @qed_ll2_acquire_connection_rx
	.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
	ldr	w4, [x1]
	cbz	w4, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x23, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _QED_CHAIN_MODE_NEXT_PTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_CHAIN_MODE_NEXT_PTR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x24, _QED_CHAIN_CNT_TYPE_U16@GOTPAGE
Lloh6:
	ldr	x24, [x24, _QED_CHAIN_CNT_TYPE_U16@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x22, x20, #24
	mov	w5, #4
	mov	x6, x22
	mov	x7, #0
	bl	_qed_chain_alloc
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_DP_NOTICE
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	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_6:
	mov	x0, x22
	bl	_qed_chain_get_capacity
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_9
; %bb.7:
	add	x6, x20, #8
	str	x0, [x20, #16]
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _QED_CHAIN_MODE_PBL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QED_CHAIN_MODE_PBL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x24]
	ldr	w4, [x20]
	mov	w5, #4
	mov	x7, #0
	bl	_qed_chain_alloc
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_10:
Lloh22:
	adrp	x8, _QED_MSG_LL2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QED_MSG_LL2@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldp	w4, w3, [x20]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ; @QED_CHAIN_USE_TO_CONSUME_PRODUCE
	.comm	_QED_CHAIN_MODE_NEXT_PTR,4,2    ; @QED_CHAIN_MODE_NEXT_PTR
	.comm	_QED_CHAIN_CNT_TYPE_U16,4,2     ; @QED_CHAIN_CNT_TYPE_U16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate ll2 rxq chain\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate ll2 Rx desc\n"

	.comm	_QED_CHAIN_MODE_PBL,4,2         ; @QED_CHAIN_MODE_PBL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate ll2 rcq chain\n"

	.comm	_QED_MSG_LL2,4,2                ; @QED_MSG_LL2
l_.str.3:                               ; @.str.3
	.asciz	"Allocated LL2 Rxq [Type %08x] with 0x%08x buffers\n"

	.no_dead_strip	_qed_ll2_acquire_connection_rx
.subsections_via_symbols
