	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_VPD_PROM
_get_VPD_PROM:                          ## @get_VPD_PROM
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_func_enter
	movq	_RIO_DEBUG_PROBE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_RIO_VPD_ROM@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	addq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_rio_dprintk
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readb
	movb	%al, _get_VPD_PROM.vpdp(%rip)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$2, %rdi
	callq	_readb
	movb	%al, _get_VPD_PROM.vpdp+1(%rip)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$4, %rdi
	callq	_readb
	movb	%al, _get_VPD_PROM.vpdp+2(%rip)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$6, %rdi
	callq	_readb
	movb	%al, _get_VPD_PROM.vpdp+3(%rip)
	movb	$0, _get_VPD_PROM.vpdp+4(%rip)
	movq	_rio_debug@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	_get_VPD_PROM.vpdp(%rip), %rdi
	movl	$32, %esi
	callq	_my_hd
LBB0_2:
	xorl	%eax, %eax
	callq	_func_exit
	leaq	_get_VPD_PROM.vpdp(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_VPD_PROM.vpdp,4,2 ## @get_VPD_PROM.vpdp
	.comm	_RIO_DEBUG_PROBE,4,2            ## @RIO_DEBUG_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Going to verify vpd prom at %p.\n"

	.comm	_RIO_VPD_ROM,8,3                ## @RIO_VPD_ROM
	.comm	_rio_debug,4,2                  ## @rio_debug
	.no_dead_strip	_get_VPD_PROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_VPD_PROM
_get_VPD_PROM:                          ; @get_VPD_PROM
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_func_enter
Lloh0:
	adrp	x20, _RIO_DEBUG_PROBE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RIO_DEBUG_PROBE@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _RIO_VPD_ROM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RIO_VPD_ROM@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x2, x9, x8
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x8, x9
	bl	_readb
Lloh6:
	adrp	x22, _get_VPD_PROM.vpdp@PAGE
Lloh7:
	add	x22, x22, _get_VPD_PROM.vpdp@PAGEOFF
	strb	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x0, x8, #2
	bl	_readb
	strb	w0, [x22, #1]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x0, x8, #4
	bl	_readb
	strb	w0, [x22, #2]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x0, x8, #6
	bl	_readb
	strb	w0, [x22, #3]
	strb	wzr, [x22, #4]
Lloh8:
	adrp	x8, _rio_debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rio_debug@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, _get_VPD_PROM.vpdp@PAGE
Lloh12:
	add	x0, x0, _get_VPD_PROM.vpdp@PAGEOFF
	mov	w1, #32
	bl	_my_hd
LBB0_2:
	bl	_func_exit
Lloh13:
	adrp	x0, _get_VPD_PROM.vpdp@PAGE
Lloh14:
	add	x0, x0, _get_VPD_PROM.vpdp@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_VPD_PROM.vpdp,4,2 ; @get_VPD_PROM.vpdp
	.comm	_RIO_DEBUG_PROBE,4,2            ; @RIO_DEBUG_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Going to verify vpd prom at %p.\n"

	.comm	_RIO_VPD_ROM,8,3                ; @RIO_VPD_ROM
	.comm	_rio_debug,4,2                  ; @rio_debug
	.no_dead_strip	_get_VPD_PROM
.subsections_via_symbols
