	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_ir_rx_interrupt
_hix5hd2_ir_rx_interrupt:               ## @hix5hd2_ir_rx_interrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_IR_INTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %r12d
	movq	_INTMS_OVERFLOW@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movl	(%r15), %edi
	callq	_ir_raw_event_reset
	movq	_IR_DATAH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movq	_IR_DATAL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	decl	%ebx
	jne	LBB0_3
LBB0_4:
	movq	_INT_CLR_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IR_INTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movl	16(%r15), %edi
	movq	_IR_CFG_INT_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_5:
	movq	_INTMS_SYMBRCV@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_INTMS_TIMEOUT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
LBB0_7:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_IR_DATAH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_ir_raw_event_set_idle
	decl	%ebx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IR_DATAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
                                        ## kill: def $eax killed $eax def $rax
	movzwl	%ax, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %edi
	shrl	$15, %eax
	andl	$-2, %eax
	leal	(%rax,%rax,4), %r13d
	leal	(%rdi,%r13), %r14d
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rax, %r14
	shrq	$35, %r14
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_US_TO_NS
	movq	%rax, -56(%rbp)
	movl	$1, -64(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_ir_raw_event_store
	movq	_IR_CFG_SYMBOL_MAXWIDTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %edi
	callq	_US_TO_NS
	movq	%rax, -56(%rbp)
	movl	$0, -64(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_ir_raw_event_store
	decl	%ebx
	jne	LBB0_9
LBB0_13:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_INTMS_SYMBRCV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_INT_CLR_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IR_INTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
LBB0_15:
	movq	_INTMS_TIMEOUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_INT_CLR_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IR_INTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
LBB0_17:
	movl	(%r15), %edi
	callq	_ir_raw_event_handle
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_INTS,8,3                    ## @IR_INTS
	.comm	_INTMS_OVERFLOW,4,2             ## @INTMS_OVERFLOW
	.comm	_IR_DATAH,8,3                   ## @IR_DATAH
	.comm	_IR_DATAL,8,3                   ## @IR_DATAL
	.comm	_INT_CLR_OVERFLOW,4,2           ## @INT_CLR_OVERFLOW
	.comm	_IR_INTC,8,3                    ## @IR_INTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overflow, level=%d\n"

	.comm	_IR_CFG_INT_THRESHOLD,4,2       ## @IR_CFG_INT_THRESHOLD
	.comm	_INTMS_SYMBRCV,4,2              ## @INTMS_SYMBRCV
	.comm	_INTMS_TIMEOUT,4,2              ## @INTMS_TIMEOUT
	.comm	_IR_CFG_SYMBOL_MAXWIDTH,4,2     ## @IR_CFG_SYMBOL_MAXWIDTH
	.comm	_INT_CLR_RCV,4,2                ## @INT_CLR_RCV
	.comm	_INT_CLR_TIMEOUT,4,2            ## @INT_CLR_TIMEOUT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hix5hd2_ir_rx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_ir_rx_interrupt
_hix5hd2_ir_rx_interrupt:               ; @hix5hd2_ir_rx_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _IR_INTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_INTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
Lloh3:
	adrp	x8, _INTMS_OVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTMS_OVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x22, _IR_DATAH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IR_DATAH@GOTPAGEOFF]
Lloh8:
	adrp	x24, _IR_INTC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IR_INTC@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_ir_raw_event_reset
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
Lloh10:
	adrp	x23, _IR_DATAL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IR_DATAL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	subs	w21, w21, #1
	b.ne	LBB0_3
LBB0_4:
Lloh12:
	adrp	x8, _INT_CLR_OVERFLOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INT_CLR_OVERFLOW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x19, #16]
Lloh15:
	adrp	x8, _IR_CFG_INT_THRESHOLD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IR_CFG_INT_THRESHOLD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_5:
Lloh20:
	adrp	x25, _INTMS_SYMBRCV@GOTPAGE
Lloh21:
	ldr	x25, [x25, _INTMS_SYMBRCV@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh22:
	adrp	x9, _INTMS_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _INTMS_TIMEOUT@GOTPAGEOFF]
	tst	w8, w20
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x9]
	tst	w8, w20
	b.eq	LBB0_16
LBB0_7:
	stp	xzr, xzr, [sp]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x21, x0
Lloh24:
	adrp	x26, _IR_DATAL@GOTPAGE
Lloh25:
	ldr	x26, [x26, _IR_DATAL@GOTPAGEOFF]
	mov	w27, #52429
	movk	w27, #52428, lsl #16
	mov	w28, #1
Lloh26:
	adrp	x23, _IR_CFG_SYMBOL_MAXWIDTH@GOTPAGE
Lloh27:
	ldr	x23, [x23, _IR_CFG_SYMBOL_MAXWIDTH@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19]
	mov	w1, #1
	bl	_ir_raw_event_set_idle
	subs	w21, w21, #1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl_relaxed
	and	w8, w0, #0xffff
	add	w8, w8, w0, uxth #2
	lsl	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, w9, lsl #2
	lsl	w22, w9, #1
	add	w9, w8, w22
	umull	x9, w9, w27
	lsr	x24, x9, #35
	mov	x0, x8
	bl	_US_TO_NS
	str	x0, [sp, #8]
	str	w28, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_ir_raw_event_store
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_US_TO_NS
	str	x0, [sp, #8]
	str	wzr, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_ir_raw_event_store
	subs	w21, w21, #1
	b.ne	LBB0_10
LBB0_12:
	ldr	w8, [x25]
	tst	w8, w20
Lloh28:
	adrp	x21, _IR_INTC@GOTPAGE
Lloh29:
	ldr	x21, [x21, _IR_INTC@GOTPAGEOFF]
	b.eq	LBB0_14
; %bb.13:
Lloh30:
	adrp	x8, _INT_CLR_RCV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INT_CLR_RCV@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_14:
Lloh33:
	adrp	x8, _INTMS_TIMEOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INTMS_TIMEOUT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
Lloh36:
	adrp	x8, _INT_CLR_TIMEOUT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _INT_CLR_TIMEOUT@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_16:
	ldr	w0, [x19]
	bl	_ir_raw_event_handle
Lloh39:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_INTS,8,3                    ; @IR_INTS
	.comm	_INTMS_OVERFLOW,4,2             ; @INTMS_OVERFLOW
	.comm	_IR_DATAH,8,3                   ; @IR_DATAH
	.comm	_IR_DATAL,8,3                   ; @IR_DATAL
	.comm	_INT_CLR_OVERFLOW,4,2           ; @INT_CLR_OVERFLOW
	.comm	_IR_INTC,8,3                    ; @IR_INTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overflow, level=%d\n"

	.comm	_IR_CFG_INT_THRESHOLD,4,2       ; @IR_CFG_INT_THRESHOLD
	.comm	_INTMS_SYMBRCV,4,2              ; @INTMS_SYMBRCV
	.comm	_INTMS_TIMEOUT,4,2              ; @INTMS_TIMEOUT
	.comm	_IR_CFG_SYMBOL_MAXWIDTH,4,2     ; @IR_CFG_SYMBOL_MAXWIDTH
	.comm	_INT_CLR_RCV,4,2                ; @INT_CLR_RCV
	.comm	_INT_CLR_TIMEOUT,4,2            ; @INT_CLR_TIMEOUT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hix5hd2_ir_rx_interrupt
.subsections_via_symbols
