	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpart_partition                ## -- Begin function gpart_partition
	.p2align	4, 0x90
_gpart_partition:                       ## @gpart_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	$520, %rsp                      ## imm = 0x208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.3(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r15
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_default_scheme
	movl	%eax, %edi
	callq	_choose_part_type
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_scheme_bootable
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_gctl_get_handle
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$-1, %edx
	movq	%rbx, %rcx
	callq	_gctl_ro_param
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edx
	movq	%r14, %rcx
	callq	_gctl_ro_param
	movq	_GPART_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edx
	callq	_gctl_ro_param
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edx
	movq	%r15, %rcx
	callq	_gctl_ro_param
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edx
	leaq	L_.str.8(%rip), %rcx
	callq	_gctl_ro_param
	movq	%r13, %rdi
	callq	_gctl_issue
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.9(%rip), %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_gpart_show_error
	movq	%r13, %rdi
	callq	_gctl_free
	xorl	%esi, %esi
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r13
	movq	%rbx, %r14
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_sprintf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dialog_vars@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rbx
	movq	%r13, %r14
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dialog_yesno
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_dialog_vars@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	$0, %esi
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_6
LBB0_9:
	movq	%r13, %rdi
	callq	_gctl_free
	movq	%r15, %rdi
	callq	_bootcode_path
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_part_metadata
	movl	$1, (%rax)
	jmp	LBB0_11
LBB0_3:
	movl	$-1, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This partition scheme (%s) is not bootable on this platform. Are you sure you want to proceed?"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_dialog_vars,4,2                ## @dialog_vars
L_.str.1:                               ## @.str.1
	.asciz	"Warning"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"class"

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

L_.str.4:                               ## @.str.4
	.asciz	"arg0"

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

	.comm	_GPART_FLAGS,8,3                ## @GPART_FLAGS
L_.str.6:                               ## @.str.6
	.asciz	"scheme"

L_.str.7:                               ## @.str.7
	.asciz	"verb"

L_.str.8:                               ## @.str.8
	.asciz	"create"

L_.str.9:                               ## @.str.9
	.asciz	"Error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpart_partition                ; -- Begin function gpart_partition
	.p2align	2
_gpart_partition:                       ; @gpart_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, #528
	mov	x19, x0
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	x23, l_.str.3@PAGE
Lloh4:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh5:
	adrp	x24, l_.str.4@PAGE
Lloh6:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh7:
	adrp	x22, _GPART_FLAGS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GPART_FLAGS@GOTPAGEOFF]
Lloh9:
	adrp	x25, l_.str.5@PAGE
Lloh10:
	add	x25, x25, l_.str.5@PAGEOFF
Lloh11:
	adrp	x26, l_.str.6@PAGE
Lloh12:
	add	x26, x26, l_.str.6@PAGEOFF
Lloh13:
	adrp	x27, l_.str.7@PAGE
Lloh14:
	add	x27, x27, l_.str.7@PAGEOFF
Lloh15:
	adrp	x28, l_.str.8@PAGE
Lloh16:
	add	x28, x28, l_.str.8@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x1
	cbnz	x1, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_default_scheme
	bl	_choose_part_type
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	bl	_is_scheme_bootable
	cbz	w0, LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_gctl_get_handle
	mov	x20, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #-1
	mov	x3, x23
	bl	_gctl_ro_param
	mov	x0, x20
	mov	x1, x24
	mov	w2, #-1
	mov	x3, x19
	bl	_gctl_ro_param
	ldr	x3, [x22]
	mov	x0, x20
	mov	x1, x25
	mov	w2, #-1
	bl	_gctl_ro_param
	mov	x0, x20
	mov	x1, x26
	mov	w2, #-1
	mov	x3, x21
	bl	_gctl_ro_param
	mov	x0, x20
	mov	x1, x27
	mov	w2, #-1
	mov	x3, x28
	bl	_gctl_ro_param
	mov	x0, x20
	bl	_gctl_issue
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh19:
	adrp	x0, l_.str.9@PAGE
Lloh20:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, #0
	bl	_gpart_show_error
	mov	x0, x20
	bl	_gctl_free
	mov	x1, #0
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, sp
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_sprintf
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x20, _dialog_vars@GOTPAGE
Lloh27:
	ldr	x20, [x20, _dialog_vars@GOTPAGEOFF]
	str	w8, [x20]
	mov	x1, sp
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	bl	_dialog_yesno
	mov	x1, #0
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x20]
	cbnz	w0, LBB0_1
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_gctl_free
	mov	x0, x21
	bl	_bootcode_path
	cbz	x0, LBB0_11
; %bb.9:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_get_part_metadata
	mov	x8, x0
	mov	w0, #0
	str	w20, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #528
	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_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This partition scheme (%s) is not bootable on this platform. Are you sure you want to proceed?"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_dialog_vars,4,2                ; @dialog_vars
l_.str.1:                               ; @.str.1
	.asciz	"Warning"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"class"

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

l_.str.4:                               ; @.str.4
	.asciz	"arg0"

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

	.comm	_GPART_FLAGS,8,3                ; @GPART_FLAGS
l_.str.6:                               ; @.str.6
	.asciz	"scheme"

l_.str.7:                               ; @.str.7
	.asciz	"verb"

l_.str.8:                               ; @.str.8
	.asciz	"create"

l_.str.9:                               ; @.str.9
	.asciz	"Error"

.subsections_via_symbols
