	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_ccq_init
_i40iw_sc_ccq_init:                     ## @i40iw_sc_ccq_init
	.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	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	_I40IW_MIN_CQ_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_4
## %bb.1:
	movq	_I40IW_MAX_CQ_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	_I40IW_MAX_CEQID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.3:
	movq	_I40IW_ERR_INVALID_CEQ_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_I40IW_ERR_INVALID_SIZE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r14
	cmpq	$0, 40(%rbx)
	movq	24(%rbx), %rcx
	je	LBB0_7
## %bb.6:
	movq	8(%rcx), %rdx
	movq	(%rdx), %r8
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	16(%rbx), %rdx
	cmpq	(%r8,%rdi,8), %rdx
	jge	LBB0_8
LBB0_7:
	movl	88(%rbx), %edx
	movl	%edx, 128(%r14)
	movl	84(%rbx), %edx
	movl	%edx, 64(%r14)
	movl	80(%rbx), %edx
	movl	%edx, 124(%r14)
	movl	76(%rbx), %edx
	movl	%edx, 60(%r14)
	movl	72(%rbx), %edx
	movl	%edx, 120(%r14)
	movq	%rcx, 112(%r14)
	movq	%rax, (%r14)
	movq	%rsi, 16(%r14)
	movq	_I40IW_CQ_TYPE_CQP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movl	68(%rbx), %eax
	movl	%eax, 104(%r14)
	movl	56(%r14), %edi
	callq	_I40IW_RING_INIT
	movq	$0, 48(%r14)
	movl	64(%rbx), %eax
	movl	%eax, 100(%r14)
	movl	60(%rbx), %eax
	movl	%eax, 96(%r14)
	movl	56(%rbx), %eax
	movl	%eax, 92(%r14)
	movl	52(%rbx), %eax
	movl	%eax, 40(%r14)
	movl	48(%rbx), %eax
	movl	%eax, 88(%r14)
	movq	40(%rbx), %rax
	movq	%rax, 80(%r14)
	movl	32(%rbx), %eax
	movl	%eax, 72(%r14)
	movq	16(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	$1, 24(%r14)
	movq	$0, 32(%r14)
	movq	24(%rbx), %rax
	movq	%r14, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_I40IW_ERR_INVALID_PBLE_INDEX@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MIN_CQ_SIZE,8,3          ## @I40IW_MIN_CQ_SIZE
	.comm	_I40IW_MAX_CQ_SIZE,8,3          ## @I40IW_MAX_CQ_SIZE
	.comm	_I40IW_ERR_INVALID_SIZE,4,2     ## @I40IW_ERR_INVALID_SIZE
	.comm	_I40IW_MAX_CEQID,8,3            ## @I40IW_MAX_CEQID
	.comm	_I40IW_ERR_INVALID_CEQ_ID,4,2   ## @I40IW_ERR_INVALID_CEQ_ID
	.comm	_I40IW_HMC_IW_PBLE,8,3          ## @I40IW_HMC_IW_PBLE
	.comm	_I40IW_ERR_INVALID_PBLE_INDEX,4,2 ## @I40IW_ERR_INVALID_PBLE_INDEX
	.comm	_I40IW_CQ_TYPE_CQP,4,2          ## @I40IW_CQ_TYPE_CQP
	.no_dead_strip	_i40iw_sc_ccq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_ccq_init
_i40iw_sc_ccq_init:                     ; @i40iw_sc_ccq_init
	.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	x20, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _I40IW_MIN_CQ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MIN_CQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I40IW_MAX_CQ_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40IW_MAX_CQ_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I40IW_ERR_INVALID_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_ERR_INVALID_SIZE@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _I40IW_MAX_CEQID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40IW_MAX_CEQID@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _I40IW_ERR_INVALID_CEQ_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_ERR_INVALID_CEQ_ID@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x19, x0
	ldr	x10, [x20, #40]
	ldr	x9, [x20, #24]
	cbz	x10, LBB0_6
; %bb.5:
	ldr	x10, [x9, #8]
Lloh13:
	adrp	x11, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
	ldr	x10, [x10]
Lloh15:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x11, [x20, #16]
	cmp	x11, x10
	b.ge	LBB0_7
LBB0_6:
	ldp	w11, w10, [x20, #84]
	str	w10, [x19, #128]
	ldp	w12, w10, [x20, #76]
	stp	w12, w11, [x19, #60]
	ldp	w12, w11, [x20, #68]
	stp	w11, w10, [x19, #120]
	str	x9, [x19, #112]
	str	x8, [x19]
	str	x1, [x19, #16]
Lloh16:
	adrp	x8, _I40IW_CQ_TYPE_CQP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40IW_CQ_TYPE_CQP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w12, w8, [x19, #104]
	ldr	w0, [x19, #56]
	bl	_I40IW_RING_INIT
	mov	w0, #0
	ldr	w8, [x20, #64]
	str	w8, [x19, #100]
	ldr	d0, [x20, #56]
	stur	d0, [x19, #92]
	ldp	w9, w8, [x20, #48]
	str	w8, [x19, #40]
	str	w9, [x19, #88]
	ldr	x8, [x20, #40]
	str	x8, [x19, #80]
	ldr	w8, [x20, #32]
	str	w8, [x19, #72]
	ldp	x8, x9, [x20, #16]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #24]
	str	xzr, [x19, #48]
	str	xzr, [x19, #32]
	str	x19, [x9]
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MIN_CQ_SIZE,8,3          ; @I40IW_MIN_CQ_SIZE
	.comm	_I40IW_MAX_CQ_SIZE,8,3          ; @I40IW_MAX_CQ_SIZE
	.comm	_I40IW_ERR_INVALID_SIZE,4,2     ; @I40IW_ERR_INVALID_SIZE
	.comm	_I40IW_MAX_CEQID,8,3            ; @I40IW_MAX_CEQID
	.comm	_I40IW_ERR_INVALID_CEQ_ID,4,2   ; @I40IW_ERR_INVALID_CEQ_ID
	.comm	_I40IW_HMC_IW_PBLE,8,3          ; @I40IW_HMC_IW_PBLE
	.comm	_I40IW_ERR_INVALID_PBLE_INDEX,4,2 ; @I40IW_ERR_INVALID_PBLE_INDEX
	.comm	_I40IW_CQ_TYPE_CQP,4,2          ; @I40IW_CQ_TYPE_CQP
	.no_dead_strip	_i40iw_sc_ccq_init
.subsections_via_symbols
