	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basl_fwrite_rsdp
_basl_fwrite_rsdp:                      ## @basl_fwrite_rsdp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	movq	_basl_acpi_base@GOTPCREL(%rip), %r14
	movq	_RSDT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r14), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	movq	_XSDT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r14), %rdx
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_EFPRINTF
	movq	%rbx, %rdi
	callq	_EFFLUSH
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/*\n"

L_.str.1:                               ## @.str.1
	.asciz	" * bhyve RSDP template\n"

L_.str.2:                               ## @.str.2
	.asciz	" */\n"

L_.str.3:                               ## @.str.3
	.asciz	"[0008]\t\tSignature : \"RSD PTR \"\n"

L_.str.4:                               ## @.str.4
	.asciz	"[0001]\t\tChecksum : 43\n"

L_.str.5:                               ## @.str.5
	.asciz	"[0006]\t\tOem ID : \"BHYVE \"\n"

L_.str.6:                               ## @.str.6
	.asciz	"[0001]\t\tRevision : 02\n"

L_.str.7:                               ## @.str.7
	.asciz	"[0004]\t\tRSDT Address : %08X\n"

	.comm	_basl_acpi_base,8,3             ## @basl_acpi_base
	.comm	_RSDT_OFFSET,8,3                ## @RSDT_OFFSET
L_.str.8:                               ## @.str.8
	.asciz	"[0004]\t\tLength : 00000024\n"

L_.str.9:                               ## @.str.9
	.asciz	"[0008]\t\tXSDT Address : 00000000%08X\n"

	.comm	_XSDT_OFFSET,8,3                ## @XSDT_OFFSET
L_.str.10:                              ## @.str.10
	.asciz	"[0001]\t\tExtended Checksum : 00\n"

L_.str.11:                              ## @.str.11
	.asciz	"[0003]\t\tReserved : 000000\n"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_basl_fwrite_rsdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basl_fwrite_rsdp
_basl_fwrite_rsdp:                      ; @basl_fwrite_rsdp
	.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_EFPRINTF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh14:
	adrp	x20, _basl_acpi_base@GOTPAGE
Lloh15:
	ldr	x20, [x20, _basl_acpi_base@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _RSDT_OFFSET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RSDT_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _XSDT_OFFSET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XSDT_OFFSET@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
Lloh30:
	adrp	x1, l_.str.11@PAGE
Lloh31:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_EFPRINTF
	mov	x0, x19
	bl	_EFFLUSH
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/*\n"

l_.str.1:                               ; @.str.1
	.asciz	" * bhyve RSDP template\n"

l_.str.2:                               ; @.str.2
	.asciz	" */\n"

l_.str.3:                               ; @.str.3
	.asciz	"[0008]\t\tSignature : \"RSD PTR \"\n"

l_.str.4:                               ; @.str.4
	.asciz	"[0001]\t\tChecksum : 43\n"

l_.str.5:                               ; @.str.5
	.asciz	"[0006]\t\tOem ID : \"BHYVE \"\n"

l_.str.6:                               ; @.str.6
	.asciz	"[0001]\t\tRevision : 02\n"

l_.str.7:                               ; @.str.7
	.asciz	"[0004]\t\tRSDT Address : %08X\n"

	.comm	_basl_acpi_base,8,3             ; @basl_acpi_base
	.comm	_RSDT_OFFSET,8,3                ; @RSDT_OFFSET
l_.str.8:                               ; @.str.8
	.asciz	"[0004]\t\tLength : 00000024\n"

l_.str.9:                               ; @.str.9
	.asciz	"[0008]\t\tXSDT Address : 00000000%08X\n"

	.comm	_XSDT_OFFSET,8,3                ; @XSDT_OFFSET
l_.str.10:                              ; @.str.10
	.asciz	"[0001]\t\tExtended Checksum : 00\n"

l_.str.11:                              ; @.str.11
	.asciz	"[0003]\t\tReserved : 000000\n"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_basl_fwrite_rsdp
.subsections_via_symbols
