	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_ll2_acquire_connection_ooo
_qed_ll2_acquire_connection_ooo:        ## @qed_ll2_acquire_connection_ooo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	movq	_QED_LL2_TYPE_OOO@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	cmpq	(%rbx), %rcx
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 8(%rsi)
	jne	LBB0_6
## %bb.2:
	movl	12(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	addl	%eax, %eax
	movl	%eax, 8(%rsi)
LBB0_6:
	addl	$26, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	_ETH_CACHE_LINE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%rbx)
	movl	(%rcx), %esi
	addl	%esi, %eax
	decl	%eax
	negl	%esi
	andl	%eax, %esi
	movl	%esi, (%rbx)
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rdx
	addq	$16, %rdx
	movq	%r14, %r15
	movl	(%r14), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, 8(%rbx)
	movl	(%r12), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_qed_ooo_put_free_buffer
	incl	%r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	8(%rsi), %ecx
	cmpl	%ecx, %r13d
	movq	%r15, %r14
	jl	LBB0_7
## %bb.12:
	movq	_QED_MSG_LL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_DP_VERBOSE
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_LL2_TYPE_OOO,8,3           ## @QED_LL2_TYPE_OOO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_CACHE_LINE_SIZE,4,2        ## @ETH_CACHE_LINE_SIZE
	.comm	_QED_MSG_LL2,4,2                ## @QED_MSG_LL2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocated [%04x] LL2 OOO buffers [each of size 0x%08x]\n"

	.no_dead_strip	_qed_ll2_acquire_connection_ooo
.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_ooo
_qed_ll2_acquire_connection_ooo:        ; @qed_ll2_acquire_connection_ooo
	.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	x8, [x1]
Lloh0:
	adrp	x9, _QED_LL2_TYPE_OOO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_LL2_TYPE_OOO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #8]
	cbnz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_12
; %bb.3:
	lsl	w8, w8, #1
	str	w8, [x20, #8]
LBB0_4:
	mov	w22, #0
	add	w23, w2, #26
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x25, _ETH_CACHE_LINE_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ETH_CACHE_LINE_SIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	ldr	w8, [x25]
	add	w8, w23, w8
	str	w8, [x0]
	ldr	w9, [x25]
	add	w8, w8, w9
	sub	w8, w8, #1
	neg	w9, w9
	and	w1, w8, w9
	mov	x2, x0
	str	w1, [x2], #16
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w3, [x24]
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x21, #8]
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	bl	_qed_ooo_put_free_buffer
	add	w22, w22, #1
	ldr	w3, [x20, #8]
	cmp	w22, w3
	b.lt	LBB0_5
; %bb.8:
Lloh7:
	adrp	x8, _QED_MSG_LL2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QED_MSG_LL2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w4, [x21]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	mov	x0, x21
	bl	_kfree
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_LL2_TYPE_OOO,8,3           ; @QED_LL2_TYPE_OOO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_CACHE_LINE_SIZE,4,2        ; @ETH_CACHE_LINE_SIZE
	.comm	_QED_MSG_LL2,4,2                ; @QED_MSG_LL2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocated [%04x] LL2 OOO buffers [each of size 0x%08x]\n"

	.no_dead_strip	_qed_ll2_acquire_connection_ooo
.subsections_via_symbols
