	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_ir_irq_handler
_serial_ir_irq_handler:                 ## @serial_ir_irq_handler
	.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	_UART_IIR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_sinp
	movq	_UART_IIR_NO_INT@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movl	$-1, %r12d
	movq	_UART_MSR@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movq	16(%rax), %r15
	movq	_sense@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_ktime_to_ns
	movl	%eax, %ebx
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movl	12(%rax), %edi
	callq	_ktime_to_ns
	movq	%r15, %rdi
	movq	_UART_IIR@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	_UART_MSR@GOTPCREL(%rip), %r13
	movq	_UART_IIR_NO_INT@GOTPCREL(%rip), %r14
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_sinp
	testl	%eax, (%r14)
	jne	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_sinp
	movl	%eax, %ebx
	incl	%r12d
	movq	_RS_ISR_PASS_LIMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%ebx, (%rax,%rcx,8)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_sense@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movq	_hardware@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_type@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%r14d, %r14d
	testl	%ebx, 4(%rcx,%rdx,8)
	movl	%eax, %edi
	setne	%r14b
	cmpl	%r14d, _serial_ir_irq_handler.last_dcd(%rip)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movl	12(%rax), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_ktime_sub
	movl	%eax, %ebx
	movl	$15, %edi
	xorl	%esi, %esi
	callq	_ktime_set
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ktime_compare
	testq	%rax, %rax
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_IR_MAX_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_sense@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movq	16(%rax), %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ktime_to_ns
	movl	%eax, %ebx
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movl	12(%rax), %edi
	callq	_ktime_to_ns
	movq	%r15, %rdi
	movq	_UART_IIR@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dev_err
	xorl	%eax, %eax
	movq	_sense@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%al
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_ktime_to_ns
	movl	%eax, %r13d
	movq	_sense@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	cmpl	%r14d, %eax
	sete	%sil
	movl	%r13d, %edi
	callq	_frbwrite
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rax)
	movl	%r14d, _serial_ir_irq_handler.last_dcd(%rip)
	movq	_UART_IIR_NO_INT@GOTPCREL(%rip), %r14
	movq	_UART_MSR@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_4:
	movq	_serial_ir@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_serial_ir@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_nsecs_to_jiffies
	addq	%rax, %rbx
	leaq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	movq	(%r14), %rdi
	callq	_ir_raw_event_handle
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @serial_ir_irq_handler.last_dcd
_serial_ir_irq_handler.last_dcd:
	.long	4294967295                      ## 0xffffffff

	.comm	_UART_IIR,4,2                   ## @UART_IIR
	.comm	_UART_IIR_NO_INT,4,2            ## @UART_IIR_NO_INT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_UART_MSR,4,2                   ## @UART_MSR
	.comm	_RS_ISR_PASS_LIMIT,4,2          ## @RS_ISR_PASS_LIMIT
	.comm	_serial_ir,24,3                 ## @serial_ir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trapped in interrupt"

	.comm	_hardware,8,3                   ## @hardware
	.comm	_type,8,3                       ## @type
	.comm	_sense,4,2                      ## @sense
L_.str.1:                               ## @.str.1
	.asciz	"ignoring spike: %d %d %lldns %lldns\n"

	.comm	_IR_MAX_DURATION,4,2            ## @IR_MAX_DURATION
L_.str.2:                               ## @.str.2
	.asciz	"dcd unexpected: %d %d %lldns %lldns\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_serial_ir_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_ir_irq_handler
_serial_ir_irq_handler:                 ; @serial_ir_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x24, _UART_IIR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UART_IIR@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_sinp
Lloh2:
	adrp	x23, _UART_IIR_NO_INT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _UART_IIR_NO_INT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
Lloh6:
	adrp	x28, _UART_MSR@GOTPAGE
Lloh7:
	ldr	x28, [x28, _UART_MSR@GOTPAGEOFF]
	mov	w20, #-1
Lloh8:
	adrp	x19, _RS_ISR_PASS_LIMIT@GOTPAGE
Lloh9:
	ldr	x19, [x19, _RS_ISR_PASS_LIMIT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _hardware@GOTPAGE
Lloh11:
	ldr	x27, [x27, _hardware@GOTPAGEOFF]
Lloh12:
	adrp	x26, _sense@GOTPAGE
Lloh13:
	ldr	x26, [x26, _sense@GOTPAGEOFF]
Lloh14:
	adrp	x25, _serial_ir@GOTPAGE
Lloh15:
	ldr	x25, [x25, _serial_ir@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x25, #16]
	ldr	w23, [x26]
	mov	x0, x21
	bl	_ktime_to_ns
	mov	x21, x0
	ldr	w0, [x25, #12]
	bl	_ktime_to_ns
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #16]
	str	x23, [sp, #8]
Lloh16:
	adrp	x23, _UART_IIR_NO_INT@GOTPAGE
Lloh17:
	ldr	x23, [x23, _UART_IIR_NO_INT@GOTPAGEOFF]
	str	x27, [sp]
	mov	x0, x22
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x27, _hardware@GOTPAGE
Lloh21:
	ldr	x27, [x27, _hardware@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	bl	_sinp
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	bl	_sinp
	ldr	w8, [x19]
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x27]
Lloh22:
	adrp	x9, _type@GOTPAGE
Lloh23:
	ldr	x9, [x9, _type@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	and	w8, w8, w0
	ldr	w9, [x26]
	cmp	w8, #0
	ccmn	w9, #1, #4, ne
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ktime_get
	mov	x21, x0
	ldr	x8, [x27]
Lloh25:
	adrp	x9, _type@GOTPAGE
Lloh26:
	ldr	x9, [x9, _type@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	tst	w8, w22
	cset	w27, ne
Lloh28:
	adrp	x8, _serial_ir_irq_handler.last_dcd@PAGE
Lloh29:
	ldr	w8, [x8, _serial_ir_irq_handler.last_dcd@PAGEOFF]
	cmp	w8, w27
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25, #12]
	mov	x0, x21
	bl	_ktime_sub
	mov	x22, x0
	mov	w0, #15
	mov	w1, #0
	bl	_ktime_set
	mov	x1, x0
	mov	x0, x22
	bl	_ktime_compare
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh30:
	adrp	x8, _IR_MAX_DURATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IR_MAX_DURATION@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w8, [x26]
	cmp	w8, w27
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x26
	ldr	x8, [x25, #16]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_ktime_to_ns
	mov	x23, x24
	mov	x24, x0
	ldr	w0, [x25, #12]
	bl	_ktime_to_ns
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	mov	x24, x23
Lloh33:
	adrp	x23, _UART_IIR_NO_INT@GOTPAGE
Lloh34:
	ldr	x23, [x23, _UART_IIR_NO_INT@GOTPAGEOFF]
	mov	x8, x27
	stp	x8, x8, [sp]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	ldr	w8, [x26]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x26]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_ktime_to_ns
	ldr	w8, [x26]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, w27
	cset	w1, eq
	bl	_frbwrite
	str	w21, [x25, #12]
	adrp	x8, _serial_ir_irq_handler.last_dcd@PAGE
	str	w27, [x8, _serial_ir_irq_handler.last_dcd@PAGEOFF]
	b	LBB0_4
LBB0_14:
	ldr	x0, [x25, #16]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_15:
Lloh39:
	adrp	x8, _jiffies@GOTPAGE
Lloh40:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh41:
	ldr	x19, [x8]
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_nsecs_to_jiffies
	add	x1, x0, x19
	add	x0, x25, #8
	bl	_mod_timer
	ldr	x0, [x25]
	bl	_ir_raw_event_handle
Lloh42:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @serial_ir_irq_handler.last_dcd
_serial_ir_irq_handler.last_dcd:
	.long	4294967295                      ; 0xffffffff

	.comm	_UART_IIR,4,2                   ; @UART_IIR
	.comm	_UART_IIR_NO_INT,4,2            ; @UART_IIR_NO_INT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_UART_MSR,4,2                   ; @UART_MSR
	.comm	_RS_ISR_PASS_LIMIT,4,2          ; @RS_ISR_PASS_LIMIT
	.comm	_serial_ir,24,3                 ; @serial_ir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trapped in interrupt"

	.comm	_hardware,8,3                   ; @hardware
	.comm	_type,8,3                       ; @type
	.comm	_sense,4,2                      ; @sense
l_.str.1:                               ; @.str.1
	.asciz	"ignoring spike: %d %d %lldns %lldns\n"

	.comm	_IR_MAX_DURATION,4,2            ; @IR_MAX_DURATION
l_.str.2:                               ; @.str.2
	.asciz	"dcd unexpected: %d %d %lldns %lldns\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_serial_ir_irq_handler
.subsections_via_symbols
