	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_ir_intr
_aw_ir_intr:                            ## @aw_ir_intr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_AW_IR_RXSTA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_READ
	movl	%eax, %r14d
	movq	_bootverbose@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_2:
	movl	(%rbx), %esi
	movq	_AW_IR_RXSTA_CLEARALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r14d, %edx
	movq	%r13, %rdi
	callq	_WRITE
	movq	_AW_IR_RXINT_RAI_EN@GOTPCREL(%rip), %rax
	movq	_AW_IR_RXINT_RPEI_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_11
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_5:
	movl	%r14d, %edi
	callq	_AW_IR_RXSTA_COUNTER
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_aw_ir_buf_full
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_aw_ir_read_data
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_aw_ir_buf_write
	decl	%ebx
	jne	LBB0_7
	jmp	LBB0_11
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_11:
	testl	%r14d, (%r15)
	je	LBB0_19
## %bb.12:
	movq	%r12, %rbx
	cmpq	$0, (%r12)
	je	LBB0_14
## %bb.13:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_14:
	movq	%r13, %rdi
	callq	_aw_ir_decode_packets
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_aw_ir_validate_code
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	16(%r13), %edi
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rcx
	callq	_evdev_push_event
	movl	16(%r13), %edi
	callq	_evdev_sync
LBB0_16:
	cmpq	$0, (%rbx)
	je	LBB0_18
## %bb.17:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_device_printf
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_18:
	movq	$0, 8(%r13)
	movq	%rbx, %r12
LBB0_19:
	movq	_AW_IR_RXINT_ROI_EN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.20:
	cmpq	$0, (%r12)
	je	LBB0_22
## %bb.21:
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_22:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aw_ir_buf_reset                ## TAILCALL
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_IR_RXSTA,4,2                ## @AW_IR_RXSTA
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX interrupt status: %x\n"

	.comm	_AW_IR_RXSTA_CLEARALL,4,2       ## @AW_IR_RXSTA_CLEARALL
	.comm	_AW_IR_RXINT_RAI_EN,4,2         ## @AW_IR_RXINT_RAI_EN
	.comm	_AW_IR_RXINT_RPEI_EN,4,2        ## @AW_IR_RXINT_RPEI_EN
L_.str.1:                               ## @.str.1
	.asciz	"RX FIFO Data available or Packet end\n"

L_.str.2:                               ## @.str.2
	.asciz	"raw buffer full\n"

L_.str.3:                               ## @.str.3
	.asciz	"RX Packet end\n"

	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.4:                               ## @.str.4
	.asciz	"Final IR code: %lx\n"

L_.str.5:                               ## @.str.5
	.asciz	"IR code status: %d\n"

	.comm	_AW_IR_RXINT_ROI_EN,4,2         ## @AW_IR_RXINT_ROI_EN
L_.str.6:                               ## @.str.6
	.asciz	"RX FIFO overflow\n"

	.no_dead_strip	_aw_ir_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_ir_intr
_aw_ir_intr:                            ; @aw_ir_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _AW_IR_RXSTA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AW_IR_RXSTA@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_READ
	mov	x20, x0
Lloh2:
	adrp	x23, _bootverbose@GOTPAGE
Lloh3:
	ldr	x23, [x23, _bootverbose@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_2:
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _AW_IR_RXSTA_CLEARALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AW_IR_RXSTA_CLEARALL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_WRITE
Lloh9:
	adrp	x8, _AW_IR_RXINT_RAI_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AW_IR_RXINT_RAI_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x22, _AW_IR_RXINT_RPEI_EN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _AW_IR_RXINT_RPEI_EN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_11
; %bb.3:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_5:
	mov	x0, x20
	bl	_AW_IR_RXSTA_COUNTER
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x21, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_aw_ir_buf_full
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_aw_ir_read_data
	mov	x1, x0
	mov	x0, x19
	bl	_aw_ir_buf_write
	subs	w21, w21, #1
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_device_printf
LBB0_11:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.12:
	ldr	x8, [x23]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_device_printf
LBB0_14:
	mov	x0, x19
	bl	_aw_ir_decode_packets
	mov	x22, x0
	bl	_aw_ir_validate_code
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	w0, [x19, #16]
Lloh20:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x3, x22
	bl	_evdev_push_event
	ldr	w0, [x19, #16]
	bl	_evdev_sync
LBB0_16:
	ldr	x8, [x23]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x19]
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_device_printf
	ldr	w0, [x19]
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_device_printf
LBB0_18:
	str	xzr, [x19, #8]
LBB0_19:
Lloh30:
	adrp	x8, _AW_IR_RXINT_ROI_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AW_IR_RXINT_ROI_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.20:
	ldr	x8, [x23]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w0, [x19]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_device_printf
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_aw_ir_buf_reset
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_IR_RXSTA,4,2                ; @AW_IR_RXSTA
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX interrupt status: %x\n"

	.comm	_AW_IR_RXSTA_CLEARALL,4,2       ; @AW_IR_RXSTA_CLEARALL
	.comm	_AW_IR_RXINT_RAI_EN,4,2         ; @AW_IR_RXINT_RAI_EN
	.comm	_AW_IR_RXINT_RPEI_EN,4,2        ; @AW_IR_RXINT_RPEI_EN
l_.str.1:                               ; @.str.1
	.asciz	"RX FIFO Data available or Packet end\n"

l_.str.2:                               ; @.str.2
	.asciz	"raw buffer full\n"

l_.str.3:                               ; @.str.3
	.asciz	"RX Packet end\n"

	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.4:                               ; @.str.4
	.asciz	"Final IR code: %lx\n"

l_.str.5:                               ; @.str.5
	.asciz	"IR code status: %d\n"

	.comm	_AW_IR_RXINT_ROI_EN,4,2         ; @AW_IR_RXINT_ROI_EN
l_.str.6:                               ; @.str.6
	.asciz	"RX FIFO overflow\n"

	.no_dead_strip	_aw_ir_intr
.subsections_via_symbols
