	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpu_irq_handler
_vpu_irq_handler:                       ## @vpu_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_VPU_TO_HOST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vpu_cfg_readl
	movq	_VPU_IPC_INT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_vpu_ipi_handler
	jmp	LBB0_5
LBB0_4:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	leaq	4(%rbx), %rsi
	movl	8(%rbx), %edi
	callq	_queue_work
LBB0_5:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vpu_cfg_writel
	movl	(%rbx), %edi
	callq	_clk_disable
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[VPU] enable clock failed %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_VPU_TO_HOST,4,2                ## @VPU_TO_HOST
	.comm	_VPU_IPC_INT,4,2                ## @VPU_IPC_INT
L_.str.1:                               ## @.str.1
	.asciz	"vpu watchdog timeout! 0x%x"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_vpu_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpu_irq_handler
_vpu_irq_handler:                       ; @vpu_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1]
	bl	_clk_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x20, _VPU_TO_HOST@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VPU_TO_HOST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vpu_cfg_readl
Lloh6:
	adrp	x8, _VPU_IPC_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPU_IPC_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vpu_ipi_handler
	b	LBB0_5
LBB0_4:
	mov	x2, x0
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	add	x1, x19, #4
	ldr	w0, [x19, #8]
	bl	_queue_work
LBB0_5:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_vpu_cfg_writel
	ldr	w0, [x19]
	bl	_clk_disable
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[VPU] enable clock failed %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_VPU_TO_HOST,4,2                ; @VPU_TO_HOST
	.comm	_VPU_IPC_INT,4,2                ; @VPU_IPC_INT
l_.str.1:                               ; @.str.1
	.asciz	"vpu watchdog timeout! 0x%x"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_vpu_irq_handler
.subsections_via_symbols
