	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_cq_init                  ## -- Begin function ionic_cq_init
	.p2align	4, 0x90
_ionic_cq_init:                         ## @ionic_cq_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	%ecx, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_ilog2
	addl	$-17, %eax
	cmpl	$-16, %eax
	ja	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, 48(%rbx)
	movq	%r12, 40(%rbx)
	movl	%r14d, (%rbx)
	movq	%r15, 8(%rbx)
	movq	24(%rbx), %r8
	movq	%r8, 32(%rbx)
	movl	$1, 16(%rbx)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.5:
	movl	$0, %esi
	movq	%r8, %rdx
	cmpl	$1, %r14d
	je	LBB0_14
## %bb.6:
	movl	%r14d, %r9d
	andl	$-2, %r9d
	movl	%r14d, %r10d
	negl	%r10d
	leaq	16(%r8), %rdx
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, (%rdx)
	movq	%r8, %rdi
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, 8(%rdx)
	movl	%ecx, 4(%rdx)
	addq	$32, %rdx
	cmpl	%esi, %r9d
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%rsi), %edi
	movq	%rdx, %rbx
	cmpl	$-1, %edi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, -16(%rdx)
	movq	%r8, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%rsi), %ecx
	movq	%rbx, -8(%rdx)
	movl	%esi, -12(%rdx)
	addl	$2, %esi
	cmpl	$-2, %edi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	16(%rdx), %rdi
	jmp	LBB0_12
LBB0_13:
	addq	$-16, %rdx
LBB0_14:
	testb	$1, %r14b
	je	LBB0_19
## %bb.15:
	leal	1(%rsi), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_16
## %bb.17:
	movl	$1, (%rdx)
	jmp	LBB0_18
LBB0_16:
	leaq	16(%rdx), %r8
LBB0_18:
	movq	%r8, 8(%rdx)
	movl	%esi, 4(%rdx)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_cq_init                  ; -- Begin function ionic_cq_init
	.p2align	2
_ionic_cq_init:                         ; @ionic_cq_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x4, LBB0_3
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	mov	x0, x3
	bl	_is_power_of_2
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ilog2
	sub	w8, w0, #17
	cmn	w8, #16
	b.hi	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	stp	x22, x23, [x20, #40]
	str	w19, [x20]
	str	x21, [x20, #8]
	ldr	x8, [x20, #24]
	str	x8, [x20, #32]
	mov	w9, #1
	str	w9, [x20, #16]
	cbz	w19, LBB0_10
; %bb.6:
	mov	w12, #0
	neg	w10, w19
	add	x11, x8, #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	stur	w12, [x11, #-12]
	add	w14, w12, #1
	stur	x13, [x11, #-8]
	add	x11, x11, #16
	mov	x12, x14
	cmn	w10, w14
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w10, w12
	mov	x13, x11
	cmn	w14, #1
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	stur	w9, [x11, #-16]
	mov	x13, x8
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
