	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_aeq_init
_i40iw_sc_aeq_init:                     ## @i40iw_sc_aeq_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_AEQ_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_2
## %bb.1:
	movq	_I40IW_MAX_AEQ_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	cmpq	$0, 40(%rbx)
	movq	16(%rbx), %rax
	je	LBB0_6
## %bb.4:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rbx), %rdi
	cmpq	(%rcx,%rdx,8), %rdi
	jge	LBB0_5
LBB0_6:
	movabsq	$4294967368, %rcx               ## imm = 0x100000048
	movq	%rcx, (%r14)
	movq	56(%rbx), %rcx
	movq	%rcx, 64(%r14)
	movq	%rax, 56(%r14)
	movq	%rsi, 8(%r14)
	movl	48(%rbx), %eax
	movl	%eax, 52(%r14)
	movl	48(%r14), %edi
	callq	_I40IW_RING_INIT
	movq	16(%rbx), %rcx
	movq	%r14, (%rcx)
	movq	40(%rbx), %rdx
	movq	%rdx, 24(%r14)
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movq	32(%rbx), %rdx
	movl	24(%rbx), %esi
	movq	8(%rbx), %rdi
	jmp	LBB0_9
LBB0_2:
	movq	_I40IW_ERR_INVALID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_I40IW_ERR_INVALID_PBLE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_7:
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
LBB0_9:
	movq	%rdx, 40(%r14)
	movl	%esi, 32(%r14)
	movq	%rdi, 16(%r14)
	movq	%r14, (%rcx)
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MIN_AEQ_ENTRIES,8,3      ## @I40IW_MIN_AEQ_ENTRIES
	.comm	_I40IW_MAX_AEQ_ENTRIES,8,3      ## @I40IW_MAX_AEQ_ENTRIES
	.comm	_I40IW_ERR_INVALID_SIZE,4,2     ## @I40IW_ERR_INVALID_SIZE
	.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_aeq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function i40iw_sc_aeq_init
lCPI0_0:
	.long	72                              ; 0x48
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_i40iw_sc_aeq_init:                     ; @i40iw_sc_aeq_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_AEQ_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MIN_AEQ_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I40IW_MAX_AEQ_ENTRIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40IW_MAX_AEQ_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_9
LBB0_2:
	mov	x19, x0
	ldr	x9, [x20, #40]
	ldr	x8, [x20, #16]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x8, #8]
Lloh9:
	adrp	x10, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	ldr	x10, [x20, #8]
	cmp	x10, x9
	b.ge	LBB0_6
LBB0_4:
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	x9, [x20, #56]
	stp	x8, x9, [x19, #56]
	str	x1, [x19, #8]
	ldr	w8, [x20, #48]
	str	w8, [x19, #52]
	ldr	w0, [x19, #48]
	bl	_I40IW_RING_INIT
	ldr	x8, [x20, #16]
	str	x19, [x8]
	ldr	x9, [x20, #40]
	str	x9, [x19, #24]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	x9, [x20, #32]
	ldr	w10, [x20, #24]
	ldr	x11, [x20, #8]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_ERR_INVALID_PBLE_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	mov	w10, #0
	mov	x11, #0
LBB0_8:
	mov	w0, #0
	str	x9, [x19, #40]
	str	w10, [x19, #32]
	str	x11, [x19, #16]
	str	x19, [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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MIN_AEQ_ENTRIES,8,3      ; @I40IW_MIN_AEQ_ENTRIES
	.comm	_I40IW_MAX_AEQ_ENTRIES,8,3      ; @I40IW_MAX_AEQ_ENTRIES
	.comm	_I40IW_ERR_INVALID_SIZE,4,2     ; @I40IW_ERR_INVALID_SIZE
	.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_aeq_init
.subsections_via_symbols
