	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r15
	movl	%edi, %ebx
	movl	$-1, %r14d
	leaq	L_.str(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_1
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_v_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$119, %ecx
	ja	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rcx,4), %rcx
	addq	%r13, %rcx
	jmpq	*%rcx
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	$-48, %eax
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_s_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_u_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_B_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_a_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_b_flag@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_f_flag@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_i_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_q_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_t_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_I_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_print_config_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_17:
	movq	_f_flag@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_19
## %bb.18:
	movq	_i_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
LBB0_19:
	movq	_u_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_20:
	movq	_t_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	_v_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_22:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpl	%ebx, %r12d
	jne	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	callq	_get_rootdisk
	movq	_disk@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_26
LBB0_24:
	movq	(%r15,%r12,8), %rdi
	callq	_g_device_path
	movq	_disk@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	(%r15,%r12,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_26:
	movq	_u_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_open_disk
	testq	%rax, %rax
	jns	LBB0_28
## %bb.27:
	movq	_disk@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_28:
	movq	_MAX_SEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	_mboot@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	_mboot@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
LBB0_30:
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_read_disk
	cmpl	$-1, %eax
	jne	LBB0_32
## %bb.31:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_32:
	movq	_mboot@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rdi
	callq	_free
	movq	$0, 8(%rbx)
	movq	_print_config_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_33
## %bb.42:
	movq	_s_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_43
## %bb.50:
	movq	_disk@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_I_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_51
## %bb.56:
	cmpq	$0, (%r13)
	jne	LBB0_57
## %bb.62:
	movq	_u_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_63
## %bb.64:
	xorl	%eax, %eax
	callq	_print_params
	jmp	LBB0_65
LBB0_33:
	xorl	%eax, %eax
	callq	_read_s0
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_35:
	movq	_disk@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_dos_cyls@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dos_heads@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dos_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_NDOSPART@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_41
## %bb.36:
	movl	$20, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_37 Depth=1
	movslq	(%r13), %rax
	addq	$24, %r14
	cmpq	%rax, %r12
	jge	LBB0_41
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	_mboot@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	-20(%r15,%r14), %rcx
	movq	-12(%r15,%r14), %r8
	incq	%r12
	movq	%rcx, %rax
	orq	%r8, %rax
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	-4(%r15,%r14), %edx
	incq	%rbx
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_printf
	testb	$-128, (%r15,%r14)
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=1
	leaq	L_.str.9(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_40
LBB0_43:
	xorl	%eax, %eax
	callq	_read_s0
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_45:
	movq	_disk@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_dos_cyls@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dos_heads@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dos_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.12(%rip), %rsi
	leaq	L_.str.13(%rip), %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	_NDOSPART@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_41
## %bb.46:
	movl	$20, %ebx
	leaq	L_.str.14(%rip), %r15
	xorl	%esi, %esi
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=1
	movslq	%r8d, %rax
	addq	$24, %rbx
	movq	%r12, %rsi
	cmpq	%rax, %r12
	jge	LBB0_41
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	_mboot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-20(%rdi,%rbx), %rdx
	movq	-12(%rdi,%rbx), %rcx
	leaq	1(%rsi), %r12
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movl	-4(%rdi,%rbx), %r8d
	movl	(%rdi,%rbx), %r9d
	incl	%esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %r8d
	jmp	LBB0_49
LBB0_51:
	xorl	%eax, %eax
	callq	_read_s0
	xorl	%eax, %eax
	callq	_reset_boot
	movq	_mboot@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_DOSPTYP_386BSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_dos_sectors@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_disksecs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dos_cylsecs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rounddown
	movslq	(%r14), %rcx
	cltq
	subq	%rcx, %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_dos
LBB0_52:
	movq	_v_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_54
## %bb.53:
	xorl	%eax, %eax
	callq	_print_s0
LBB0_54:
	movq	_t_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_41
LBB0_55:
	xorl	%eax, %eax
	callq	_write_s0
	xorl	%edi, %edi
	callq	_exit
LBB0_57:
	xorl	%eax, %eax
	callq	_read_s0
	testq	%rax, %rax
	jne	LBB0_59
## %bb.58:
	movq	_i_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_60
LBB0_59:
	xorl	%eax, %eax
	callq	_reset_boot
LBB0_60:
	movq	(%r13), %rdi
	callq	_read_config
	testl	%eax, %eax
	jne	LBB0_52
## %bb.61:
	movl	$1, %edi
	callq	_exit
LBB0_63:
	xorl	%eax, %eax
	callq	_get_params_to_use
LBB0_65:
	xorl	%eax, %eax
	callq	_read_s0
	testq	%rax, %rax
	je	LBB0_67
## %bb.66:
	movq	_dos_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_init_sector0
LBB0_67:
	movq	_secsize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.23(%rip), %rdi
	callq	_puts
	cmpl	$-1, %r14d
	jne	LBB0_71
## %bb.68:
	movq	_NDOSPART@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_72
## %bb.69:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_70:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, %edi
	callq	_change_part
	cmpl	(%r15), %ebx
	jl	LBB0_70
	jmp	LBB0_72
LBB0_71:
	movl	%r14d, %edi
	callq	_change_part
LBB0_72:
	movq	_u_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_a_flag@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	je	LBB0_74
## %bb.73:
	movl	%r14d, %edi
	callq	_change_active
LBB0_74:
	movq	_B_flag@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_76
## %bb.75:
	xorl	%eax, %eax
	jmp	LBB0_77
LBB0_76:
	xorl	%eax, %eax
	callq	_change_code
	cmpl	$0, (%rbx)
	setne	%al
LBB0_77:
	movq	_u_flag@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_80
## %bb.78:
	movq	_a_flag@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_80
## %bb.79:
	testb	%al, %al
	je	LBB0_41
LBB0_80:
	movq	_t_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_82
## %bb.81:
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.24(%rip), %rdi
	callq	_puts
LBB0_82:
	xorl	%eax, %eax
	callq	_print_s0
	movq	_t_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_84
## %bb.83:
	leaq	L_.str.21(%rip), %rdi
	callq	_ok
	testq	%rax, %rax
	jne	LBB0_55
LBB0_41:
	xorl	%edi, %edi
	callq	_exit
LBB0_84:
	leaq	L_str.25(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_3
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_7
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BIab:f:ipqstuv1234"

	.comm	_B_flag,4,2                     ## @B_flag
	.comm	_I_flag,4,2                     ## @I_flag
	.comm	_a_flag,4,2                     ## @a_flag
	.comm	_optarg,8,3                     ## @optarg
	.comm	_b_flag,8,3                     ## @b_flag
	.comm	_f_flag,8,3                     ## @f_flag
	.comm	_i_flag,4,2                     ## @i_flag
	.comm	_print_config_flag,4,2          ## @print_config_flag
	.comm	_q_flag,4,2                     ## @q_flag
	.comm	_s_flag,4,2                     ## @s_flag
	.comm	_t_flag,4,2                     ## @t_flag
	.comm	_u_flag,4,2                     ## @u_flag
	.comm	_v_flag,4,2                     ## @v_flag
	.comm	_optind,8,3                     ## @optind
	.comm	_disk,8,3                       ## @disk
L_.str.1:                               ## @.str.1
	.asciz	"unable to get correct path for %s"

L_.str.2:                               ## @.str.2
	.asciz	"cannot open disk %s"

	.comm	_MAX_SEC_SIZE,4,2               ## @MAX_SEC_SIZE
	.comm	_mboot,16,3                     ## @mboot
L_.str.3:                               ## @.str.3
	.asciz	"cannot allocate buffer to determine disk sector size"

L_.str.4:                               ## @.str.4
	.asciz	"could not detect sector size"

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

L_.str.6:                               ## @.str.6
	.asciz	"# %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"g c%d h%d s%d\n"

	.comm	_dos_cyls,4,2                   ## @dos_cyls
	.comm	_dos_heads,4,2                  ## @dos_heads
	.comm	_dos_sectors,4,2                ## @dos_sectors
	.comm	_NDOSPART,4,2                   ## @NDOSPART
L_.str.8:                               ## @.str.8
	.asciz	"p %d 0x%02x %lu %lu\n"

L_.str.9:                               ## @.str.9
	.asciz	"a %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"%s: %d cyl %d hd %d sec\n"

L_.str.11:                              ## @.str.11
	.asciz	"Part  %11s %11s Type Flags\n"

L_.str.12:                              ## @.str.12
	.asciz	"Start"

L_.str.13:                              ## @.str.13
	.asciz	"Size"

L_.str.14:                              ## @.str.14
	.asciz	"%4d: %11lu %11lu 0x%02x 0x%02x\n"

L_.str.15:                              ## @.str.15
	.asciz	"******* Working on device %s *******\n"

	.comm	_DOSPTYP_386BSD,4,2             ## @DOSPTYP_386BSD
	.comm	_ACTIVE,4,2                     ## @ACTIVE
	.comm	_disksecs,4,2                   ## @disksecs
	.comm	_dos_cylsecs,4,2                ## @dos_cylsecs
L_.str.16:                              ## @.str.16
	.asciz	"Media sector size is %d\n"

	.comm	_secsize,4,2                    ## @secsize
L_.str.19:                              ## @.str.19
	.asciz	"\nWe haven't changed the partition table yet.  "

L_.str.21:                              ## @.str.21
	.asciz	"Should we write new partition table?"

L_str:                                  ## @str
	.asciz	"Warning: BIOS sector numbering starts with sector 1"

L_str.23:                               ## @str.23
	.asciz	"Information from DOS bootblock is:"

L_str.24:                               ## @str.24
	.asciz	"This is your last chance."

L_str.25:                               ## @str.25
	.asciz	"\n-t flag specified -- partition table not written."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	mov	w19, #-1
	mov	w27, #1
Lloh0:
	adrp	x28, _optarg@GOTPAGE
Lloh1:
	ldr	x28, [x28, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x23, _b_flag@GOTPAGE
Lloh3:
	ldr	x23, [x23, _b_flag@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x25, _f_flag@GOTPAGE
Lloh7:
	ldr	x25, [x25, _f_flag@GOTPAGEOFF]
Lloh8:
	adrp	x24, lJTI0_0@PAGE
Lloh9:
	add	x24, x24, lJTI0_0@PAGEOFF
Lloh10:
	adrp	x26, _q_flag@GOTPAGE
Lloh11:
	ldr	x26, [x26, _q_flag@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _v_flag@GOTPAGE
Lloh13:
	ldr	x8, [x8, _v_flag@GOTPAGEOFF]
Lloh14:
	str	w27, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	add	w8, w0, #1
	cmp	w8, #119
	b.hi	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w19, w0, #48
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _s_flag@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_flag@GOTPAGEOFF]
Lloh17:
	str	w27, [x8]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _u_flag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _u_flag@GOTPAGEOFF]
Lloh20:
	str	w27, [x8]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	str	x8, [x25]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh21:
	adrp	x8, _i_flag@GOTPAGE
Lloh22:
	ldr	x8, [x8, _i_flag@GOTPAGEOFF]
Lloh23:
	str	w27, [x8]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w27, [x26]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh24:
	adrp	x8, _t_flag@GOTPAGE
Lloh25:
	ldr	x8, [x8, _t_flag@GOTPAGEOFF]
Lloh26:
	str	w27, [x8]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh27:
	adrp	x8, _B_flag@GOTPAGE
Lloh28:
	ldr	x8, [x8, _B_flag@GOTPAGEOFF]
Lloh29:
	str	w27, [x8]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh30:
	adrp	x8, _a_flag@GOTPAGE
Lloh31:
	ldr	x8, [x8, _a_flag@GOTPAGEOFF]
Lloh32:
	str	w27, [x8]
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	str	x8, [x23]
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh33:
	adrp	x8, _print_config_flag@GOTPAGE
Lloh34:
	ldr	x8, [x8, _print_config_flag@GOTPAGEOFF]
Lloh35:
	str	w27, [x8]
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh36:
	adrp	x8, _I_flag@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I_flag@GOTPAGEOFF]
Lloh38:
	str	w27, [x8]
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_17:
	ldr	x8, [x25]
Lloh39:
	adrp	x9, _i_flag@GOTPAGE
Lloh40:
	ldr	x9, [x9, _i_flag@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_19
; %bb.18:
	mov	w8, #1
Lloh42:
	adrp	x9, _u_flag@GOTPAGE
Lloh43:
	ldr	x9, [x9, _u_flag@GOTPAGEOFF]
Lloh44:
	str	w8, [x9]
LBB0_19:
Lloh45:
	adrp	x23, _t_flag@GOTPAGE
Lloh46:
	ldr	x23, [x23, _t_flag@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_21
; %bb.20:
	mov	w8, #1
Lloh47:
	adrp	x9, _v_flag@GOTPAGE
Lloh48:
	ldr	x9, [x9, _v_flag@GOTPAGEOFF]
Lloh49:
	str	w8, [x9]
LBB0_21:
Lloh50:
	adrp	x8, _optind@GOTPAGE
Lloh51:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh52:
	ldr	x22, [x8]
	cmp	w22, w21
	b.ne	LBB0_23
; %bb.22:
	bl	_get_rootdisk
Lloh53:
	adrp	x8, _disk@GOTPAGE
Lloh54:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh55:
	str	x0, [x8]
	b	LBB0_25
LBB0_23:
	ldr	x0, [x20, x22, lsl #3]
	bl	_g_device_path
Lloh56:
	adrp	x8, _disk@GOTPAGE
Lloh57:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh58:
	str	x0, [x8]
	cbnz	x0, LBB0_25
; %bb.24:
	ldr	x8, [x20, x22, lsl #3]
	str	x8, [sp]
Lloh59:
	adrp	x1, l_.str.1@PAGE
Lloh60:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_25:
Lloh61:
	adrp	x8, _u_flag@GOTPAGE
Lloh62:
	ldr	x8, [x8, _u_flag@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	bl	_open_disk
	tbz	x0, #63, LBB0_27
; %bb.26:
Lloh64:
	adrp	x8, _disk@GOTPAGE
Lloh65:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh67:
	adrp	x1, l_.str.2@PAGE
Lloh68:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_27:
Lloh69:
	adrp	x8, _MAX_SEC_SIZE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MAX_SEC_SIZE@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	bl	_malloc
	mov	x1, x0
Lloh72:
	adrp	x21, _mboot@GOTPAGE
Lloh73:
	ldr	x21, [x21, _mboot@GOTPAGEOFF]
	str	x0, [x21, #8]
	cbnz	x0, LBB0_29
; %bb.28:
Lloh74:
	adrp	x1, l_.str.3@PAGE
Lloh75:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x1, [x21, #8]
LBB0_29:
	mov	w0, #0
	bl	_read_disk
	cmn	w0, #1
	b.ne	LBB0_31
; %bb.30:
Lloh76:
	adrp	x1, l_.str.4@PAGE
Lloh77:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_31:
	ldr	x0, [x21, #8]
	bl	_free
	str	xzr, [x21, #8]
Lloh78:
	adrp	x8, _print_config_flag@GOTPAGE
Lloh79:
	ldr	x8, [x8, _print_config_flag@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	cbnz	w8, LBB0_37
; %bb.32:
Lloh81:
	adrp	x8, _s_flag@GOTPAGE
Lloh82:
	ldr	x8, [x8, _s_flag@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	cbnz	w8, LBB0_45
; %bb.33:
Lloh84:
	adrp	x8, _disk@GOTPAGE
Lloh85:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh87:
	adrp	x0, l_.str.15@PAGE
Lloh88:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_printf
Lloh89:
	adrp	x8, _I_flag@GOTPAGE
Lloh90:
	ldr	x8, [x8, _I_flag@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	cbnz	w8, LBB0_52
; %bb.34:
	ldr	x8, [x25]
	cbnz	x8, LBB0_57
; %bb.35:
Lloh92:
	adrp	x8, _u_flag@GOTPAGE
Lloh93:
	ldr	x8, [x8, _u_flag@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	cbnz	w8, LBB0_62
; %bb.36:
	bl	_print_params
	b	LBB0_63
LBB0_37:
	bl	_read_s0
	cbz	x0, LBB0_39
; %bb.38:
Lloh95:
	adrp	x1, l_.str.5@PAGE
Lloh96:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_39:
Lloh97:
	adrp	x8, _disk@GOTPAGE
Lloh98:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh100:
	adrp	x0, l_.str.6@PAGE
Lloh101:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
Lloh102:
	adrp	x8, _dos_cyls@GOTPAGE
Lloh103:
	ldr	x8, [x8, _dos_cyls@GOTPAGEOFF]
Lloh104:
	adrp	x9, _dos_heads@GOTPAGE
Lloh105:
	ldr	x9, [x9, _dos_heads@GOTPAGEOFF]
Lloh106:
	adrp	x10, _dos_sectors@GOTPAGE
Lloh107:
	ldr	x10, [x10, _dos_sectors@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
Lloh109:
	ldr	w9, [x9]
Lloh110:
	ldr	w10, [x10]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh111:
	adrp	x0, l_.str.7@PAGE
Lloh112:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
Lloh113:
	adrp	x22, _NDOSPART@GOTPAGE
Lloh114:
	ldr	x22, [x22, _NDOSPART@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_79
; %bb.40:
	mov	x23, #0
	mov	x24, #0
Lloh115:
	adrp	x19, l_.str.8@PAGE
Lloh116:
	add	x19, x19, l_.str.8@PAGEOFF
Lloh117:
	adrp	x20, l_.str.9@PAGE
Lloh118:
	add	x20, x20, l_.str.9@PAGEOFF
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	ldrsw	x8, [x22]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_79
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x25, x8, x23
	ldp	x8, x9, [x25]
	add	x24, x24, #1
	orr	x10, x8, x9
	cbz	x10, LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	ldr	w10, [x25, #16]
	stp	x8, x9, [sp, #16]
	stp	x24, x10, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [x25, #20]
	tbz	w8, #7, LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=1
	str	x24, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_41
LBB0_45:
	bl	_read_s0
	cbz	x0, LBB0_47
; %bb.46:
Lloh119:
	adrp	x1, l_.str.5@PAGE
Lloh120:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_47:
Lloh121:
	adrp	x8, _disk@GOTPAGE
Lloh122:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
Lloh123:
	adrp	x9, _dos_cyls@GOTPAGE
Lloh124:
	ldr	x9, [x9, _dos_cyls@GOTPAGEOFF]
Lloh125:
	adrp	x10, _dos_heads@GOTPAGE
Lloh126:
	ldr	x10, [x10, _dos_heads@GOTPAGEOFF]
Lloh127:
	ldr	x8, [x8]
Lloh128:
	adrp	x11, _dos_sectors@GOTPAGE
Lloh129:
	ldr	x11, [x11, _dos_sectors@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
Lloh131:
	ldr	w10, [x10]
Lloh132:
	ldr	w11, [x11]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh133:
	adrp	x0, l_.str.10@PAGE
Lloh134:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
Lloh135:
	adrp	x8, l_.str.13@PAGE
Lloh136:
	add	x8, x8, l_.str.13@PAGEOFF
Lloh137:
	adrp	x9, l_.str.12@PAGE
Lloh138:
	add	x9, x9, l_.str.12@PAGEOFF
	stp	x9, x8, [sp]
Lloh139:
	adrp	x0, l_.str.11@PAGE
Lloh140:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
Lloh141:
	adrp	x20, _NDOSPART@GOTPAGE
Lloh142:
	ldr	x20, [x20, _NDOSPART@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_79
; %bb.48:
	mov	x22, #0
	mov	x23, #0
Lloh143:
	adrp	x19, l_.str.14@PAGE
Lloh144:
	add	x19, x19, l_.str.14@PAGEOFF
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x22, x22, #24
	cmp	x23, w8, sxtw
	b.ge	LBB0_79
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	add	x11, x9, x22
	ldp	x9, x10, [x11]
	add	x23, x23, #1
	orr	x12, x9, x10
	cbz	x12, LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldp	w8, w11, [x11, #16]
	stp	x8, x11, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x23, [sp]
	mov	x0, x19
	bl	_printf
	ldr	w8, [x20]
	b	LBB0_49
LBB0_52:
	bl	_read_s0
	bl	_reset_boot
	ldr	x19, [x21]
Lloh145:
	adrp	x8, _DOSPTYP_386BSD@GOTPAGE
Lloh146:
	ldr	x8, [x8, _DOSPTYP_386BSD@GOTPAGEOFF]
Lloh147:
	ldr	w8, [x8]
Lloh148:
	adrp	x9, _ACTIVE@GOTPAGE
Lloh149:
	ldr	x9, [x9, _ACTIVE@GOTPAGEOFF]
Lloh150:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
Lloh151:
	adrp	x20, _dos_sectors@GOTPAGE
Lloh152:
	ldr	x20, [x20, _dos_sectors@GOTPAGEOFF]
	ldrsw	x8, [x20]
	str	x8, [x19]
Lloh153:
	adrp	x8, _disksecs@GOTPAGE
Lloh154:
	ldr	x8, [x8, _disksecs@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x8]
Lloh156:
	adrp	x8, _dos_cylsecs@GOTPAGE
Lloh157:
	ldr	x8, [x8, _dos_cylsecs@GOTPAGEOFF]
Lloh158:
	ldr	w1, [x8]
	bl	_rounddown
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x20]
	sxtw	x9, w0
	sub	x8, x9, x8
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_dos
LBB0_53:
Lloh159:
	adrp	x8, _v_flag@GOTPAGE
Lloh160:
	ldr	x8, [x8, _v_flag@GOTPAGEOFF]
Lloh161:
	ldr	w8, [x8]
	cbz	w8, LBB0_55
; %bb.54:
	bl	_print_s0
LBB0_55:
	ldr	w8, [x23]
	cbnz	w8, LBB0_79
LBB0_56:
	bl	_write_s0
	mov	w0, #0
	bl	_exit
LBB0_57:
	bl	_read_s0
	cbnz	x0, LBB0_59
; %bb.58:
Lloh162:
	adrp	x8, _i_flag@GOTPAGE
Lloh163:
	ldr	x8, [x8, _i_flag@GOTPAGEOFF]
Lloh164:
	ldr	w8, [x8]
	cbz	w8, LBB0_60
LBB0_59:
	bl	_reset_boot
LBB0_60:
	ldr	x0, [x25]
	bl	_read_config
	cbnz	w0, LBB0_53
; %bb.61:
	mov	w0, #1
	bl	_exit
LBB0_62:
	bl	_get_params_to_use
LBB0_63:
	bl	_read_s0
	cbz	x0, LBB0_65
; %bb.64:
Lloh165:
	adrp	x8, _dos_sectors@GOTPAGE
Lloh166:
	ldr	x8, [x8, _dos_sectors@GOTPAGEOFF]
Lloh167:
	ldr	w0, [x8]
	bl	_init_sector0
LBB0_65:
Lloh168:
	adrp	x8, _secsize@GOTPAGE
Lloh169:
	ldr	x8, [x8, _secsize@GOTPAGEOFF]
Lloh170:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh171:
	adrp	x0, l_.str.16@PAGE
Lloh172:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_printf
Lloh173:
	adrp	x0, l_str@PAGE
Lloh174:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh175:
	adrp	x0, l_str.23@PAGE
Lloh176:
	add	x0, x0, l_str.23@PAGEOFF
	bl	_puts
	cmn	w19, #1
	b.ne	LBB0_69
; %bb.66:
Lloh177:
	adrp	x21, _NDOSPART@GOTPAGE
Lloh178:
	ldr	x21, [x21, _NDOSPART@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_70
; %bb.67:
	mov	w20, #0
LBB0_68:                                ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x20
	bl	_change_part
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_68
	b	LBB0_70
LBB0_69:
	mov	x0, x19
	bl	_change_part
LBB0_70:
Lloh179:
	adrp	x8, _u_flag@GOTPAGE
Lloh180:
	ldr	x8, [x8, _u_flag@GOTPAGEOFF]
Lloh181:
	ldr	w8, [x8]
Lloh182:
	adrp	x9, _a_flag@GOTPAGE
Lloh183:
	ldr	x9, [x9, _a_flag@GOTPAGEOFF]
Lloh184:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbz	w8, LBB0_72
; %bb.71:
	mov	x0, x19
	bl	_change_active
LBB0_72:
Lloh185:
	adrp	x19, _B_flag@GOTPAGE
Lloh186:
	ldr	x19, [x19, _B_flag@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_74
; %bb.73:
	bl	_change_code
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, ne
LBB0_74:
Lloh187:
	adrp	x9, _u_flag@GOTPAGE
Lloh188:
	ldr	x9, [x9, _u_flag@GOTPAGEOFF]
Lloh189:
	ldr	w9, [x9]
Lloh190:
	adrp	x10, _a_flag@GOTPAGE
Lloh191:
	ldr	x10, [x10, _a_flag@GOTPAGEOFF]
Lloh192:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w10, #0, #0, eq
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_79
; %bb.75:
	ldr	w8, [x23]
	cbnz	w8, LBB0_77
; %bb.76:
Lloh193:
	adrp	x0, l_.str.19@PAGE
Lloh194:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_printf
Lloh195:
	adrp	x0, l_str.24@PAGE
Lloh196:
	add	x0, x0, l_str.24@PAGEOFF
	bl	_puts
LBB0_77:
	bl	_print_s0
	ldr	w8, [x23]
	cbnz	w8, LBB0_80
; %bb.78:
Lloh197:
	adrp	x0, l_.str.21@PAGE
Lloh198:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_ok
	cbnz	x0, LBB0_56
LBB0_79:
	mov	w0, #0
	bl	_exit
LBB0_80:
Lloh199:
	adrp	x0, l_str.25@PAGE
Lloh200:
	add	x0, x0, l_str.25@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotStr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh110
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh109
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh108
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh132
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh131
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh130
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh127
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGot	Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpAdd	Lloh175, Lloh176
	.loh AdrpAdd	Lloh173, Lloh174
	.loh AdrpAdd	Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.loh AdrpLdrGot	Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGot	Lloh185, Lloh186
	.loh AdrpLdrGotLdr	Lloh190, Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh187, Lloh188, Lloh189
	.loh AdrpAdd	Lloh195, Lloh196
	.loh AdrpAdd	Lloh193, Lloh194
	.loh AdrpAdd	Lloh197, Lloh198
	.loh AdrpAdd	Lloh199, Lloh200
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_15-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIab:f:ipqstuv1234"

	.comm	_B_flag,4,2                     ; @B_flag
	.comm	_I_flag,4,2                     ; @I_flag
	.comm	_a_flag,4,2                     ; @a_flag
	.comm	_optarg,8,3                     ; @optarg
	.comm	_b_flag,8,3                     ; @b_flag
	.comm	_f_flag,8,3                     ; @f_flag
	.comm	_i_flag,4,2                     ; @i_flag
	.comm	_print_config_flag,4,2          ; @print_config_flag
	.comm	_q_flag,4,2                     ; @q_flag
	.comm	_s_flag,4,2                     ; @s_flag
	.comm	_t_flag,4,2                     ; @t_flag
	.comm	_u_flag,4,2                     ; @u_flag
	.comm	_v_flag,4,2                     ; @v_flag
	.comm	_optind,8,3                     ; @optind
	.comm	_disk,8,3                       ; @disk
l_.str.1:                               ; @.str.1
	.asciz	"unable to get correct path for %s"

l_.str.2:                               ; @.str.2
	.asciz	"cannot open disk %s"

	.comm	_MAX_SEC_SIZE,4,2               ; @MAX_SEC_SIZE
	.comm	_mboot,16,3                     ; @mboot
l_.str.3:                               ; @.str.3
	.asciz	"cannot allocate buffer to determine disk sector size"

l_.str.4:                               ; @.str.4
	.asciz	"could not detect sector size"

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

l_.str.6:                               ; @.str.6
	.asciz	"# %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"g c%d h%d s%d\n"

	.comm	_dos_cyls,4,2                   ; @dos_cyls
	.comm	_dos_heads,4,2                  ; @dos_heads
	.comm	_dos_sectors,4,2                ; @dos_sectors
	.comm	_NDOSPART,4,2                   ; @NDOSPART
l_.str.8:                               ; @.str.8
	.asciz	"p %d 0x%02x %lu %lu\n"

l_.str.9:                               ; @.str.9
	.asciz	"a %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"%s: %d cyl %d hd %d sec\n"

l_.str.11:                              ; @.str.11
	.asciz	"Part  %11s %11s Type Flags\n"

l_.str.12:                              ; @.str.12
	.asciz	"Start"

l_.str.13:                              ; @.str.13
	.asciz	"Size"

l_.str.14:                              ; @.str.14
	.asciz	"%4d: %11lu %11lu 0x%02x 0x%02x\n"

l_.str.15:                              ; @.str.15
	.asciz	"******* Working on device %s *******\n"

	.comm	_DOSPTYP_386BSD,4,2             ; @DOSPTYP_386BSD
	.comm	_ACTIVE,4,2                     ; @ACTIVE
	.comm	_disksecs,4,2                   ; @disksecs
	.comm	_dos_cylsecs,4,2                ; @dos_cylsecs
l_.str.16:                              ; @.str.16
	.asciz	"Media sector size is %d\n"

	.comm	_secsize,4,2                    ; @secsize
l_.str.19:                              ; @.str.19
	.asciz	"\nWe haven't changed the partition table yet.  "

l_.str.21:                              ; @.str.21
	.asciz	"Should we write new partition table?"

l_str:                                  ; @str
	.asciz	"Warning: BIOS sector numbering starts with sector 1"

l_str.23:                               ; @str.23
	.asciz	"Information from DOS bootblock is:"

l_str.24:                               ; @str.24
	.asciz	"This is your last chance."

l_str.25:                               ; @str.25
	.asciz	"\n-t flag specified -- partition table not written."

.subsections_via_symbols
