	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_ir_irq
_tango_ir_irq:                          ## @tango_ir_irq
	.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	%rsi, %rbx
	movq	_IR_INT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	_RC6_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	testb	$3, %r14b
	jne	LBB0_3
## %bb.1:
	movl	$31, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_tango_ir_handle_rc5
LBB0_5:
	movl	$1, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_tango_ir_handle_nec
LBB0_7:
	movl	$31, %edi
	callq	_BIT
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%r15d, %eax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_tango_ir_handle_rc6
	jmp	LBB0_9
LBB0_2:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_9:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_INT,8,3                     ## @IR_INT
	.comm	_RC6_CTRL,8,3                   ## @RC6_CTRL
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tango_ir_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tango_ir_irq
_tango_ir_irq:                          ; @tango_ir_irq
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x21, _IR_INT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IR_INT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _RC6_CTRL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RC6_CTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel_relaxed
	tst	w20, #0x3
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #31
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_10
LBB0_2:
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_tango_ir_handle_rc5
LBB0_4:
	mov	w0, #1
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_tango_ir_handle_nec
LBB0_6:
	mov	w0, #31
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_tango_ir_handle_rc6
LBB0_8:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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_10:
Lloh6:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_INT,8,3                     ; @IR_INT
	.comm	_RC6_CTRL,8,3                   ; @RC6_CTRL
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tango_ir_irq
.subsections_via_symbols
