	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_earlycon_write
_efi_earlycon_write:                    ## @efi_earlycon_write
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_30
## %bb.1:
	movl	%edx, %ecx
	movq	_screen_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_font@GOTPCREL(%rip), %r13
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ecx
	testl	%r12d, %r12d
	je	LBB0_30
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##     Child Loop BB0_28 Depth 2
	movl	%ecx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %r12
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%rdi), %eax
	testb	%al, %al
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$10, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%edi, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	%rdi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdi), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_screen_info@GOTPCREL(%rip), %rax
	movl	4(%rax), %eax
	movq	_efi_x@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	subl	%r9d, %eax
	movq	(%r13), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	divl	%esi
	cmpl	%eax, %edi
	cmovbl	%edi, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%rcx)
	movl	$0, %eax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_efi_earlycon_unmap
	incl	%ebx
	movq	_font@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movl	4(%rcx), %eax
	cmpl	%eax, %ebx
	movq	%rdx, %r13
	movl	%ebx, %edx
	jae	LBB0_16
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	_efi_y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %ebx
	addl	%edx, %edi
	imull	%r14d, %edi
	movl	%r14d, %esi
	callq	_efi_earlycon_map
	testq	%rax, %rax
	je	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_efi_x@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(,%r13,4), %edi
	addq	%r15, %rdi
	movsbl	(%r12), %esi
	movl	%ebx, %edx
	callq	_efi_earlycon_write_char
	movq	_font@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	(%rax), %r13d
	incq	%r12
	decl	%r14d
	jne	LBB0_15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	movq	_efi_x@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	imull	%edi, %esi
	addl	%r9d, %esi
	movl	%edi, %edx
	addq	%rdx, -48(%rbp)                 ## 8-byte Folded Spill
	movl	%esi, (%r8)
	subl	%edi, %ebx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, (%r12)
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_efi_y@GOTPCREL(%rip), %r15
	addl	%eax, (%r15)
	movl	$0, (%r8)
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	decl	%ebx
	xorl	%esi, %esi
	movl	%ebx, %r12d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_efi_y@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	movq	_efi_y@GOTPCREL(%rip), %r15
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rcx), %esi
	movq	_screen_info@GOTPCREL(%rip), %rcx
	cmpl	4(%rcx), %esi
	jbe	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r8)
	movl	(%r15), %ecx
	addl	%eax, %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rcx), %edx
	movq	_screen_info@GOTPCREL(%rip), %rsi
	cmpl	8(%rsi), %edx
	jbe	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %ecx
	movl	%ecx, (%r15)
	xorl	%eax, %eax
	callq	_efi_earlycon_scroll_up
	movq	(%r13), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_efi_earlycon_clear_scanline
	incl	%ebx
	movq	(%r13), %rax
	cmpl	4(%rax), %ebx
	jb	LBB0_28
	jmp	LBB0_29
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screen_info,12,2               ## @screen_info
	.comm	_efi_x,4,2                      ## @efi_x
	.comm	_font,8,3                       ## @font
	.comm	_efi_y,4,2                      ## @efi_y
	.no_dead_strip	_efi_earlycon_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_earlycon_write
_efi_earlycon_write:                    ; @efi_earlycon_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w2, LBB0_28
; %bb.1:
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _screen_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screen_info@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x25, _font@GOTPAGE
Lloh4:
	ldr	x25, [x25, _font@GOTPAGEOFF]
Lloh5:
	adrp	x27, _efi_y@GOTPAGE
Lloh6:
	ldr	x27, [x27, _efi_y@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_28
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;     Child Loop BB0_27 Depth 2
	mov	x8, #0
	mov	w15, w21
	add	x28, x19, x15
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x19, x8]
	cmp	w9, #0
	ccmp	w9, #10, #4, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w15, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x8, #1
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x19, x8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x9, _screen_info@GOTPAGE
Lloh8:
	ldr	x9, [x9, _screen_info@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9, #4]
Lloh10:
	adrp	x14, _efi_x@GOTPAGE
Lloh11:
	ldr	x14, [x14, _efi_x@GOTPAGEOFF]
	ldr	w10, [x14]
	sub	w12, w9, w10
	ldr	x9, [x25]
	ldp	w11, w13, [x9]
	udiv	w12, w12, w11
	cmp	w8, w12
	csel	w26, w8, w12, lo
	cbz	w13, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x15, [sp, #8]                   ; 8-byte Folded Spill
	mov	w21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	mov	x1, x20
	bl	_efi_earlycon_unmap
	add	w21, w21, #1
	ldr	x9, [x25]
	ldr	w8, [x9, #4]
	cmp	w21, w8
	b.hs	LBB0_17
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
	ldr	w8, [x27]
	add	w8, w8, w21
	mul	w0, w8, w20
	mov	x1, x20
	bl	_efi_earlycon_map
	cbz	x0, LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x22, x0
	mov	x28, x19
	cbz	w26, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
Lloh12:
	adrp	x8, _efi_x@GOTPAGE
Lloh13:
	ldr	x8, [x8, _efi_x@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	mov	x23, x26
	mov	x28, x19
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	w23, w23, #1
	lsl	w8, w24, #2
	add	x0, x22, x8
	ldrsb	w1, [x28], #1
	mov	x2, x21
	bl	_efi_earlycon_write_char
	ldr	x8, [x25]
	ldr	w8, [x8]
	add	w24, w8, w24
	cbnz	w23, LBB0_15
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x9]
Lloh15:
	adrp	x14, _efi_x@GOTPAGE
Lloh16:
	ldr	x14, [x14, _efi_x@GOTPAGEOFF]
	ldr	w10, [x14]
	ldr	x15, [sp, #8]                   ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	w10, w11, w26, w10
	str	w10, [x14]
	add	x19, x19, w26, uxtw
	subs	w21, w15, w26
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w11, [x28]
	cmp	w11, #10
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #0
	str	wzr, [x14]
	ldr	w11, [x27]
	add	w11, w11, w8
	str	w11, [x27]
	add	x19, x19, #1
	sub	w21, w21, #1
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x9]
Lloh17:
	adrp	x11, _screen_info@GOTPAGE
Lloh18:
	ldr	x11, [x11, _screen_info@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11, #4]
	add	w9, w9, w10
	cmp	w9, w11
	b.ls	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x14]
	ldr	w9, [x27]
	add	w9, w9, w8
	str	w9, [x27]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x10, _screen_info@GOTPAGE
Lloh21:
	ldr	x10, [x10, _screen_info@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10, #8]
	add	w11, w8, w9
	cmp	w11, w10
	b.ls	LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w9, w8
	str	w8, [x27]
	bl	_efi_earlycon_scroll_up
	ldr	x8, [x25]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_27:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27]
	add	w0, w22, w8
	bl	_efi_earlycon_clear_scanline
	add	w22, w22, #1
	ldr	x8, [x25]
	ldr	w8, [x8, #4]
	cmp	w22, w8
	b.lo	LBB0_27
	b	LBB0_2
LBB0_28:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_screen_info,12,2               ; @screen_info
	.comm	_efi_x,4,2                      ; @efi_x
	.comm	_font,8,3                       ; @font
	.comm	_efi_y,4,2                      ; @efi_y
	.no_dead_strip	_efi_earlycon_write
.subsections_via_symbols
