	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_update_mode           ## -- Begin function efi_cons_update_mode
	.p2align	4, 0x90
_efi_cons_update_mode:                  ## @efi_cons_update_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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_conout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%rdi), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	*16(%rdi)
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$80, -64(%rbp)
	movl	$24, -60(%rbp)
LBB0_2:
	xorl	%eax, %eax
	callq	_parse_uefi_con_out
	movq	_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RB_SERIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	-60(%rbp), %ecx
LBB0_20:
	leaq	L_.str.3(%rip), %r14
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	movq	%r14, %rdx
	callq	_snprintf
	leaq	L_.str.4(%rip), %rdi
	movl	$1, %r15d
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	movl	-64(%rbp), %ecx
	movq	%rbx, %rdi
	movl	$8, %esi
	movq	%r14, %rdx
	callq	_snprintf
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_buffer@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	movq	_tp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	-60(%rbp), %ecx
	jne	LBB0_7
## %bb.6:
	movl	4(%rax), %eax
	movl	$1, %r15d
	cmpl	-64(%rbp), %eax
	je	LBB0_21
LBB0_7:
	callq	_free
	jmp	LBB0_9
LBB0_8:
	movq	_teken@GOTPCREL(%rip), %rdi
	movq	_tf@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	_teken_init
LBB0_9:
	movl	-60(%rbp), %eax
	movq	_tp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	-64(%rbp), %edx
	movl	%edx, 4(%rcx)
	imull	%edx, %eax
	shll	$2, %eax
	leal	(%rax,%rax,2), %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_teken@GOTPCREL(%rip), %rbx
	movq	_tp@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_teken_set_winsize
	movq	%rbx, %rdi
	callq	_teken_get_defattr
	movq	%rax, %r12
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_snprintf
	movq	_EV_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_efi_set_colors@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_env_nounset@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	callq	_env_setenv
	movl	4(%r12), %ecx
	movq	%r15, %rdi
	movl	$8, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	_EV_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_efi_set_colors@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	callq	_env_setenv
	movl	-60(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.12:
	movl	-64(%rbp), %r8d
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r11d
	cmpl	%ecx, %r11d
	je	LBB0_20
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	cmpl	$1, %r8d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movslq	4(%r14), %rdx
	movslq	%r11d, %rbx
	imulq	%rbx, %rdx
	addq	%rdi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movb	$32, (%rax,%rdx,4)
	movq	(%r12), %rsi
	movq	%rsi, 4(%rax,%rdx,4)
	movq	(%r13), %rax
	movslq	4(%r14), %rdx
	imulq	%rbx, %rdx
	addq	%rdi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movb	$32, 12(%rax,%rdx,4)
	movq	(%r12), %rsi
	movq	%rsi, 16(%rax,%rdx,4)
	addq	$2, %rdi
	cmpl	%edi, %r10d
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	testb	$1, %r8b
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %r9
	movl	4(%r14), %eax
	imull	%r11d, %eax
	addl	%edi, %eax
	cltq
	leaq	(%rax,%rax,2), %rax
	movb	$32, (%r9,%rax,4)
	movq	(%r12), %rdi
	movq	%rdi, 4(%r9,%rax,4)
	jmp	LBB0_19
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_conout,8,3                     ## @conout
	.comm	_mode,4,2                       ## @mode
	.comm	_RB_SERIAL,4,2                  ## @RB_SERIAL
	.comm	_buffer,8,3                     ## @buffer
	.comm	_tp,8,2                         ## @tp
	.comm	_teken,4,2                      ## @teken
	.comm	_tf,4,2                         ## @tf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"teken.fg_color"

	.comm	_EV_VOLATILE,4,2                ## @EV_VOLATILE
	.comm	_efi_set_colors,4,2             ## @efi_set_colors
	.comm	_env_nounset,4,2                ## @env_nounset
L_.str.2:                               ## @.str.2
	.asciz	"teken.bg_color"

L_.str.3:                               ## @.str.3
	.asciz	"%u"

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

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

	.comm	_DEFAULT_BGCOLOR,4,2            ## @DEFAULT_BGCOLOR
	.comm	_DEFAULT_FGCOLOR,4,2            ## @DEFAULT_FGCOLOR
	.comm	_bg_c,4,2                       ## @bg_c
	.comm	_curx,4,2                       ## @curx
	.comm	_cury,4,2                       ## @cury
	.comm	_fg_c,4,2                       ## @fg_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_update_mode           ; -- Begin function efi_cons_update_mode
	.p2align	2
_efi_cons_update_mode:                  ; @efi_cons_update_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _conout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _conout@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldp	x9, x8, [x0, #8]
	ldr	w1, [x9]
	add	x2, sp, #12
	add	x3, sp, #8
	blr	x8
	bl	_EFI_ERROR
	cbz	x0, LBB0_2
; %bb.1:
	mov	w9, #80
	mov	w8, #24
	stp	w8, w9, [sp, #8]
LBB0_2:
	bl	_parse_uefi_con_out
Lloh6:
	adrp	x8, _mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
Lloh9:
	adrp	x8, _RB_SERIAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RB_SERIAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.3:
	ldr	w3, [sp, #8]
LBB0_4:
Lloh12:
	adrp	x20, l_.str.3@PAGE
Lloh13:
	add	x20, x20, l_.str.3@PAGEOFF
	add	x0, sp, #16
	mov	w1, #8
	mov	x2, x20
	bl	_snprintf
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w19, #1
	add	x1, sp, #16
	mov	w2, #1
	bl	_setenv
	ldr	w3, [sp, #12]
	add	x0, sp, #16
	mov	w1, #8
	mov	x2, x20
	bl	_snprintf
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #16
	mov	w2, #1
	bl	_setenv
LBB0_5:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh21:
	adrp	x22, _buffer@GOTPAGE
Lloh22:
	ldr	x22, [x22, _buffer@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh23:
	adrp	x19, _tp@GOTPAGE
Lloh24:
	ldr	x19, [x19, _tp@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [sp, #8]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	mov	w19, #1
	b	LBB0_5
LBB0_11:
	bl	_free
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x0, _teken@GOTPAGE
Lloh26:
	ldr	x0, [x0, _teken@GOTPAGEOFF]
Lloh27:
	adrp	x1, _tf@GOTPAGE
Lloh28:
	ldr	x1, [x1, _tf@GOTPAGEOFF]
	mov	x2, #0
	bl	_teken_init
LBB0_13:
	ldp	w8, w9, [sp, #8]
	stp	w8, w9, [x19]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_20
; %bb.14:
Lloh29:
	adrp	x20, _teken@GOTPAGE
Lloh30:
	ldr	x20, [x20, _teken@GOTPAGEOFF]
Lloh31:
	adrp	x19, _tp@GOTPAGE
Lloh32:
	ldr	x19, [x19, _tp@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_teken_set_winsize
	mov	x0, x20
	bl	_teken_get_defattr
	mov	x20, x0
	ldr	w3, [x0]
Lloh33:
	adrp	x21, l_.str@PAGE
Lloh34:
	add	x21, x21, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w1, #8
	mov	x2, x21
	bl	_snprintf
Lloh35:
	adrp	x23, _EV_VOLATILE@GOTPAGE
Lloh36:
	ldr	x23, [x23, _EV_VOLATILE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh37:
	adrp	x24, _efi_set_colors@GOTPAGE
Lloh38:
	ldr	x24, [x24, _efi_set_colors@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh39:
	adrp	x25, _env_nounset@GOTPAGE
Lloh40:
	ldr	x25, [x25, _env_nounset@GOTPAGEOFF]
	ldr	w4, [x25]
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #16
	bl	_env_setenv
	ldr	w3, [x20, #4]
	add	x0, sp, #16
	mov	w1, #8
	mov	x2, x21
	bl	_snprintf
	ldr	w1, [x23]
	ldr	w3, [x24]
	ldr	w4, [x25]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x2, sp, #16
	bl	_env_setenv
	ldr	w3, [sp, #8]
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.15:
	mov	w8, #0
	ldr	w9, [sp, #12]
	mov	w10, #12
	mov	w11, #32
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w8, w8, #1
	cmp	w8, w3
	b.eq	LBB0_4
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x12, #0
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x22]
	ldrsw	x14, [x19, #4]
	sxtw	x15, w8
	madd	x14, x15, x14, x12
	madd	x13, x14, x10, x13
	strb	w11, [x13]
	ldr	x14, [x20]
	stur	x14, [x13, #4]
	add	x12, x12, #1
	cmp	w9, w12
	b.ne	LBB0_19
	b	LBB0_16
LBB0_20:
	mov	w19, #0
	b	LBB0_5
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_conout,8,3                     ; @conout
	.comm	_mode,4,2                       ; @mode
	.comm	_RB_SERIAL,4,2                  ; @RB_SERIAL
	.comm	_buffer,8,3                     ; @buffer
	.comm	_tp,8,2                         ; @tp
	.comm	_teken,4,2                      ; @teken
	.comm	_tf,4,2                         ; @tf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"teken.fg_color"

	.comm	_EV_VOLATILE,4,2                ; @EV_VOLATILE
	.comm	_efi_set_colors,4,2             ; @efi_set_colors
	.comm	_env_nounset,4,2                ; @env_nounset
l_.str.2:                               ; @.str.2
	.asciz	"teken.bg_color"

l_.str.3:                               ; @.str.3
	.asciz	"%u"

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

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

	.comm	_DEFAULT_BGCOLOR,4,2            ; @DEFAULT_BGCOLOR
	.comm	_DEFAULT_FGCOLOR,4,2            ; @DEFAULT_FGCOLOR
	.comm	_bg_c,4,2                       ; @bg_c
	.comm	_curx,4,2                       ; @curx
	.comm	_cury,4,2                       ; @cury
	.comm	_fg_c,4,2                       ; @fg_c
.subsections_via_symbols
