	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viacam_quick_irq
_viacam_quick_irq:                      ## @viacam_quick_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rsi), %rdi
	callq	_spin_lock
	movq	_VCR_INTCTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_viacam_read_reg
	movq	_VCR_IC_EAV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	_VCR_IC_EVBI@GOTPCREL(%rip), %rcx
	orl	%eax, %edx
	orl	(%rcx), %edx
	movq	_VCR_IC_FFULL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_viacam_write_reg
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	(%rbx), %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_VCR_INTCTRL,4,2                ## @VCR_INTCTRL
	.comm	_VCR_IC_EAV,4,2                 ## @VCR_IC_EAV
	.comm	_VCR_IC_EVBI,4,2                ## @VCR_IC_EVBI
	.comm	_VCR_IC_FFULL,4,2               ## @VCR_IC_FFULL
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_viacam_quick_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viacam_quick_irq
_viacam_quick_irq:                      ; @viacam_quick_irq
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [x1]
	bl	_spin_lock
Lloh3:
	adrp	x21, _VCR_INTCTRL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VCR_INTCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_viacam_read_reg
Lloh5:
	adrp	x8, _VCR_IC_EAV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCR_IC_EAV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, _VCR_IC_EVBI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VCR_IC_EVBI@GOTPAGEOFF]
Lloh10:
	adrp	x10, _VCR_IC_FFULL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VCR_IC_FFULL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x21]
	mov	x0, x19
	bl	_viacam_write_reg
Lloh14:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_2:
	ldr	x0, [x19]
	bl	_spin_unlock
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_VCR_INTCTRL,4,2                ; @VCR_INTCTRL
	.comm	_VCR_IC_EAV,4,2                 ; @VCR_IC_EAV
	.comm	_VCR_IC_EVBI,4,2                ; @VCR_IC_EVBI
	.comm	_VCR_IC_FFULL,4,2               ; @VCR_IC_FFULL
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_viacam_quick_irq
.subsections_via_symbols
