	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_ccq
_i40iw_create_ccq:                      ## @i40iw_create_ccq
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	40(%rdi), %r14
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	16(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	%r14, 24(%rbx)
	movq	%r14, -40(%rbp)
	movl	$4, 32(%rbx)
	movq	_IW_CCQ_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$2, %edx
	movl	%edx, (%rbx)
	movl	40(%rbx), %edi
	movq	_I40IW_CQ0_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_i40iw_allocate_dma_mem
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	32(%rbx), %edx
	movq	_I40IW_SHADOWAREA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40iw_obj_aligned_mem
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, 16(%rbx)
	movl	(%r15), %eax
	movl	%eax, -72(%rbp)
	movsd	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, -56(%rbp)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -68(%rbp)
	movl	$16, -60(%rbp)
	movq	48(%rbx), %rdi
	movq	56(%rbx), %rax
	leaq	-72(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	48(%rbx), %rdi
	movq	56(%rbx), %rax
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	*8(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	_i40iw_free_dma_mem
	movl	%r14d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_CCQ_SIZE,4,2                ## @IW_CCQ_SIZE
	.comm	_I40IW_CQ0_ALIGNMENT,4,2        ## @I40IW_CQ0_ALIGNMENT
	.comm	_I40IW_SHADOWAREA_MASK,4,2      ## @I40IW_SHADOWAREA_MASK
	.no_dead_strip	_i40iw_create_ccq
.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_create_ccq
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_i40iw_create_ccq:                      ; @i40iw_create_ccq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x8, x19, #16
	str	x8, [x19, #48]
	mov	x8, x19
	ldr	w0, [x8, #40]!
	str	x8, [x19, #24]
	str	x8, [sp, #32]
	mov	w8, #4
	str	w8, [x19, #32]
Lloh0:
	adrp	x21, _IW_CCQ_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IW_CCQ_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w2, w8, #2
	str	w2, [x19]
Lloh2:
	adrp	x8, _I40IW_CQ0_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_CQ0_ALIGNMENT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_i40iw_allocate_dma_mem
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w2, [x19, #32]
Lloh5:
	adrp	x8, _I40IW_SHADOWAREA_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_SHADOWAREA_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x1, sp, #40
	mov	x0, x19
	bl	_i40iw_obj_aligned_mem
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	str	x19, [x19, #16]
	ldr	w8, [x21]
	str	w8, [sp]
	ldur	d0, [x19, #4]
	ldr	d1, [sp, #40]
	mov.d	v1[1], v0[0]
	str	q1, [sp, #16]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #4]
	mov	w8, #16
	str	w8, [sp, #12]
	ldp	x0, x8, [x19, #48]
	ldr	x8, [x8]
	mov	x1, sp
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldp	x0, x8, [x19, #48]
	ldr	x8, [x8, #8]
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	w0, [x19, #40]
	mov	x1, x19
	bl	_i40iw_free_dma_mem
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_CCQ_SIZE,4,2                ; @IW_CCQ_SIZE
	.comm	_I40IW_CQ0_ALIGNMENT,4,2        ; @I40IW_CQ0_ALIGNMENT
	.comm	_I40IW_SHADOWAREA_MASK,4,2      ; @I40IW_SHADOWAREA_MASK
	.no_dead_strip	_i40iw_create_ccq
.subsections_via_symbols
