	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpd_sections_init
_vpd_sections_init:                     ## @vpd_sections_init
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MEMREMAP_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_memremap
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdi
	movq	%rax, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_memunmap
	movq	-40(%rbp), %rax
	movq	_VPD_CBMEM_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	-24(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	leaq	24(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movq	_ro_vpd@GOTPCREL(%rip), %rsi
	callq	_vpd_section_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_7:
	movq	-32(%rbp), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	movq	-24(%rbp), %rax
	leaq	(%r14,%rax), %rdx
	addq	$24, %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	_rw_vpd@GOTPCREL(%rip), %rsi
	callq	_vpd_section_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	movq	_ro_vpd@GOTPCREL(%rip), %rdi
	callq	_vpd_section_destroy
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMREMAP_WB,4,2                ## @MEMREMAP_WB
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VPD_CBMEM_MAGIC,8,3            ## @VPD_CBMEM_MAGIC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ro"

	.comm	_ro_vpd,4,2                     ## @ro_vpd
L_.str.1:                               ## @.str.1
	.asciz	"rw"

	.comm	_rw_vpd,4,2                     ## @rw_vpd
	.no_dead_strip	_vpd_sections_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpd_sections_init
_vpd_sections_init:                     ; @vpd_sections_init
	.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	x8, _MEMREMAP_WB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMREMAP_WB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_memremap
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	mov	x0, x20
	bl	_memunmap
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _VPD_CBMEM_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VPD_CBMEM_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x3, [sp, #24]
	cbz	x3, LBB0_4
; %bb.3:
	add	x2, x19, #24
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, _ro_vpd@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ro_vpd@GOTPAGEOFF]
	bl	_vpd_section_init
	mov	x20, x0
	cbnz	w0, LBB0_10
LBB0_4:
	ldr	x3, [sp, #16]
	cbz	x3, LBB0_11
; %bb.5:
	ldr	x8, [sp, #24]
	add	x8, x19, x8
	add	x2, x8, #24
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x1, _rw_vpd@GOTPAGE
Lloh13:
	ldr	x1, [x1, _rw_vpd@GOTPAGEOFF]
	bl	_vpd_section_init
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x0, _ro_vpd@GOTPAGE
Lloh15:
	ldr	x0, [x0, _ro_vpd@GOTPAGEOFF]
	bl	_vpd_section_destroy
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	mov	w20, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMREMAP_WB,4,2                ; @MEMREMAP_WB
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VPD_CBMEM_MAGIC,8,3            ; @VPD_CBMEM_MAGIC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ro"

	.comm	_ro_vpd,4,2                     ; @ro_vpd
l_.str.1:                               ; @.str.1
	.asciz	"rw"

	.comm	_rw_vpd,4,2                     ; @rw_vpd
	.no_dead_strip	_vpd_sections_init
.subsections_via_symbols
