	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_isr_hw                  ## -- Begin function img_ir_isr_hw
	.p2align	4, 0x90
_img_ir_isr_hw:                         ## @img_ir_isr_hw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movl	(%rax), %r15d
	movq	_IMG_IR_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_img_ir_read
	movq	_IMG_IR_RXDVAL@GOTPCREL(%rip), %rcx
	movq	_IMG_IR_RXDVALD2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	testl	%eax, %ebx
	je	LBB0_2
## %bb.5:
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_img_ir_write
	movq	_IMG_IR_RXDLEN@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_IMG_IR_RXDLEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	(%r14), %rax
	movq	_IMG_IR_QUIRK_CODE_LEN_INCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%r15,4), %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %ebx
	movq	_IMG_IR_DATA_LW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_img_ir_read
	movq	_IMG_IR_DATA_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_img_ir_read
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_img_ir_handle_data             ## TAILCALL
LBB0_2:
	movq	(%r14), %rax
	movq	_IMG_IR_QUIRK_CODE_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r15,4)
	je	LBB0_6
## %bb.3:
	cmpq	$0, 16(%r14)
	je	LBB0_4
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IMG_IR_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_img_ir_write
	movq	_IMG_IR_IRQ_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_img_ir_read
	movl	%eax, 8(%r14)
	movl	(%rbx), %esi
	movq	_IMG_IR_IRQ_EDGE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_img_ir_write
	addq	$12, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$5, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_IR_STATUS,4,2              ## @IMG_IR_STATUS
	.comm	_IMG_IR_RXDVAL,4,2              ## @IMG_IR_RXDVAL
	.comm	_IMG_IR_RXDVALD2,4,2            ## @IMG_IR_RXDVALD2
	.comm	_IMG_IR_QUIRK_CODE_IRQ,4,2      ## @IMG_IR_QUIRK_CODE_IRQ
	.comm	_IMG_IR_CONTROL,4,2             ## @IMG_IR_CONTROL
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ## @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_IRQ_EDGE,4,2            ## @IMG_IR_IRQ_EDGE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IMG_IR_RXDLEN,4,2              ## @IMG_IR_RXDLEN
	.comm	_IMG_IR_RXDLEN_SHIFT,4,2        ## @IMG_IR_RXDLEN_SHIFT
	.comm	_IMG_IR_QUIRK_CODE_LEN_INCR,4,2 ## @IMG_IR_QUIRK_CODE_LEN_INCR
	.comm	_IMG_IR_DATA_LW,4,2             ## @IMG_IR_DATA_LW
	.comm	_IMG_IR_DATA_UP,4,2             ## @IMG_IR_DATA_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_isr_hw                  ; -- Begin function img_ir_isr_hw
	.p2align	2
_img_ir_isr_hw:                         ; @img_ir_isr_hw
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w21, [x8]
Lloh0:
	adrp	x22, _IMG_IR_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IMG_IR_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_img_ir_read
Lloh2:
	adrp	x8, _IMG_IR_RXDVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IMG_IR_RXDVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IMG_IR_RXDVALD2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IMG_IR_RXDVALD2@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	bic	w20, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_img_ir_write
Lloh8:
	adrp	x8, _IMG_IR_RXDLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMG_IR_RXDLEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh11:
	adrp	x9, _IMG_IR_RXDLEN_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IMG_IR_RXDLEN_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	x9, [x19]
	ldr	w9, [x9, x21, lsl #2]
Lloh14:
	adrp	x10, _IMG_IR_QUIRK_CODE_LEN_INCR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IMG_IR_QUIRK_CODE_LEN_INCR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	cinc	w20, w8, ne
Lloh17:
	adrp	x8, _IMG_IR_DATA_LW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IMG_IR_DATA_LW@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_read
Lloh20:
	adrp	x8, _IMG_IR_DATA_UP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IMG_IR_DATA_UP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_read
	mov	x0, x19
	mov	x1, 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
	b	_img_ir_handle_data
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8, x21, lsl #2]
Lloh23:
	adrp	x9, _IMG_IR_QUIRK_CODE_IRQ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IMG_IR_QUIRK_CODE_IRQ@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_5:
	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
LBB0_6:
Lloh26:
	adrp	x8, _IMG_IR_CONTROL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IMG_IR_CONTROL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_img_ir_write
Lloh29:
	adrp	x20, _IMG_IR_IRQ_ENABLE@GOTPAGE
Lloh30:
	ldr	x20, [x20, _IMG_IR_IRQ_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_img_ir_read
	str	w0, [x19, #8]
	ldr	w1, [x20]
Lloh31:
	adrp	x8, _IMG_IR_IRQ_EDGE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IMG_IR_IRQ_EDGE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x19
	bl	_img_ir_write
	add	x19, x19, #12
Lloh34:
	adrp	x8, _jiffies@GOTPAGE
Lloh35:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh36:
	ldr	x20, [x8]
	mov	w0, #5
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	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
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_IR_STATUS,4,2              ; @IMG_IR_STATUS
	.comm	_IMG_IR_RXDVAL,4,2              ; @IMG_IR_RXDVAL
	.comm	_IMG_IR_RXDVALD2,4,2            ; @IMG_IR_RXDVALD2
	.comm	_IMG_IR_QUIRK_CODE_IRQ,4,2      ; @IMG_IR_QUIRK_CODE_IRQ
	.comm	_IMG_IR_CONTROL,4,2             ; @IMG_IR_CONTROL
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ; @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_IRQ_EDGE,4,2            ; @IMG_IR_IRQ_EDGE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IMG_IR_RXDLEN,4,2              ; @IMG_IR_RXDLEN
	.comm	_IMG_IR_RXDLEN_SHIFT,4,2        ; @IMG_IR_RXDLEN_SHIFT
	.comm	_IMG_IR_QUIRK_CODE_LEN_INCR,4,2 ; @IMG_IR_QUIRK_CODE_LEN_INCR
	.comm	_IMG_IR_DATA_LW,4,2             ; @IMG_IR_DATA_LW
	.comm	_IMG_IR_DATA_UP,4,2             ; @IMG_IR_DATA_UP
.subsections_via_symbols
