	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madt_parse_interrupt_override
_madt_parse_interrupt_override:         ## @madt_parse_interrupt_override
	.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	%rdi, %rbx
	movq	_acpi_quirks@GOTPCREL(%rip), %rax
	movq	_ACPI_Q_MADT_IRQ0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.2:
	cmpl	$2, 4(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	leaq	L_str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_5:
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_madt_parse_interrupt_values
	movl	(%rbx), %eax
	movl	4(%rbx), %edi
	cmpl	%edi, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$16, %edi
	jl	LBB0_9
## %bb.7:
	movq	_AcpiGbl_FADT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	callq	_acpi_OverrideInterruptLevel
	movl	4(%rbx), %edi
LBB0_9:
	movl	-16(%rbp), %esi
	movl	-12(%rbp), %edx
	callq	_xen_register_pirq
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_quirks,4,2                ## @acpi_quirks
	.comm	_ACPI_Q_MADT_IRQ0,4,2           ## @ACPI_Q_MADT_IRQ0
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_AcpiGbl_FADT,4,2               ## @AcpiGbl_FADT
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Unable to register interrupt override"

L_str:                                  ## @str
	.asciz	"MADT: Skipping timer override"

	.no_dead_strip	_madt_parse_interrupt_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madt_parse_interrupt_override
_madt_parse_interrupt_override:         ; @madt_parse_interrupt_override
	.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, x0
Lloh0:
	adrp	x8, _acpi_quirks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_quirks@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ACPI_Q_MADT_IRQ0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_Q_MADT_IRQ0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _bootverbose@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_puts
LBB0_5:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_madt_parse_interrupt_values
	ldp	w8, w0, [x19]
Lloh11:
	adrp	x9, _AcpiGbl_FADT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AcpiGbl_FADT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w0, #16, #8, ne
	ccmp	w8, w9, #0, ge
	b.ne	LBB0_7
; %bb.6:
	bl	_acpi_OverrideInterruptLevel
	ldr	w0, [x19, #4]
LBB0_7:
	ldp	w2, w1, [sp, #8]
	bl	_xen_register_pirq
	cbz	w0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_quirks,4,2                ; @acpi_quirks
	.comm	_ACPI_Q_MADT_IRQ0,4,2           ; @ACPI_Q_MADT_IRQ0
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_AcpiGbl_FADT,4,2               ; @AcpiGbl_FADT
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Unable to register interrupt override"

l_str:                                  ; @str
	.asciz	"MADT: Skipping timer override"

	.no_dead_strip	_madt_parse_interrupt_override
.subsections_via_symbols
