	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_part_wizard                    ## -- Begin function part_wizard
	.p2align	4, 0x90
_part_wizard:                           ## @part_wizard
	.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
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %r15
	cmovneq	%rdi, %r15
	leaq	-48(%rbp), %r12
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_geom_gettree
	xorl	%eax, %eax
	callq	_dlg_put_backtitle
	movq	%r12, %rdi
	callq	_geom_gettree
	movq	%r12, %rdi
	callq	_boot_disk
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_dlg_clear
	xorl	%eax, %eax
	callq	_dlg_put_backtitle
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wizard_partition
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_free
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_geom_deletetree
	xorl	%eax, %eax
	callq	_dlg_clear
	xorl	%eax, %eax
	callq	_dlg_put_backtitle
	movq	%r12, %rdi
	callq	_geom_gettree
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_wizard_makeparts
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	callq	_free
	leaq	-48(%rbp), %rdi
	callq	_geom_deletetree
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ufs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_part_wizard                    ; -- Begin function part_wizard
	.p2align	2
_part_wizard:                           ; @part_wizard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x19, x8, x0, eq
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_geom_gettree
	bl	_dlg_put_backtitle
	add	x0, sp, #8
	bl	_geom_gettree
	add	x0, sp, #8
	bl	_boot_disk
	cbz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	bl	_dlg_clear
	bl	_dlg_put_backtitle
	add	x0, sp, #8
	mov	x1, x21
	bl	_wizard_partition
	mov	x20, x0
	mov	x0, x21
	bl	_free
	cbz	x20, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #8
	bl	_geom_deletetree
	bl	_dlg_clear
	bl	_dlg_put_backtitle
	add	x0, sp, #8
	bl	_geom_gettree
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_wizard_makeparts
	cbnz	w0, LBB0_1
; %bb.4:
	mov	x0, x20
	bl	_free
	add	x0, sp, #8
	bl	_geom_deletetree
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ufs"

.subsections_via_symbols
