	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_ceq
_i40iw_create_ceq:                      ## @i40iw_create_ceq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	8(%rdi), %r13
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, -48(%rbp)
	movq	%r12, 24(%r14)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	_I40IW_HMC_IW_CQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	shll	$2, %edx
	movl	%edx, (%r14)
	movl	8(%r12), %edi
	movq	_I40IW_CEQ_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_i40iw_allocate_dma_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r15, -48(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	_I40IW_HMC_IW_CQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -72(%rbp)
	leaq	16(%r14), %rax
	movq	%r15, 16(%r14)
	movq	%rax, %r15
	movq	%r13, -64(%rbp)
	movq	16(%r12), %rax
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	16(%r12), %rax
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*8(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_i40iw_free_dma_mem
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_CQ,8,3            ## @I40IW_HMC_IW_CQ
	.comm	_I40IW_CEQ_ALIGNMENT,4,2        ## @I40IW_CEQ_ALIGNMENT
	.no_dead_strip	_i40iw_create_ceq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_create_ceq
_i40iw_create_ceq:                      ; @i40iw_create_ceq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x24, x20
	ldr	w0, [x24, #8]!
	str	x21, [sp, #24]
	str	x20, [x19, #24]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x25, _I40IW_HMC_IW_CQ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _I40IW_HMC_IW_CQ@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w2, w8, #2
	str	w2, [x19]
Lloh2:
	adrp	x8, _I40IW_CEQ_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_CEQ_ALIGNMENT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_i40iw_allocate_dma_mem
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x22, x19
	str	x21, [x22, #16]!
	str	x21, [sp, #24]
	ldur	d0, [x22, #-12]
	str	d0, [sp, #16]
	ldp	x9, x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x10, [x25]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [sp]
	str	x24, [sp, #8]
	ldr	x8, [x9]
	mov	x1, sp
	mov	x0, x22
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_4
LBB0_3:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_i40iw_free_dma_mem
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_CQ,8,3            ; @I40IW_HMC_IW_CQ
	.comm	_I40IW_CEQ_ALIGNMENT,4,2        ; @I40IW_CEQ_ALIGNMENT
	.no_dead_strip	_i40iw_create_ceq
.subsections_via_symbols
