	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ooo_alloc                  ## -- Begin function qed_ooo_alloc
	.p2align	4, 0x90
_qed_ooo_alloc:                         ## @qed_ooo_alloc
	.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	%rdi, %r14
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.qed_ooo_alloc(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_qed_cxt_get_proto_cid_count
	movq	%rax, %r15
	movq	_QED_MAX_NUM_ISLES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qed_cxt_get_proto_cid_start
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	movq	%r13, (%r12)
	movq	%rax, 8(%r12)
	leaq	68(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %r13
	addq	$52, %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	addq	$60, %rax
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r12), %rdi
	addq	$56, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	cmpq	$1, %rbx
	je	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rbx
	decq	%rbx
	movl	$128, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r12), %rdi
	addq	%r15, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	addq	$72, %r15
	decq	%rbx
	jne	LBB0_9
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	addq	$48, %rax
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movl	$1, %r15d
	cmpq	$2, %rbx
	cmovaeq	%rbx, %r15
	jb	LBB0_14
## %bb.12:
	decq	%r15
	movl	$120, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	addq	$72, %rbx
	decq	%r15
	jne	LBB0_13
LBB0_14:
	movq	_QED_MAX_NUM_OOO_HISTORY_ENTRIES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%rbx), %rax
	movq	%rax, 32(%r12)
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	movq	24(%r12), %rdi
	callq	_kfree
LBB0_17:
	movq	16(%r12), %rdi
	callq	_kfree
LBB0_18:
	movq	%r12, %rdi
	callq	_kfree
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTOCOLID_ISCSI,4,2           ## @PROTOCOLID_ISCSI
	.comm	_PROTOCOLID_IWARP,4,2           ## @PROTOCOLID_IWARP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate qed_ooo_info: unknown personality\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MAX_NUM_ISLES,8,3          ## @QED_MAX_NUM_ISLES
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate qed_ooo_info: unknown amount of connections\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QED_MAX_NUM_OOO_HISTORY_ENTRIES,8,3 ## @QED_MAX_NUM_OOO_HISTORY_ENTRIES
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_ooo_alloc
l_switch.table.qed_ooo_alloc:
	.quad	_PROTOCOLID_ISCSI
	.quad	_PROTOCOLID_IWARP
	.quad	_PROTOCOLID_IWARP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ooo_alloc                  ; -- Begin function qed_ooo_alloc
	.p2align	2
_qed_ooo_alloc:                         ; @qed_ooo_alloc
	.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
	mov	x19, x0
	ldr	w8, [x0, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_14
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.qed_ooo_alloc@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qed_ooo_alloc@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_qed_cxt_get_proto_cid_count
	mov	x21, x0
Lloh2:
	adrp	x8, _QED_MAX_NUM_ISLES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_MAX_NUM_ISLES@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_cxt_get_proto_cid_start
	cbz	x21, LBB0_15
; %bb.2:
	mov	x22, x0
Lloh5:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_20
; %bb.3:
	mov	x20, x0
	add	x23, x25, x21
	stp	x22, x21, [x0]
	add	x0, x0, #68
	bl	_INIT_LIST_HEAD
	add	x0, x20, #64
	bl	_INIT_LIST_HEAD
	add	x22, x20, #52
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	ldr	w2, [x24]
	mov	x0, x23
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_19
; %bb.4:
	cbz	x23, LBB0_8
; %bb.5:
	add	x0, x0, #60
	bl	_INIT_LIST_HEAD
	ldr	x8, [x20, #16]
	add	x0, x8, #56
	mov	x1, x22
	bl	_list_add_tail
	cmp	x23, #1
	b.eq	LBB0_8
; %bb.6:
	add	x8, x21, x25
	sub	x23, x8, #1
	mov	w25, #128
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x25
	add	x0, x8, #4
	bl	_INIT_LIST_HEAD
	ldr	x8, [x20, #16]
	add	x0, x8, x25
	mov	x1, x22
	bl	_list_add_tail
	add	x25, x25, #72
	subs	x23, x23, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w2, [x24]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_18
; %bb.9:
	cmp	x21, #1
	csinc	x22, x21, xzr, hi
	add	x0, x0, #48
	bl	_INIT_LIST_HEAD
	cmp	x21, #2
	b.lo	LBB0_12
; %bb.10:
	sub	x21, x22, #1
	mov	w22, #120
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x22
	bl	_INIT_LIST_HEAD
	add	x22, x22, #72
	subs	x21, x21, #1
	b.ne	LBB0_11
LBB0_12:
Lloh7:
	adrp	x21, _QED_MAX_NUM_OOO_HISTORY_ENTRIES@GOTPAGE
Lloh8:
	ldr	x21, [x21, _QED_MAX_NUM_OOO_HISTORY_ENTRIES@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_17
; %bb.13:
	mov	w0, #0
	ldr	x8, [x21]
	str	x8, [x20, #32]
	str	x20, [x19]
	b	LBB0_22
LBB0_14:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_DP_NOTICE
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
	ldr	x0, [x20, #24]
	bl	_kfree
LBB0_18:
	ldr	x0, [x20, #16]
	bl	_kfree
LBB0_19:
	mov	x0, x20
	bl	_kfree
LBB0_20:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTOCOLID_ISCSI,4,2           ; @PROTOCOLID_ISCSI
	.comm	_PROTOCOLID_IWARP,4,2           ; @PROTOCOLID_IWARP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate qed_ooo_info: unknown personality\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MAX_NUM_ISLES,8,3          ; @QED_MAX_NUM_ISLES
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate qed_ooo_info: unknown amount of connections\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QED_MAX_NUM_OOO_HISTORY_ENTRIES,8,3 ; @QED_MAX_NUM_OOO_HISTORY_ENTRIES
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_ooo_alloc
l_switch.table.qed_ooo_alloc:
	.quad	_PROTOCOLID_ISCSI
	.quad	_PROTOCOLID_IWARP
	.quad	_PROTOCOLID_IWARP

.subsections_via_symbols
