	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_irq_handler               ## -- Begin function coda_irq_handler
	.p2align	4, 0x90
_coda_irq_handler:                      ## @coda_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
	movq	_CODA_REG_BIT_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_coda_read
	movq	_CODA_REG_BIT_INT_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	_CODA_REG_BIT_INT_CLEAR_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CODA_REG_BIT_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_coda_write
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_get_curr_priv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_trace_coda_bit_done
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_coda_dbg
LBB0_4:
	movl	4(%r14), %edi
	callq	_coda_isbusy
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_coda_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_complete
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODA_REG_BIT_INT_STATUS,4,2    ## @CODA_REG_BIT_INT_STATUS
	.comm	_CODA_REG_BIT_INT_REASON,4,2    ## @CODA_REG_BIT_INT_REASON
	.comm	_CODA_REG_BIT_INT_CLEAR_SET,4,2 ## @CODA_REG_BIT_INT_CLEAR_SET
	.comm	_CODA_REG_BIT_INT_CLEAR,4,2     ## @CODA_REG_BIT_INT_CLEAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Instance released before the end of transaction\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"task has been aborted\n"

L_.str.2:                               ## @.str.2
	.asciz	"coda is still busy!!!!\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_irq_handler               ; -- Begin function coda_irq_handler
	.p2align	2
_coda_irq_handler:                      ; @coda_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
Lloh0:
	adrp	x8, _CODA_REG_BIT_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODA_REG_BIT_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_coda_read
Lloh3:
	adrp	x8, _CODA_REG_BIT_INT_REASON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CODA_REG_BIT_INT_REASON@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
Lloh6:
	adrp	x8, _CODA_REG_BIT_INT_CLEAR_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CODA_REG_BIT_INT_CLEAR_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _CODA_REG_BIT_INT_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CODA_REG_BIT_INT_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_get_curr_priv
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_trace_coda_bit_done
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	bl	_coda_dbg
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_coda_isbusy
	cbz	x0, LBB0_6
; %bb.4:
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	bl	_coda_dbg
Lloh16:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_complete
LBB0_7:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CODA_REG_BIT_INT_STATUS,4,2    ; @CODA_REG_BIT_INT_STATUS
	.comm	_CODA_REG_BIT_INT_REASON,4,2    ; @CODA_REG_BIT_INT_REASON
	.comm	_CODA_REG_BIT_INT_CLEAR_SET,4,2 ; @CODA_REG_BIT_INT_CLEAR_SET
	.comm	_CODA_REG_BIT_INT_CLEAR,4,2     ; @CODA_REG_BIT_INT_CLEAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Instance released before the end of transaction\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"task has been aborted\n"

l_.str.2:                               ; @.str.2
	.asciz	"coda is still busy!!!!\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
.subsections_via_symbols
