	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_handle_madt
_acpi_handle_madt:                      ## @acpi_handle_madt
	.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	_BEGIN_COMMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_acpi_print_sdt
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_ACPI_MADT_PCAT_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	8(%rbx), %rsi
	movq	_acpi_print_madt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_acpi_walk_subtables
	movq	_END_COMMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BEGIN_COMMENT,8,3              ## @BEGIN_COMMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tLocal APIC ADDR=0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"\tFlags={"

	.comm	_ACPI_MADT_PCAT_COMPAT,4,2      ## @ACPI_MADT_PCAT_COMPAT
L_.str.2:                               ## @.str.2
	.asciz	"PC-AT"

	.comm	_acpi_print_madt,4,2            ## @acpi_print_madt
	.comm	_END_COMMENT,8,3                ## @END_COMMENT
L_str:                                  ## @str
	.asciz	"}"

	.no_dead_strip	_acpi_handle_madt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_handle_madt
_acpi_handle_madt:                      ; @acpi_handle_madt
	.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, _BEGIN_COMMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEGIN_COMMENT@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_printf
	mov	x0, x19
	bl	_acpi_print_sdt
	ldr	w8, [x19]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _ACPI_MADT_PCAT_COMPAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACPI_MADT_PCAT_COMPAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_2:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	add	x1, x19, #8
Lloh14:
	adrp	x8, _acpi_print_madt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _acpi_print_madt@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_acpi_walk_subtables
Lloh17:
	adrp	x8, _END_COMMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _END_COMMENT@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_printf
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BEGIN_COMMENT,8,3              ; @BEGIN_COMMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tLocal APIC ADDR=0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"\tFlags={"

	.comm	_ACPI_MADT_PCAT_COMPAT,4,2      ; @ACPI_MADT_PCAT_COMPAT
l_.str.2:                               ; @.str.2
	.asciz	"PC-AT"

	.comm	_acpi_print_madt,4,2            ; @acpi_print_madt
	.comm	_END_COMMENT,8,3                ; @END_COMMENT
l_str:                                  ; @str
	.asciz	"}"

	.no_dead_strip	_acpi_handle_madt
.subsections_via_symbols
