	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_rc_rx_interrupt
_st_rc_rx_interrupt:                    ## @st_rc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpq	$0, 40(%rsi)
	je	LBB0_2
## %bb.1:
	movl	32(%r14), %edi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$10, %edi
	callq	_msecs_to_jiffies
	addq	%r15, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_IRB_RX_STATUS@GOTPCREL(%rip), %r15
	movq	_IRB_FIFO_NOT_EMPTY@GOTPCREL(%rip), %r12
	movq	_IRB_RX_OVERRUN_INT@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %edi
	callq	_ir_raw_event_reset
	movl	32(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	(%rbx), %edi
	movq	_IRB_RX_INT_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	callq	_writel
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	movq	_IRB_RX_OVERRUN_INT@GOTPCREL(%rip), %rbx
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	_IRB_OVERFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IRB_RX_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	andl	(%rbx), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IRB_RX_SYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	%rax, %r13
	movq	_IRB_RX_ON@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	%rax, %rdi
	cmpl	$3, %edi
	jb	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %r13d
	jb	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IRB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %r15d
	subl	%edi, %r15d
	cmpq	$0, 24(%r14)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
	movl	4(%r14), %esi
	imull	%ecx, %r15d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	imull	%ecx, %edi
	movl	%eax, %r15d
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-64(%rbp), %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_US_TO_NS
	movq	%rax, -56(%rbp)
	movl	$1, -64(%rbp)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_ir_raw_event_store
	cmpl	%r13d, %r12d
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %edi
	callq	_st_rc_send_lirc_timeout
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_US_TO_NS
	movq	%rax, -56(%rbp)
	movl	$0, -64(%rbp)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_ir_raw_event_store
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_IRB_RX_STATUS@GOTPCREL(%rip), %r15
	movq	_IRB_FIFO_NOT_EMPTY@GOTPCREL(%rip), %r12
	jmp	LBB0_14
LBB0_15:
	movq	_IRB_RX_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IRB_RX_INT_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	callq	_writel
	movl	8(%r14), %edi
	callq	_ir_raw_event_handle
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IRB_RX_STATUS,8,3              ## @IRB_RX_STATUS
	.comm	_IRB_FIFO_NOT_EMPTY,4,2         ## @IRB_FIFO_NOT_EMPTY
	.comm	_IRB_OVERFLOW,4,2               ## @IRB_OVERFLOW
	.comm	_IRB_RX_INT_STATUS,8,3          ## @IRB_RX_INT_STATUS
	.comm	_IRB_RX_OVERRUN_INT,4,2         ## @IRB_RX_OVERRUN_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR RX overrun\n"

	.comm	_IRB_RX_INT_CLEAR,8,3           ## @IRB_RX_INT_CLEAR
	.comm	_IRB_RX_SYS,8,3                 ## @IRB_RX_SYS
	.comm	_IRB_RX_ON,8,3                  ## @IRB_RX_ON
	.comm	_IRB_TIMEOUT,4,2                ## @IRB_TIMEOUT
	.comm	_IRB_RX_INTS,4,2                ## @IRB_RX_INTS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_st_rc_rx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_rc_rx_interrupt
_st_rc_rx_interrupt:                    ; @st_rc_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
	stp	xzr, xzr, [sp]
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_pm_wakeup_event
LBB0_2:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w0, #10
	bl	_msecs_to_jiffies
Lloh3:
	adrp	x24, _IRB_RX_STATUS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IRB_RX_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x25, _IRB_FIFO_NOT_EMPTY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IRB_FIFO_NOT_EMPTY@GOTPAGEOFF]
Lloh7:
	adrp	x26, _IRB_OVERFLOW@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IRB_OVERFLOW@GOTPAGEOFF]
Lloh9:
	adrp	x27, _IRB_RX_INT_STATUS@GOTPAGE
Lloh10:
	ldr	x27, [x27, _IRB_RX_INT_STATUS@GOTPAGEOFF]
Lloh11:
	adrp	x28, _IRB_RX_OVERRUN_INT@GOTPAGE
Lloh12:
	ldr	x28, [x28, _IRB_RX_OVERRUN_INT@GOTPAGEOFF]
	add	x20, x0, x20
Lloh13:
	adrp	x21, _IRB_RX_SYS@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IRB_RX_SYS@GOTPAGEOFF]
Lloh15:
	adrp	x23, _IRB_RX_INT_CLEAR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _IRB_RX_INT_CLEAR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	bl	_ir_raw_event_reset
	ldr	w0, [x19, #32]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x28]
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x28]
	and	w0, w8, w0
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19, #16]
Lloh19:
	adrp	x9, _IRB_RX_ON@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRB_RX_ON@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cmp	w0, #3
	ccmp	w22, #2, #0, hs
	b.lo	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x25
	mov	x25, x24
	mov	x24, x27
	mov	x27, x23
	sub	w23, w22, w0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x19]
	mul	w10, w8, w23
	udiv	w23, w10, w9
	mul	w8, w8, w0
	udiv	w0, w8, w9
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x8, _IRB_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRB_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_US_TO_NS
	str	x0, [sp, #8]
	mov	w8, #1
	str	w8, [sp]
	ldr	w0, [x19, #8]
	mov	x1, sp
	bl	_ir_raw_event_store
	cmp	w21, w22
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	bl	_st_rc_send_lirc_timeout
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_US_TO_NS
	str	x0, [sp, #8]
	str	wzr, [sp]
	ldr	w0, [x19, #8]
	mov	x1, sp
	bl	_ir_raw_event_store
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x21, _IRB_RX_SYS@GOTPAGE
Lloh26:
	ldr	x21, [x21, _IRB_RX_SYS@GOTPAGEOFF]
	mov	x23, x27
	mov	x27, x24
	mov	x24, x25
	mov	x25, x26
Lloh27:
	adrp	x26, _IRB_OVERFLOW@GOTPAGE
Lloh28:
	ldr	x26, [x26, _IRB_OVERFLOW@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
Lloh29:
	adrp	x8, _IRB_RX_INTS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRB_RX_INTS@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #8]
	bl	_ir_raw_event_handle
Lloh32:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh34:
	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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IRB_RX_STATUS,8,3              ; @IRB_RX_STATUS
	.comm	_IRB_FIFO_NOT_EMPTY,4,2         ; @IRB_FIFO_NOT_EMPTY
	.comm	_IRB_OVERFLOW,4,2               ; @IRB_OVERFLOW
	.comm	_IRB_RX_INT_STATUS,8,3          ; @IRB_RX_INT_STATUS
	.comm	_IRB_RX_OVERRUN_INT,4,2         ; @IRB_RX_OVERRUN_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR RX overrun\n"

	.comm	_IRB_RX_INT_CLEAR,8,3           ; @IRB_RX_INT_CLEAR
	.comm	_IRB_RX_SYS,8,3                 ; @IRB_RX_SYS
	.comm	_IRB_RX_ON,8,3                  ; @IRB_RX_ON
	.comm	_IRB_TIMEOUT,4,2                ; @IRB_TIMEOUT
	.comm	_IRB_RX_INTS,4,2                ; @IRB_RX_INTS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_st_rc_rx_interrupt
.subsections_via_symbols
