	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_ceq_init
_i40iw_sc_ceq_init:                     ## @i40iw_sc_ceq_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	_I40IW_MIN_CEQ_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_2
## %bb.1:
	movq	_I40IW_MAX_CEQ_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	_I40IW_MAX_CEQID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.5:
	movq	%rdi, %r14
	movq	48(%rbx), %rcx
	movq	64(%rbx), %rdx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	movq	8(%rdx), %rdi
	movq	(%rdi), %r8
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r9
	movq	16(%rbx), %rdi
	cmpq	(%r8,%r9,8), %rdi
	jge	LBB0_7
LBB0_8:
	xorl	%r15d, %r15d
	movl	$96, (%r14)
	movq	72(%rbx), %rdi
	movq	%rdi, 88(%r14)
	movq	%rax, 8(%r14)
	movq	%rdx, 40(%r14)
	movq	%rsi, 16(%r14)
	movl	56(%rbx), %eax
	movl	%eax, 84(%r14)
	movq	%rcx, 64(%r14)
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movl	40(%rbx), %eax
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	jmp	LBB0_11
LBB0_2:
	movq	_I40IW_ERR_INVALID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	_I40IW_ERR_INVALID_CEQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_7:
	movq	_I40IW_ERR_INVALID_PBLE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
LBB0_11:
	movl	%eax, 80(%r14)
	movq	%rcx, 24(%r14)
	movq	%rdx, 72(%r14)
	movl	28(%rbx), %eax
	movl	%eax, 56(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 52(%r14)
	movl	$1, 32(%r14)
	movl	48(%r14), %edi
	callq	_I40IW_RING_INIT
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MIN_CEQ_ENTRIES,8,3      ## @I40IW_MIN_CEQ_ENTRIES
	.comm	_I40IW_MAX_CEQ_ENTRIES,8,3      ## @I40IW_MAX_CEQ_ENTRIES
	.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
	.no_dead_strip	_i40iw_sc_ceq_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_ceq_init
_i40iw_sc_ceq_init:                     ; @i40iw_sc_ceq_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_CEQ_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MIN_CEQ_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I40IW_MAX_CEQ_ENTRIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40IW_MAX_CEQ_ENTRIES@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]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _I40IW_MAX_CEQID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I40IW_MAX_CEQID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.3:
	mov	x19, x0
	ldr	x9, [x20, #48]
	ldr	x10, [x20, #64]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x11, [x10, #8]
Lloh12:
	adrp	x12, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
	ldr	x11, [x11]
Lloh14:
	ldr	x12, [x12]
	ldr	x11, [x11, x12, lsl #3]
	ldr	x12, [x20, #16]
	cmp	x12, x11
	b.ge	LBB0_8
LBB0_5:
	mov	w11, #96
	str	w11, [x19]
	ldr	x11, [x20, #72]
	str	x11, [x19, #88]
	str	x10, [x19, #40]
	stp	x8, x1, [x19, #8]
	ldr	w8, [x20, #56]
	str	w8, [x19, #84]
	str	x9, [x19, #64]
	cbz	x9, LBB0_9
; %bb.6:
	ldr	w8, [x20, #40]
	ldr	x9, [x20, #16]
	ldr	x10, [x20, #32]
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _I40IW_ERR_INVALID_CEQ_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IW_ERR_INVALID_CEQ_ID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
	mov	w8, #0
	mov	x10, #0
LBB0_10:
	str	w8, [x19, #80]
	str	x9, [x19, #24]
	str	x10, [x19, #72]
	ldr	d0, [x20, #24]
	stur	d0, [x19, #52]
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	w0, [x19, #48]
	bl	_I40IW_RING_INIT
	mov	w0, #0
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x19, [x8, x9, lsl #3]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MIN_CEQ_ENTRIES,8,3      ; @I40IW_MIN_CEQ_ENTRIES
	.comm	_I40IW_MAX_CEQ_ENTRIES,8,3      ; @I40IW_MAX_CEQ_ENTRIES
	.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
	.no_dead_strip	_i40iw_sc_ceq_init
.subsections_via_symbols
