	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_isr
_img_ir_isr:                            ## @img_ir_isr
	.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, %r14
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_IMG_IR_IRQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_img_ir_read
	movl	%eax, %r15d
	movq	_IMG_IR_IRQ_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_img_ir_write
	movq	_IMG_IR_IRQ_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_img_ir_read
	movl	%eax, %ebx
	andl	%r15d, %ebx
	movq	_IMG_IR_IRQ_EDGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	8(%r14), %rdi
	callq	_img_ir_raw_enabled
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_img_ir_isr_raw
LBB0_3:
	movq	_IMG_IR_IRQ_DATA_MATCH@GOTPCREL(%rip), %rax
	movq	_IMG_IR_IRQ_DATA_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IMG_IR_IRQ_DATA2_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_6
## %bb.4:
	leaq	4(%r14), %rdi
	callq	_img_ir_hw_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_img_ir_isr_hw
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_IR_IRQ_STATUS,4,2          ## @IMG_IR_IRQ_STATUS
	.comm	_IMG_IR_IRQ_CLEAR,4,2           ## @IMG_IR_IRQ_CLEAR
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ## @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_IRQ_EDGE,4,2            ## @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_IRQ_DATA_MATCH,4,2      ## @IMG_IR_IRQ_DATA_MATCH
	.comm	_IMG_IR_IRQ_DATA_VALID,4,2      ## @IMG_IR_IRQ_DATA_VALID
	.comm	_IMG_IR_IRQ_DATA2_VALID,4,2     ## @IMG_IR_IRQ_DATA2_VALID
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_img_ir_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_ir_isr
_img_ir_isr:                            ; @img_ir_isr
	.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
	mov	x0, x1
	bl	_spin_lock
Lloh0:
	adrp	x8, _IMG_IR_IRQ_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMG_IR_IRQ_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_read
	mov	x20, x0
Lloh3:
	adrp	x8, _IMG_IR_IRQ_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMG_IR_IRQ_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_img_ir_write
Lloh6:
	adrp	x8, _IMG_IR_IRQ_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMG_IR_IRQ_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_read
	and	w20, w0, w20
Lloh9:
	adrp	x8, _IMG_IR_IRQ_EDGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMG_IR_IRQ_EDGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_3
; %bb.1:
	add	x0, x19, #8
	bl	_img_ir_raw_enabled
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_img_ir_isr_raw
LBB0_3:
Lloh12:
	adrp	x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _IMG_IR_IRQ_DATA2_VALID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IMG_IR_IRQ_DATA2_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
	add	x0, x19, #4
	bl	_img_ir_hw_enabled
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_img_ir_isr_hw
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_IR_IRQ_STATUS,4,2          ; @IMG_IR_IRQ_STATUS
	.comm	_IMG_IR_IRQ_CLEAR,4,2           ; @IMG_IR_IRQ_CLEAR
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ; @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_IRQ_EDGE,4,2            ; @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_IRQ_DATA_MATCH,4,2      ; @IMG_IR_IRQ_DATA_MATCH
	.comm	_IMG_IR_IRQ_DATA_VALID,4,2      ; @IMG_IR_IRQ_DATA_VALID
	.comm	_IMG_IR_IRQ_DATA2_VALID,4,2     ; @IMG_IR_IRQ_DATA2_VALID
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_img_ir_isr
.subsections_via_symbols
