	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_currdev
_extract_currdev:                       ## @extract_currdev
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_userboot_disk_maxunit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	_userboot_disk@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_D_SLICEWILD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	movq	_D_PARTWILD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_D_SLICENONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_D_PARTNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_4
LBB0_3:
	movq	_host_dev@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
LBB0_4:
	movq	_EV_VOLATILE@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_userboot_fmtdev
	movq	_userboot_setcurrdev@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_env_nounset@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_env_setenv
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_userboot_fmtdev
	movq	_env_noset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_env_setenv
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_userboot_disk_maxunit,8,3      ## @userboot_disk_maxunit
	.comm	_userboot_disk,8,3              ## @userboot_disk
	.comm	_D_SLICEWILD,4,2                ## @D_SLICEWILD
	.comm	_D_PARTWILD,4,2                 ## @D_PARTWILD
	.comm	_D_SLICENONE,4,2                ## @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ## @D_PARTNONE
	.comm	_host_dev,8,3                   ## @host_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"currdev"

	.comm	_EV_VOLATILE,4,2                ## @EV_VOLATILE
	.comm	_userboot_setcurrdev,4,2        ## @userboot_setcurrdev
	.comm	_env_nounset,4,2                ## @env_nounset
L_.str.1:                               ## @.str.1
	.asciz	"loaddev"

	.comm	_env_noset,4,2                  ## @env_noset
	.comm	_userboot_zfs_found,8,3         ## @userboot_zfs_found
	.comm	_zfs_dev,8,3                    ## @zfs_dev
	.no_dead_strip	_extract_currdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_currdev
_extract_currdev:                       ; @extract_currdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _userboot_disk_maxunit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _userboot_disk_maxunit@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _userboot_disk@GOTPAGE
Lloh4:
	ldr	x8, [x8, _userboot_disk@GOTPAGEOFF]
	stp	xzr, x8, [sp, #8]
Lloh5:
	adrp	x9, _D_SLICEWILD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _D_SLICEWILD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _D_PARTWILD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _D_PARTWILD@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #24]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, #0
	blr	x8
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _D_SLICENONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_SLICENONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _D_PARTNONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D_PARTNONE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _host_dev@GOTPAGE
Lloh18:
	ldr	x8, [x8, _host_dev@GOTPAGEOFF]
	stp	xzr, x8, [sp, #8]
LBB0_4:
Lloh19:
	adrp	x20, _EV_VOLATILE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _EV_VOLATILE@GOTPAGEOFF]
	ldr	w19, [x20]
	add	x0, sp, #8
	bl	_userboot_fmtdev
	mov	x2, x0
Lloh21:
	adrp	x8, _userboot_setcurrdev@GOTPAGE
Lloh22:
	ldr	x8, [x8, _userboot_setcurrdev@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x21, _env_nounset@GOTPAGE
Lloh25:
	ldr	x21, [x21, _env_nounset@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_env_setenv
	ldr	w19, [x20]
	add	x0, sp, #8
	bl	_userboot_fmtdev
	mov	x2, x0
Lloh28:
	adrp	x8, _env_noset@GOTPAGE
Lloh29:
	ldr	x8, [x8, _env_noset@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	ldr	w4, [x21]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_env_setenv
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_userboot_disk_maxunit,8,3      ; @userboot_disk_maxunit
	.comm	_userboot_disk,8,3              ; @userboot_disk
	.comm	_D_SLICEWILD,4,2                ; @D_SLICEWILD
	.comm	_D_PARTWILD,4,2                 ; @D_PARTWILD
	.comm	_D_SLICENONE,4,2                ; @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ; @D_PARTNONE
	.comm	_host_dev,8,3                   ; @host_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"currdev"

	.comm	_EV_VOLATILE,4,2                ; @EV_VOLATILE
	.comm	_userboot_setcurrdev,4,2        ; @userboot_setcurrdev
	.comm	_env_nounset,4,2                ; @env_nounset
l_.str.1:                               ; @.str.1
	.asciz	"loaddev"

	.comm	_env_noset,4,2                  ; @env_noset
	.comm	_userboot_zfs_found,8,3         ; @userboot_zfs_found
	.comm	_zfs_dev,8,3                    ; @zfs_dev
	.no_dead_strip	_extract_currdev
.subsections_via_symbols
