	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_q_init                   ## -- Begin function ionic_q_init
	.p2align	4, 0x90
_ionic_q_init:                          ## @ionic_q_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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	cmpq	$0, 16(%rbp)
	je	LBB0_2
## %bb.1:
	movl	%r9d, %r15d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	%r9d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r15d, %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_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	32(%rbp), %eax
	movq	24(%rbp), %rcx
	movq	%r13, 72(%r14)
	movq	%r12, 64(%r14)
	movl	%ebx, (%r14)
	movl	%r15d, 4(%r14)
	movq	16(%rbp), %rdx
	movq	%rdx, 8(%r14)
	movq	%rcx, 16(%r14)
	movq	32(%r14), %rcx
	movq	%rcx, 48(%r14)
	movq	%rcx, 56(%r14)
	movl	%eax, 24(%r14)
	movl	40(%r14), %edi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_snprintf
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	movq	32(%r14), %rcx
	leal	-1(%r15), %edx
	movl	%r15d, %r10d
	andl	$3, %r10d
	xorl	%eax, %eax
	movl	$0, %edi
	movq	%rcx, %rsi
	cmpl	$3, %edx
	jb	LBB0_10
## %bb.7:
	movl	%r15d, %r8d
	andl	$-4, %r8d
	movl	%r15d, %r9d
	negl	%r9d
	xorl	%esi, %esi
	movl	%r15d, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rdi), %r14d
	leal	1(%rdi), %r11d
	cmpl	$-1, %r14d
	leaq	16(%rcx,%rsi), %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, 8(%rcx,%rsi)
	movl	%edi, (%rcx,%rsi)
	movl	%ebx, 4(%rcx,%rsi)
	leal	2(%rdi), %r12d
	cmpl	$-2, %r14d
	leaq	32(%rcx,%rsi), %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, 24(%rcx,%rsi)
	movl	%r11d, 16(%rcx,%rsi)
	leal	-1(%rbx), %edx
	movl	%edx, 20(%rcx,%rsi)
	leal	3(%rdi), %r11d
	cmpl	$-3, %r14d
	leaq	48(%rcx,%rsi), %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, 40(%rcx,%rsi)
	movl	%r12d, 32(%rcx,%rsi)
	leal	-2(%rbx), %r12d
	addl	$4, %edi
	cmpl	$-4, %r14d
	leaq	64(%rcx,%rsi), %rdx
	cmoveq	%rcx, %rdx
	movl	%r12d, 36(%rcx,%rsi)
	movq	%rdx, 56(%rcx,%rsi)
	movl	%r11d, 48(%rcx,%rsi)
	leal	-3(%rbx), %edx
	movl	%edx, 52(%rcx,%rsi)
	addl	$-4, %ebx
	addq	$64, %rsi
	cmpl	%edi, %r8d
	jne	LBB0_8
## %bb.9:
	addq	%rcx, %rsi
LBB0_10:
	testl	%r10d, %r10d
	je	LBB0_13
## %bb.11:
	subl	%edi, %r15d
	addq	$16, %rsi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r15d
	movq	%rsi, %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, -8(%rsi)
	movl	%edi, -16(%rsi)
	leal	1(%rdi), %edx
	movl	%r15d, -12(%rsi)
	decl	%r15d
	addq	$16, %rsi
	movl	%edx, %edi
	decl	%r10d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L%d-%s%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_q_init                   ; -- Begin function ionic_q_init
	.p2align	2
_ionic_q_init:                          ; @ionic_q_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x6, LBB0_3
; %bb.1:
	mov	x23, x7
	mov	x25, x6
	mov	x19, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x26, x1
	mov	x24, x0
	mov	x0, x5
	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, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x29, #16]
	stp	x26, x24, [x20, #64]
	stp	w21, w19, [x20]
	stp	x25, x23, [x20, #8]
	ldr	x9, [x20, #32]
	stp	x9, x9, [x20, #48]
	str	w8, [x20, #24]
	ldr	w0, [x20, #40]
	ldr	w3, [x24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	cbz	w19, LBB0_8
; %bb.6:
	mov	x8, #0
	mov	w10, #0
	ldr	x9, [x20, #32]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, #1
	add	x12, x9, x8
	add	x13, x12, #16
	subs	w14, w19, #1
	csel	x13, x9, x13, eq
	str	x13, [x12, #8]
	stp	w10, w19, [x12]
	add	x8, x8, #16
	mov	x19, x14
	mov	x10, x11
	cbnz	w14, LBB0_7
LBB0_8:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L%d-%s%u"

.subsections_via_symbols
