	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choice_protocol                ## -- Begin function choice_protocol
	.p2align	4, 0x90
_choice_protocol:                       ## @choice_protocol
	.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	$472, %rsp                      ## imm = 0x1D8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -452(%rbp)
	movq	$4, -464(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-452(%rbp), %rsi
	leaq	-464(%rbp), %rdx
	xorl	%eax, %eax
	callq	_efi_global_getenv
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.1:
	movl	-452(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	$400, -464(%rbp)                ## imm = 0x190
	leaq	L_.str.2(%rip), %rdi
	leaq	-448(%rbp), %rsi
	leaq	-464(%rbp), %rdx
	xorl	%eax, %eax
	callq	_efi_global_getenv
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.2:
	movl	%ebx, -468(%rbp)                ## 4-byte Spill
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpq	$4, -464(%rbp)
	jae	LBB0_3
LBB0_7:
	movl	$10, %edi
	callq	_putchar
	movl	-468(%rbp), %ebx                ## 4-byte Reload
LBB0_8:
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.7(%rip), %rdi
	callq	_DPRINTF
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	movq	_prio_str@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_probe_handle
	movq	(%r12), %rcx
	cltq
	movq	8(%rcx,%rax,8), %rdi
	callq	_puts
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_num_boot_modules@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.12:
	leaq	L_.str.11(%rip), %r15
	movq	_boot_modules@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
LBB0_14:
	leaq	-504(%rbp), %rdi
	leaq	-496(%rbp), %rsi
	leaq	-488(%rbp), %rdx
	leaq	-480(%rbp), %rcx
	movl	$1, %r8d
	callq	_load_loader
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_17
## %bb.15:
	leaq	-504(%rbp), %rdi
	leaq	-496(%rbp), %rsi
	leaq	-488(%rbp), %rdx
	leaq	-480(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_load_loader
	cmpq	(%rbx), %rax
	jne	LBB0_16
LBB0_17:
	movq	-504(%rbp), %rdi
	movq	-496(%rbp), %rsi
	movq	-488(%rbp), %rdx
	movq	-480(%rbp), %rcx
	callq	_try_boot
	jmp	LBB0_18
LBB0_16:
	movq	_PATH_LOADER_EFI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$472, %rsp                      ## imm = 0x1D8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.5(%rip), %rbx
	leaq	L_.str.4(%rip), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	incl	%r15d
	movq	-464(%rbp), %rax
	shrq	$2, %rax
	cmpq	%r15, %rax
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-448(%rbp,%r15,4), %esi
	movq	%rbx, %rdx
	cmpl	-452(%rbp), %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_6
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BootCurrent"

	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"   BootCurrent: %04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"BootOrder"

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

L_.str.4:                               ## @.str.4
	.asciz	" %04x%s"

L_.str.5:                               ## @.str.5
	.asciz	"[*]"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"\n"

L_.str.8:                               ## @.str.8
	.asciz	"   Probing %zu block devices..."

	.comm	_prio_str,8,3                   ## @prio_str
	.comm	_num_boot_modules,4,2           ## @num_boot_modules
L_.str.11:                              ## @.str.11
	.asciz	"    "

	.comm	_boot_modules,8,3               ## @boot_modules
L_.str.12:                              ## @.str.12
	.asciz	"Failed to load '%s'\n"

	.comm	_PATH_LOADER_EFI,8,3            ## @PATH_LOADER_EFI
	.comm	_BS,8,3                         ## @BS
	.comm	_EFI_OUT_OF_RESOURCES,4,2       ## @EFI_OUT_OF_RESOURCES
	.comm	_IH,4,2                         ## @IH
L_str:                                  ## @str
	.asciz	" done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choice_protocol                ; -- Begin function choice_protocol
	.p2align	2
_choice_protocol:                       ; @choice_protocol
	.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, #480
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	wzr, [sp, #68]
	mov	w8, #4
	str	x8, [sp, #56]
	add	x22, sp, #56
	add	x8, sp, #68
	stp	x8, x22, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_efi_global_getenv
Lloh5:
	adrp	x23, _EFI_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [sp, #68]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w8, #400
	str	x8, [sp, #56]
	add	x8, sp, #72
	stp	x8, x22, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_efi_global_getenv
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #56]
	cmp	x8, #4
	b.lo	LBB0_5
; %bb.3:
	mov	x24, #0
	add	x25, sp, #72
Lloh13:
	adrp	x26, l_.str.6@PAGE
Lloh14:
	add	x26, x26, l_.str.6@PAGEOFF
Lloh15:
	adrp	x27, l_.str.5@PAGE
Lloh16:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh17:
	adrp	x22, l_.str.4@PAGE
Lloh18:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25, x24, lsl #2]
	ldr	w9, [sp, #68]
	cmp	w8, w9
	csel	x9, x27, x26, eq
	stp	x8, x9, [sp]
	mov	x0, x22
	bl	_printf
	add	w24, w24, #1
	ldr	x8, [sp, #56]
	cmp	x24, x8, lsr #2
	b.lo	LBB0_4
LBB0_5:
	mov	w0, #10
	bl	_putchar
LBB0_6:
	str	x21, [sp]
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DPRINTF
	cbz	w21, LBB0_9
; %bb.7:
	mov	w21, w21
Lloh23:
	adrp	x22, _prio_str@GOTPAGE
Lloh24:
	ldr	x22, [x22, _prio_str@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #4
	mov	x1, x19
	bl	_probe_handle
	ldr	x8, [x22]
	add	w9, w0, #1
	ldr	x0, [x8, w9, sxtw #3]
	bl	_puts
	subs	x21, x21, #1
	b.ne	LBB0_8
LBB0_9:
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh27:
	adrp	x20, _num_boot_modules@GOTPAGE
Lloh28:
	ldr	x20, [x20, _num_boot_modules@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x21, #0
Lloh29:
	adrp	x19, l_.str.11@PAGE
Lloh30:
	add	x19, x19, l_.str.11@PAGEOFF
Lloh31:
	adrp	x22, _boot_modules@GOTPAGE
Lloh32:
	ldr	x22, [x22, _boot_modules@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_printf
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8]
	blr	x8
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_11
LBB0_12:
	add	x0, sp, #48
	add	x1, sp, #40
	add	x2, sp, #32
	add	x3, sp, #24
	mov	w4, #1
	bl	_load_loader
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	add	x0, sp, #48
	add	x1, sp, #40
	add	x2, sp, #32
	add	x3, sp, #24
	mov	w4, #0
	bl	_load_loader
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_14:
	ldp	x1, x0, [sp, #40]
	ldp	x3, x2, [sp, #24]
	bl	_try_boot
	b	LBB0_16
LBB0_15:
Lloh33:
	adrp	x8, _PATH_LOADER_EFI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PATH_LOADER_EFI@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.12@PAGE
Lloh37:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #480
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BootCurrent"

	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"   BootCurrent: %04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"BootOrder"

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

l_.str.4:                               ; @.str.4
	.asciz	" %04x%s"

l_.str.5:                               ; @.str.5
	.asciz	"[*]"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"\n"

l_.str.8:                               ; @.str.8
	.asciz	"   Probing %zu block devices..."

	.comm	_prio_str,8,3                   ; @prio_str
	.comm	_num_boot_modules,4,2           ; @num_boot_modules
l_.str.11:                              ; @.str.11
	.asciz	"    "

	.comm	_boot_modules,8,3               ; @boot_modules
l_.str.12:                              ; @.str.12
	.asciz	"Failed to load '%s'\n"

	.comm	_PATH_LOADER_EFI,8,3            ; @PATH_LOADER_EFI
	.comm	_BS,8,3                         ; @BS
	.comm	_EFI_OUT_OF_RESOURCES,4,2       ; @EFI_OUT_OF_RESOURCES
	.comm	_IH,4,2                         ; @IH
l_str:                                  ; @str
	.asciz	" done"

.subsections_via_symbols
