	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getrootmount                   ## -- Begin function getrootmount
	.p2align	4, 0x90
_getrootmount:                          ## @getrootmount
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_40:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.41:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_20
## %bb.2:
	movl	%eax, %r13d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%r12)
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	movq	%r15, %rdi
	movl	$128, %esi
	movl	%r13d, %edx
	callq	_fgetstr
	testq	%rax, %rax
	js	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	-176(%rbp), %al
	testb	%al, %al
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$35, %al
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-174(%rbp), %rbx
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	1(%r12), %eax
	incq	%r12
	incq	%rbx
	testb	%al, %al
	jne	LBB0_7
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r12)
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movsbl	%al, %edi
	callq	_isspace
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$47, -2(%rbx)
	jne	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movsbl	-1(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_3
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_17
	jmp	LBB0_3
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_3
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	movq	%rbx, %r14
LBB0_25:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movzbl	1(%r14), %eax
	incq	%r14
	testb	%al, %al
	jne	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r14)
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	incq	%r14
LBB0_28:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rbx
	movzbl	(%r14), %eax
	testb	%al, %al
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=2
	movsbl	%al, %edi
	callq	_isspace
	leaq	1(%rbx), %r14
	testq	%rax, %rax
	jne	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	-1(%r14), %al
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	movq	-192(%rbp), %r14                ## 8-byte Reload
	je	LBB0_3
## %bb.33:
	movq	%rbx, %r14
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movzbl	1(%r14), %eax
	incq	%r14
	testb	%al, %al
	jne	LBB0_34
LBB0_36:
	movb	$0, (%r14)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setenv
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_38
## %bb.37:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_setenv
LBB0_38:
	movq	%r14, %rdi
	callq	_free
	movl	%r13d, %edi
	callq	_close
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_39
LBB0_19:
	movl	%r13d, %edi
	callq	_close
	movq	%r14, %rdi
	callq	_free
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_free
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_40
## %bb.21:
	movq	%rax, %r14
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_40
## %bb.22:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setenv
LBB0_39:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_40
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vfs.root.mountfrom"

L_.str.1:                               ## @.str.1
	.asciz	"%s/etc/fstab"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"%s:%s"

L_.str.3:                               ## @.str.3
	.asciz	"vfs.root.mountfrom.options"

L_.str.4:                               ## @.str.4
	.asciz	"currdev"

L_.str.5:                               ## @.str.5
	.asciz	"zfs:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getrootmount                   ; -- Begin function getrootmount
	.p2align	2
_getrootmount:                          ; @getrootmount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x0
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	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_38
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x22, sp, #8
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_open
	tbnz	w0, #31, LBB0_35
; %bb.3:
	mov	x20, x0
	mov	x21, #0
	mov	x19, #0
	add	x23, x22, #2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x24]
	cbnz	w8, LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x20
	bl	_fgetstr
	tbnz	x0, #63, LBB0_34
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #35
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, sp, #8
	mov	x22, x23
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w8, [x24, #1]!
	add	x22, x22, #1
	cbnz	w8, LBB0_9
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x24]
	mov	x0, x21
	bl	_free
	add	x0, sp, #8
	bl	_strdup
	mov	x21, x0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w8, [x22, #-1]
	cbz	w8, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sxtb	w0, w8
	bl	_isspace
	add	x22, x22, #1
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldurb	w8, [x22, #-2]
	cmp	w8, #47
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldursb	w0, [x22, #-1]
	bl	_isspace
	cbz	x0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_17
	b	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x22
LBB0_21:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldrb	w8, [x24, #1]!
	cbnz	w8, LBB0_21
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x24], #1
	mov	x0, x19
	bl	_free
	mov	x0, x22
	bl	_strdup
	mov	x19, x0
LBB0_24:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x24
	ldrb	w8, [x24]
	cbz	w8, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	sxtb	w0, w8
	bl	_isspace
	add	x24, x22, #1
	cbnz	x0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	ldurb	w8, [x24, #-1]
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_5
; %bb.28:
	mov	x23, x22
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_29
LBB0_31:
	strb	wzr, [x23]
	mov	x0, x22
	bl	_strdup
	mov	x22, x0
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #0
	bl	_setenv
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_33
; %bb.32:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	w2, #0
	bl	_setenv
LBB0_33:
	mov	x0, x22
	bl	_free
	mov	x0, x20
	bl	_close
	mov	x0, x21
	bl	_free
	b	LBB0_41
LBB0_34:
	mov	x0, x20
	bl	_close
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_35:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_37
; %bb.36:
	mov	x19, x0
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_40
LBB0_37:
	mov	w0, #1
LBB0_38:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.39:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_40:
	mov	x0, x19
	bl	_strdup
	mov	x19, x0
	bl	_strlen
	add	x8, x19, w0, sxtw
	sturb	wzr, [x8, #-1]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	w2, #0
	bl	_setenv
LBB0_41:
	mov	x0, x19
	bl	_free
	b	LBB0_1
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vfs.root.mountfrom"

l_.str.1:                               ; @.str.1
	.asciz	"%s/etc/fstab"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"%s:%s"

l_.str.3:                               ; @.str.3
	.asciz	"vfs.root.mountfrom.options"

l_.str.4:                               ; @.str.4
	.asciz	"currdev"

l_.str.5:                               ; @.str.5
	.asciz	"zfs:"

.subsections_via_symbols
