	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ir_irq
_meson_ir_irq:                          ## @meson_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_IR_DEC_REG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	_REG1_TIME_IV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	movq	_MESON_TRATE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %edi
	callq	_US_TO_NS
	movl	%eax, -12(%rbp)
	movq	_IR_DEC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	_STATUS_IR_DEC_IN@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, -16(%rbp)
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_ir_raw_event_store_with_timeout
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_DEC_REG1,8,3                ## @IR_DEC_REG1
	.comm	_REG1_TIME_IV_MASK,4,2          ## @REG1_TIME_IV_MASK
	.comm	_MESON_TRATE,4,2                ## @MESON_TRATE
	.comm	_IR_DEC_STATUS,8,3              ## @IR_DEC_STATUS
	.comm	_STATUS_IR_DEC_IN,4,2           ## @STATUS_IR_DEC_IN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_meson_ir_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ir_irq
_meson_ir_irq:                          ; @meson_ir_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _IR_DEC_REG1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_DEC_REG1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x1, x0
Lloh3:
	adrp	x8, _REG1_TIME_IV_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG1_TIME_IV_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FIELD_GET
Lloh6:
	adrp	x8, _MESON_TRATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MESON_TRATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mul	w0, w8, w0
	bl	_US_TO_NS
	str	w0, [sp, #12]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _IR_DEC_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IR_DEC_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh12:
	adrp	x8, _STATUS_IR_DEC_IN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATUS_IR_DEC_IN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [sp, #8]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_timeout
	mov	x0, x19
	bl	_spin_unlock
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_DEC_REG1,8,3                ; @IR_DEC_REG1
	.comm	_REG1_TIME_IV_MASK,4,2          ; @REG1_TIME_IV_MASK
	.comm	_MESON_TRATE,4,2                ; @MESON_TRATE
	.comm	_IR_DEC_STATUS,8,3              ; @IR_DEC_STATUS
	.comm	_STATUS_IR_DEC_IN,4,2           ; @STATUS_IR_DEC_IN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_meson_ir_irq
.subsections_via_symbols
