	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function found_v2_header
_found_v2_header:                       ## @found_v2_header
	.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
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	movslq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	12(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%rbx), %edi
	addl	8(%rbx), %edi
	callq	_phys_to_virt
	movq	_memconsole_baseaddr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	4(%rbx), %eax
	subl	(%rbx), %eax
	movq	_memconsole_length@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_memconsole_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_memconsole_setup               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memconsole: BIOS console v2 EBDA structure found at %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"memconsole: BIOS console buffer at 0x%.8x, start = %d, end = %d, num_bytes = %d\n"

	.comm	_memconsole_baseaddr,4,2        ## @memconsole_baseaddr
	.comm	_memconsole_length,4,2          ## @memconsole_length
	.comm	_memconsole_read,4,2            ## @memconsole_read
	.no_dead_strip	_found_v2_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function found_v2_header
_found_v2_header:                       ; @found_v2_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_info
	ldp	w8, w9, [x19]
	ldp	w1, w10, [x19, #8]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	add	w0, w9, w8
	bl	_phys_to_virt
Lloh4:
	adrp	x8, _memconsole_baseaddr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _memconsole_baseaddr@GOTPAGEOFF]
Lloh6:
	str	w0, [x8]
	ldp	w9, w8, [x19]
Lloh7:
	adrp	x10, _memconsole_length@GOTPAGE
Lloh8:
	ldr	x10, [x10, _memconsole_length@GOTPAGEOFF]
	sub	w8, w8, w9
Lloh9:
	str	w8, [x10]
Lloh10:
	adrp	x8, _memconsole_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _memconsole_read@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_memconsole_setup
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memconsole: BIOS console v2 EBDA structure found at %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"memconsole: BIOS console buffer at 0x%.8x, start = %d, end = %d, num_bytes = %d\n"

	.comm	_memconsole_baseaddr,4,2        ; @memconsole_baseaddr
	.comm	_memconsole_length,4,2          ; @memconsole_length
	.comm	_memconsole_read,4,2            ; @memconsole_read
	.no_dead_strip	_found_v2_header
.subsections_via_symbols
