	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm_irq_handler
_qm_irq_handler:                        ## @qm_irq_handler
	.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	%rsi, %rbx
	movslq	(%rsi), %r14
	shlq	$2, %r14
	addq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_QM_EQE_PHASE
	cmpl	4(%rbx), %eax
	jne	LBB0_11
## %bb.1:
	xorl	%r13d, %r13d
	movq	_QM_Q_DEPTH@GOTPCREL(%rip), %r15
	movq	_QM_DOORBELL_CMD_EQ@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qm_db
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_QM_EQE_PHASE
	cmpl	4(%rbx), %eax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qm_to_hisi_qp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %edi
	movq	%rax, %rsi
	callq	_queue_work
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	movl	(%r15), %eax
	decl	%eax
	cmpl	%eax, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	sete	%al
	movl	%eax, 4(%rbx)
	movq	8(%rbx), %r14
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r14
	incl	%ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, (%rbx)
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	$-2, %edx
	cmpl	%edx, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	jmp	LBB0_10
LBB0_11:
	movq	_QM_DOORBELL_CMD_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qm_db
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_Q_DEPTH,4,2                 ## @QM_Q_DEPTH
	.comm	_QM_DOORBELL_CMD_EQ,4,2         ## @QM_DOORBELL_CMD_EQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_qm_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm_irq_handler
_qm_irq_handler:                        ; @qm_irq_handler
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldrsw	x9, [x1]
	add	x20, x8, x9, lsl #2
	mov	x0, x20
	bl	_QM_EQE_PHASE
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x21, _QM_DOORBELL_CMD_EQ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QM_DOORBELL_CMD_EQ@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.1:
	mov	w23, #0
Lloh2:
	adrp	x22, _QM_Q_DEPTH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QM_Q_DEPTH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w4, #0
	bl	_qm_db
	mov	w23, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_QM_EQE_PHASE
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_qm_to_hisi_qp
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	w0, [x0, #4]
	bl	_queue_work
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x22]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #0
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #4]
	ldr	x20, [x19, #8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	add	w3, w8, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w3, [x19]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	w8, w8, #2
	cmp	w23, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	b	LBB0_3
LBB0_11:
	ldr	w2, [x21]
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w4, #0
	bl	_qm_db
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_Q_DEPTH,4,2                 ; @QM_Q_DEPTH
	.comm	_QM_DOORBELL_CMD_EQ,4,2         ; @QM_DOORBELL_CMD_EQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_qm_irq_handler
.subsections_via_symbols
