	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_qcq_free
_ionic_qcq_free:                        ## @ionic_qcq_free
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movl	40(%rsi), %esi
	movq	32(%rbx), %rdx
	movl	28(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	$0, 32(%rbx)
	movl	$0, 28(%rbx)
	movq	_IONIC_QCQ_F_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %esi
	movq	%r15, %rdi
	callq	_ionic_intr_free
LBB0_3:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_kfree                     ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_QCQ_F_INTR,4,2           ## @IONIC_QCQ_F_INTR
	.no_dead_strip	_ionic_qcq_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_qcq_free
_ionic_qcq_free:                        ; @ionic_qcq_free
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	w1, [x1, #40]
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #28]
	mov	x0, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #32]
	str	wzr, [x19, #28]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IONIC_QCQ_F_INTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IONIC_QCQ_F_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x19, #24]
	mov	x0, x21
	bl	_ionic_intr_free
LBB0_3:
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_devm_kfree
	str	xzr, [x19, #16]
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_devm_kfree
	str	xzr, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devm_kfree
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_QCQ_F_INTR,4,2           ; @IONIC_QCQ_F_INTR
	.no_dead_strip	_ionic_qcq_free
.subsections_via_symbols
