	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_partitions
_read_partitions:                       ## @read_partitions
	.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	$216, %rsp
	.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)
	leaq	L_.str(%rip), %rdi
	callq	_system
	cmpl	$256, %eax                      ## imm = 0x100
	jb	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_4:
	movq	_num_partition@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_MAX_PARTS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jbe	LBB0_5
LBB0_26:
	movq	%r13, %rdi
	callq	_fclose
	leaq	L_.str.2(%rip), %rdi
	callq	_unlink
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-256(%rbp), %rbx
	movq	_partitions@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_Linux@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r15), %rdx
	movq	(%r12), %rax
	movq	%rax, %rsi
	shlq	$4, %rsi
	movl	%ecx, 8(%rdx,%rsi)
	movq	_num_linux@GOTPCREL(%rip), %rcx
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movq	%rax, (%r12)
	incl	(%rcx)
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	ja	LBB0_26
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	%rbx, %rdi
	movl	$200, %esi
	movq	%r13, %rdx
	callq	_get_line
	testl	%eax, %eax
	js	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rax
	movq	(%r12), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r15
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcpy
	addq	$5, %r15
	movq	_MAX_DEV_NAME@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r14
	movq	%r13, %r12
	xorl	%ebx, %ebx
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-251(%rbp,%rbx), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	-251(%rbp,%rbx), %eax
	incq	%r13
	movb	%al, (%r15,%rbx)
	incq	%rbx
	movq	_MAX_DEV_NAME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %r15
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r15
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r13
	movq	%r14, %r12
	movq	_MAX_PARTS@GOTPCREL(%rip), %r14
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$0, (%r15)
	leaq	-220(%rbp), %rbx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_atoi
	movq	_partitions@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%r12), %rdx
	shlq	$4, %rdx
	movl	%eax, 12(%rcx,%rdx)
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_Swap@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r15), %rdx
	movq	(%r12), %rax
	movq	%rax, %rsi
	shlq	$4, %rsi
	movl	%ecx, 8(%rdx,%rsi)
	movq	_num_swap@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MsDos@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r15), %rdx
	movq	(%r12), %rax
	movq	%rax, %rsi
	shlq	$4, %rsi
	movl	%ecx, 8(%rdx,%rsi)
	movq	_num_msdos@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdisk -l 2>/dev/null 1>/tmp/fdisk.output"

L_.str.1:                               ## @.str.1
	.asciz	"fdisk didn't run"

L_.str.2:                               ## @.str.2
	.asciz	"/tmp/fdisk.output"

L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"cannot read fdisk output"

	.comm	_num_partition,8,3              ## @num_partition
	.comm	_MAX_PARTS,8,3                  ## @MAX_PARTS
L_.str.5:                               ## @.str.5
	.asciz	"/dev/"

	.comm	_partitions,8,3                 ## @partitions
	.comm	_MAX_DEV_NAME,4,2               ## @MAX_DEV_NAME
L_.str.6:                               ## @.str.6
	.asciz	"Linux native"

	.comm	_Linux,4,2                      ## @Linux
	.comm	_num_linux,4,2                  ## @num_linux
L_.str.7:                               ## @.str.7
	.asciz	"Linux swap"

	.comm	_Swap,4,2                       ## @Swap
	.comm	_num_swap,4,2                   ## @num_swap
L_.str.8:                               ## @.str.8
	.asciz	"DOS"

	.comm	_MsDos,4,2                      ## @MsDos
	.comm	_num_msdos,4,2                  ## @num_msdos
	.no_dead_strip	_read_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_partitions
_read_partitions:                       ; @read_partitions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_system
	cmp	w0, #256
	b.lo	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_4:
Lloh13:
	adrp	x25, _num_partition@GOTPAGE
Lloh14:
	ldr	x25, [x25, _num_partition@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh15:
	adrp	x26, _MAX_PARTS@GOTPAGE
Lloh16:
	ldr	x26, [x26, _MAX_PARTS@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ls	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_fclose
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_unlink
	ldur	x8, [x29, #-96]
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_27
; %bb.6:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_7:
	add	x8, sp, #8
	add	x27, x8, #5
	add	x8, x8, #36
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh22:
	adrp	x20, l_.str.5@PAGE
Lloh23:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh24:
	adrp	x23, _partitions@GOTPAGE
Lloh25:
	ldr	x23, [x23, _partitions@GOTPAGEOFF]
Lloh26:
	adrp	x22, _MAX_DEV_NAME@GOTPAGE
Lloh27:
	ldr	x22, [x22, _MAX_DEV_NAME@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
Lloh28:
	adrp	x8, _Linux@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Linux@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x8]
	ldr	x10, [x23]
	ldr	x8, [x25]
	add	x10, x10, x8, lsl #4
	str	w9, [x10, #8]
Lloh31:
	adrp	x9, _num_linux@GOTPAGE
Lloh32:
	ldr	x9, [x9, _num_linux@GOTPAGEOFF]
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #1
	str	x8, [x25]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.hi	LBB0_5
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	add	x0, sp, #8
	mov	w1, #200
	mov	x2, x19
	bl	_get_line
	tbnz	w0, #31, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #5
	bl	_strncmp
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x25]
	lsl	x9, x9, #4
	ldr	x24, [x8, x9]
	mov	x0, x24
	mov	x1, x20
	bl	_strcpy
	add	x28, x24, #5
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, #0
	mov	x24, x28
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x27, x21]
	cbz	w0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	bl	_isspace
	cbnz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	ldrb	w8, [x27, x21]
	add	x24, x24, #1
	strb	w8, [x28, x21]
	ldr	w8, [x22]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x28, x28, x21
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x24
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	strb	wzr, [x28]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
LBB0_21:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x24, #1]!
	bl	_isspace
	cbnz	x0, LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_atoi
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x8, x8, x9, lsl #4
	str	w0, [x8, #12]
	add	x0, sp, #8
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_8
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh37:
	adrp	x8, _Swap@GOTPAGE
Lloh38:
	ldr	x8, [x8, _Swap@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x8]
	ldr	x10, [x23]
	ldr	x8, [x25]
	add	x10, x10, x8, lsl #4
	str	w9, [x10, #8]
Lloh40:
	adrp	x9, _num_swap@GOTPAGE
Lloh41:
	ldr	x9, [x9, _num_swap@GOTPAGEOFF]
	b	LBB0_9
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh44:
	adrp	x8, _MsDos@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MsDos@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x8]
	ldr	x10, [x23]
	ldr	x8, [x25]
	add	x10, x10, x8, lsl #4
	str	w9, [x10, #8]
Lloh47:
	adrp	x9, _num_msdos@GOTPAGE
Lloh48:
	ldr	x9, [x9, _num_msdos@GOTPAGEOFF]
	b	LBB0_9
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdisk -l 2>/dev/null 1>/tmp/fdisk.output"

l_.str.1:                               ; @.str.1
	.asciz	"fdisk didn't run"

l_.str.2:                               ; @.str.2
	.asciz	"/tmp/fdisk.output"

l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"cannot read fdisk output"

	.comm	_num_partition,8,3              ; @num_partition
	.comm	_MAX_PARTS,8,3                  ; @MAX_PARTS
l_.str.5:                               ; @.str.5
	.asciz	"/dev/"

	.comm	_partitions,8,3                 ; @partitions
	.comm	_MAX_DEV_NAME,4,2               ; @MAX_DEV_NAME
l_.str.6:                               ; @.str.6
	.asciz	"Linux native"

	.comm	_Linux,4,2                      ; @Linux
	.comm	_num_linux,4,2                  ; @num_linux
l_.str.7:                               ; @.str.7
	.asciz	"Linux swap"

	.comm	_Swap,4,2                       ; @Swap
	.comm	_num_swap,4,2                   ; @num_swap
l_.str.8:                               ; @.str.8
	.asciz	"DOS"

	.comm	_MsDos,4,2                      ; @MsDos
	.comm	_num_msdos,4,2                  ; @num_msdos
	.no_dead_strip	_read_partitions
.subsections_via_symbols
