	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_mode
_command_mode:                          ## @command_mode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	cmpl	$2, %edi
	jl	LBB0_3
## %bb.1:
	movq	8(%rsi), %rdi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-64(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.2:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	jmp	LBB0_15
LBB0_3:
	movq	8(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r15), %rax
	movq	_CMD_OK@GOTPCREL(%rip), %rcx
	cmpl	$0, 4(%rax)
	js	LBB0_16
## %bb.4:
	movl	$-1, %ebx
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %r12
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	cmpl	4(%rax), %ebx
	jge	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	*(%r15)
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_9:
	movq	_CMD_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_10:
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*(%r15)
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*16(%r15)
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
LBB0_14:
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movq	_CMD_ERROR@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	callq	_efi_cons_update_mode
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ST,8,3                         ## @ST
	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"invalid mode %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't set mode %d\n"

	.comm	_CMD_OK,4,2                     ## @CMD_OK
L_.str.3:                               ## @.str.3
	.asciz	"Current mode: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Mode %d: %u columns, %u rows\n"

L_str:                                  ## @str
	.asciz	"Select a mode with the command \"mode <number>\""

L_str.6:                                ## @str.6
	.asciz	"Invalid mode"

	.no_dead_strip	_command_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_mode
_command_mode:                          ; @command_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _ST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8]
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x1, #8]
	add	x1, sp, #24
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_10
; %bb.2:
Lloh3:
	adrp	x0, l_str.6@PAGE
Lloh4:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	b	LBB0_15
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	tbnz	w8, #31, LBB0_9
; %bb.4:
	mov	w20, #-1
Lloh7:
	adrp	x21, l_.str.4@PAGE
Lloh8:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	ldr	x8, [x19]
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x20
	blr	x8
	bl	_EFI_ERROR
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [sp, #32]
	stp	x8, x9, [sp, #8]
	str	x20, [sp]
	mov	x0, x21
	bl	_printf
	b	LBB0_5
LBB0_8:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_9:
Lloh11:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	mov	x20, x0
	ldr	x8, [x19]
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x20
	blr	x8
	bl	_EFI_ERROR
	cbz	x0, LBB0_12
; %bb.11:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	bl	_EFI_ERROR
	cbz	x0, LBB0_17
; %bb.13:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_printf
LBB0_15:
Lloh17:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
LBB0_17:
	bl	_efi_cons_update_mode
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ST,8,3                         ; @ST
	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"invalid mode %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't set mode %d\n"

	.comm	_CMD_OK,4,2                     ; @CMD_OK
l_.str.3:                               ; @.str.3
	.asciz	"Current mode: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Mode %d: %u columns, %u rows\n"

l_str:                                  ; @str
	.asciz	"Select a mode with the command \"mode <number>\""

l_str.6:                                ; @str.6
	.asciz	"Invalid mode"

	.no_dead_strip	_command_mode
.subsections_via_symbols
