	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_relocate_spec              ## -- Begin function env_relocate_spec
	.p2align	4, 0x90
_env_relocate_spec:                     ## @env_relocate_spec
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CONFIG_ENV_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_EXT4_ENV_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EXT4_ENV_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EXT4_ENV_INTERFACE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	%ebx, %esi
	callq	_get_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_ext4_register_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_2
LBB0_1:
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.3:
	xorl	%edi, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_default_env                ## TAILCALL
LBB0_7:
	movq	_EXT4_ENV_FILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %ecx
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ext4_read_file
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_ext4fs_close
	cmpl	$-1, %r12d
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_env_import
	jmp	LBB0_10
LBB0_8:
	movq	_EXT4_ENV_FILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_set_default_env
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ENV_SIZE,4,2            ## @CONFIG_ENV_SIZE
	.comm	_EXT4_ENV_DEVICE,4,2            ## @EXT4_ENV_DEVICE
	.comm	_EXT4_ENV_PART,4,2              ## @EXT4_ENV_PART
	.comm	_EXT4_ENV_INTERFACE,8,3         ## @EXT4_ENV_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find %s%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register %s%d:%d\n"

	.comm	_EXT4_ENV_FILE,8,3              ## @EXT4_ENV_FILE
L_.str.2:                               ## @.str.2
	.asciz	"\n** Unable to read \"%s\" from %s%d:%d **\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_relocate_spec              ; -- Begin function env_relocate_spec
	.p2align	2
_env_relocate_spec:                     ; @env_relocate_spec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _CONFIG_ENV_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CONFIG_ENV_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _EXT4_ENV_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXT4_ENV_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
Lloh10:
	adrp	x8, _EXT4_ENV_PART@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXT4_ENV_PART@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x23, _EXT4_ENV_INTERFACE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _EXT4_ENV_INTERFACE@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	x1, x19
	bl	_get_dev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x21
	bl	_ext4_register_device
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x1, [x23]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x21, [sp, #-16]!
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x1, [x23]
	str	x19, [sp, #-16]!
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_printf
	add	sp, sp, #16
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, #0
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_default_env
LBB0_6:
Lloh22:
	adrp	x24, _EXT4_ENV_FILE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _EXT4_ENV_FILE@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	w3, [x22]
	mov	x1, x20
	mov	w2, #0
	bl	_ext4_read_file
	mov	x22, x0
	bl	_ext4fs_close
	cmn	w22, #1
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	bl	_env_import
	b	LBB0_9
LBB0_8:
	ldr	x1, [x24]
	ldr	x8, [x23]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sub	sp, sp, #32
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x21, [sp, #8]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #32
	mov	x0, #0
	bl	_set_default_env
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ENV_SIZE,4,2            ; @CONFIG_ENV_SIZE
	.comm	_EXT4_ENV_DEVICE,4,2            ; @EXT4_ENV_DEVICE
	.comm	_EXT4_ENV_PART,4,2              ; @EXT4_ENV_PART
	.comm	_EXT4_ENV_INTERFACE,8,3         ; @EXT4_ENV_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find %s%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register %s%d:%d\n"

	.comm	_EXT4_ENV_FILE,8,3              ; @EXT4_ENV_FILE
l_.str.2:                               ; @.str.2
	.asciz	"\n** Unable to read \"%s\" from %s%d:%d **\n"

.subsections_via_symbols
