	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_aeq
_i40iw_create_aeq:                      ## @i40iw_create_aeq
	.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, %r15
	leaq	24(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	addl	%ebx, %ebx
	movq	_I40IW_HMC_IW_CQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	(%rax,%rcx,4), %ebx
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leal	(,%rbx,4), %edx
	movl	%edx, 24(%r15)
	movl	(%r15), %edi
	movq	_I40IW_AEQ_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_i40iw_allocate_dma_mem
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	32(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	28(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, -64(%rbp)
	movq	%r15, -56(%rbp)
	movq	8(%r15), %rax
	leaq	36(%r15), %r12
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	*8(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	movq	%r12, %rdi
	callq	*16(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_i40iw_free_dma_mem
	movl	%r13d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ## @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_CQ,8,3            ## @I40IW_HMC_IW_CQ
	.comm	_I40IW_AEQ_ALIGNMENT,4,2        ## @I40IW_AEQ_ALIGNMENT
	.no_dead_strip	_i40iw_create_aeq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_create_aeq
_i40iw_create_aeq:                      ; @i40iw_create_aeq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _I40IW_HMC_IW_QP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40IW_HMC_IW_QP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh3:
	adrp	x10, _I40IW_HMC_IW_CQ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I40IW_HMC_IW_CQ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	add	w21, w8, w9, lsl #1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	lsl	w2, w21, #2
	mov	x20, x19
	str	w2, [x20, #24]!
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _I40IW_AEQ_ALIGNMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_AEQ_ALIGNMENT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_i40iw_allocate_dma_mem
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldur	d0, [x19, #28]
	str	d0, [sp, #24]
	str	w21, [sp, #8]
	str	x19, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x21, x19, #36
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_i40iw_free_dma_mem
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ; @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_CQ,8,3            ; @I40IW_HMC_IW_CQ
	.comm	_I40IW_AEQ_ALIGNMENT,4,2        ; @I40IW_AEQ_ALIGNMENT
	.no_dead_strip	_i40iw_create_aeq
.subsections_via_symbols
