	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_qcqs_alloc
_ionic_qcqs_alloc:                      ## @ionic_qcqs_alloc
	.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	%rdi, %r15
	movq	48(%rdi), %rax
	movq	8(%rax), %r14
	movq	_IONIC_QCQ_F_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IONIC_QTYPE_ADMINQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IONIC_ADMINQ_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	40(%rdi), %eax
	leaq	8(%rdi), %r12
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	pushq	%r12
	pushq	%rax
	pushq	$0
	pushq	$4
	pushq	$4
	callq	_ionic_qcq_alloc
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_31
## %bb.1:
	movq	48(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_IONIC_QCQ_F_NOTIFYQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IONIC_QTYPE_NOTIFYQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IONIC_NOTIFYQ_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	40(%r15), %eax
	leaq	16(%r15), %r13
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	pushq	%r13
	pushq	%rax
	pushq	$0
	pushq	$4
	pushq	$4
	callq	_ionic_qcq_alloc
	addq	$48, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.3:
	movq	(%r12), %rdi
	movq	(%r13), %rsi
	callq	_ionic_link_qcq_interrupts
LBB0_4:
	movl	(%r15), %r12d
	shll	$3, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_devm_kzalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_27
## %bb.5:
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_devm_kzalloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	32(%r15), %rsi
	movq	%rax, (%rsi,%rbx,8)
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	(%r15), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jl	LBB0_14
	jmp	LBB0_31
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_15:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	movq	32(%r15), %rsi
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	callq	_devm_kfree
	movl	(%r15), %eax
	jmp	LBB0_19
LBB0_20:
	movq	%r14, %rdi
	callq	_devm_kfree
	movq	$0, 32(%r15)
LBB0_21:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	callq	_devm_kfree
	movl	(%r15), %eax
	jmp	LBB0_25
LBB0_26:
	movq	24(%r15), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
	movq	$0, 24(%r15)
LBB0_27:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	_ionic_qcq_free
	movq	$0, 16(%r15)
LBB0_29:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_30:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_ionic_qcq_free
	movq	$0, 8(%r15)
	movl	%ebx, %eax
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_QCQ_F_INTR,4,2           ## @IONIC_QCQ_F_INTR
	.comm	_IONIC_QTYPE_ADMINQ,4,2         ## @IONIC_QTYPE_ADMINQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"admin"

	.comm	_IONIC_ADMINQ_LENGTH,4,2        ## @IONIC_ADMINQ_LENGTH
	.comm	_IONIC_QCQ_F_NOTIFYQ,4,2        ## @IONIC_QCQ_F_NOTIFYQ
	.comm	_IONIC_QTYPE_NOTIFYQ,4,2        ## @IONIC_QTYPE_NOTIFYQ
L_.str.1:                               ## @.str.1
	.asciz	"notifyq"

	.comm	_IONIC_NOTIFYQ_LENGTH,4,2       ## @IONIC_NOTIFYQ_LENGTH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_ionic_qcqs_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_qcqs_alloc
_ionic_qcqs_alloc:                      ; @ionic_qcqs_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x20, [x8, #8]
Lloh0:
	adrp	x8, _IONIC_QCQ_F_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IONIC_QCQ_F_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _IONIC_QTYPE_ADMINQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IONIC_QTYPE_ADMINQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _IONIC_ADMINQ_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IONIC_ADMINQ_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	ldr	w8, [x0, #40]
	add	x22, x0, #8
	str	x22, [sp, #8]
	stp	wzr, w8, [sp]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	w6, #4
	mov	w7, #4
	bl	_ionic_qcq_alloc
	mov	x21, x0
	cbnz	w0, LBB0_30
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _IONIC_QCQ_F_NOTIFYQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IONIC_QCQ_F_NOTIFYQ@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _IONIC_QTYPE_NOTIFYQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IONIC_QTYPE_NOTIFYQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _IONIC_NOTIFYQ_LENGTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IONIC_NOTIFYQ_LENGTH@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	ldr	w8, [x19, #40]
	add	x23, x19, #16
	str	x23, [sp, #8]
	stp	wzr, w8, [sp]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w6, #4
	mov	w7, #4
	bl	_ionic_qcq_alloc
	mov	x21, x0
	cbnz	w0, LBB0_29
; %bb.3:
	ldr	x0, [x22]
	ldr	x1, [x23]
	bl	_ionic_link_qcq_interrupts
LBB0_4:
	ldr	w8, [x19]
	lsl	w21, w8, #3
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
Lloh25:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_devm_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_27
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_devm_kzalloc
	ldr	x8, [x19, #24]
	str	x0, [x8, x24, lsl #3]
	cbz	x0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_9:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_devm_kzalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_21
; %bb.10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x24, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_devm_kzalloc
	ldr	x1, [x19, #32]
	str	x0, [x1, x24, lsl #3]
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w21, #0
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_12
	b	LBB0_30
LBB0_14:
	mov	w21, #0
	b	LBB0_30
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x21, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	ldr	x1, [x19, #32]
	cmp	x21, w8, sxtw
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x1, x21, lsl #3]
	cbz	x1, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_devm_kfree
	ldr	w8, [x19]
	b	LBB0_17
LBB0_20:
	mov	x0, x20
	bl	_devm_kfree
	str	xzr, [x19, #32]
LBB0_21:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.22:
	mov	x21, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x1, [x9, x21, lsl #3]
	cbz	x1, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x20
	bl	_devm_kfree
	ldr	w8, [x19]
	b	LBB0_23
LBB0_26:
	ldr	x1, [x19, #24]
	mov	x0, x20
	bl	_devm_kfree
	str	xzr, [x19, #24]
LBB0_27:
	neg	w21, w22
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_ionic_qcq_free
	str	xzr, [x19, #16]
LBB0_29:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_ionic_qcq_free
	str	xzr, [x19, #8]
LBB0_30:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_QCQ_F_INTR,4,2           ; @IONIC_QCQ_F_INTR
	.comm	_IONIC_QTYPE_ADMINQ,4,2         ; @IONIC_QTYPE_ADMINQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"admin"

	.comm	_IONIC_ADMINQ_LENGTH,4,2        ; @IONIC_ADMINQ_LENGTH
	.comm	_IONIC_QCQ_F_NOTIFYQ,4,2        ; @IONIC_QCQ_F_NOTIFYQ
	.comm	_IONIC_QTYPE_NOTIFYQ,4,2        ; @IONIC_QTYPE_NOTIFYQ
l_.str.1:                               ; @.str.1
	.asciz	"notifyq"

	.comm	_IONIC_NOTIFYQ_LENGTH,4,2       ; @IONIC_NOTIFYQ_LENGTH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_ionic_qcqs_alloc
.subsections_via_symbols
