	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_partition
_select_partition:                      ## @select_partition
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PARTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_num_partition@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movl	$16, %r13d
	movq	_partitions@GOTPCREL(%rip), %rsi
	movq	_Linux@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$24, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	movq	-16(%rcx,%r13), %rdx
	cmpq	(%rdi), %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rcx,%r13), %rax
	leal	(%r8,%r8), %edx
	movslq	%edx, %rdx
	movq	%rax, (%r12,%rdx,8)
	movslq	%r8d, %r15
	leaq	(%r15,%r15,4), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r14
	movl	(%rcx,%r13), %edx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	_Linux@GOTPCREL(%rip), %rdi
	movq	_partitions@GOTPCREL(%rip), %rsi
	leal	(%r15,%r15), %eax
	incl	%eax
	cltq
	movq	%r14, (%r12,%rax,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r15,4)
	leal	1(%r15), %r8d
	movq	_num_partition@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%r8d, %r8d
LBB0_6:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addl	%r8d, %edx
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r8d, %r9d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_dialog_menu
	addq	$16, %rsp
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_dialog_clear
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PARTS,4,2                  ## @MAX_PARTS
	.comm	_num_partition,4,2              ## @num_partition
	.comm	_partitions,8,3                 ## @partitions
	.comm	_Linux,8,3                      ## @Linux
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Linux partition with %d blocks"

	.no_dead_strip	_select_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_partition
_select_partition:                      ; @select_partition
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	stur	w3, [x29, #-92]                 ; 4-byte Folded Spill
	stur	w2, [x29, #-116]                ; 4-byte Folded Spill
	stp	x0, x1, [x29, #-112]            ; 16-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PARTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PARTS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	add	x9, x8, x12
	lsl	x9, x9, #3
	add	x10, x9, #15
	and	x13, x10, #0x7ffffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x28, x9, x13
	mov	sp, x28
	lsl	w9, w12, #1
	lsl	x12, x9, #3
	mov	x9, x12
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh12:
	adrp	x8, _num_partition@GOTPAGE
Lloh13:
	ldr	x8, [x8, _num_partition@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x21, #0
	mov	w24, #0
Lloh15:
	adrp	x22, _partitions@GOTPAGE
Lloh16:
	ldr	x22, [x22, _partitions@GOTPAGEOFF]
Lloh17:
	adrp	x19, _Linux@GOTPAGE
Lloh18:
	ldr	x19, [x19, _Linux@GOTPAGEOFF]
Lloh19:
	adrp	x25, l_.str@PAGE
Lloh20:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x10, [x9, x20]
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x20
	ldr	x9, [x8, #8]
	sbfiz	x10, x24, #4, #32
	str	x9, [x23, x10]
	mov	w9, #40
	smaddl	x26, w24, w9, x28
	ldr	w2, [x8, #16]
	mov	x0, x26
	mov	x1, x25
	bl	_sprintf
	mov	w8, #1
	bfi	w8, w24, #1, #31
	str	x26, [x23, w8, sxtw #3]
	str	w21, [x27, w24, sxtw #2]
	add	w24, w24, #1
Lloh21:
	adrp	x8, _num_partition@GOTPAGE
Lloh22:
	ldr	x8, [x8, _num_partition@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	b	LBB0_2
LBB0_5:
	mov	w24, #0
LBB0_6:
	ldur	w8, [x29, #-116]                ; 4-byte Folded Reload
	add	w2, w24, w8
	ldp	x0, x1, [x29, #-112]            ; 16-byte Folded Reload
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	mov	x4, x24
	mov	x5, x24
	mov	x6, x23
	bl	_dialog_menu
	mov	x19, x0
	bl	_dialog_clear
	tbnz	w19, #31, LBB0_8
; %bb.7:
	ldr	w19, [x27, w19, uxtw #2]
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PARTS,4,2                  ; @MAX_PARTS
	.comm	_num_partition,4,2              ; @num_partition
	.comm	_partitions,8,3                 ; @partitions
	.comm	_Linux,8,3                      ; @Linux
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Linux partition with %d blocks"

	.no_dead_strip	_select_partition
.subsections_via_symbols
