	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_earlycon_scroll_up
_efi_earlycon_scroll_up:                ## @efi_earlycon_scroll_up
	.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	_screen_info@GOTPCREL(%rip), %rax
	movl	4(%rax), %edx
	movq	_font@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmpl	(%rcx), %edx
	jle	LBB0_5
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_efi_earlycon_map
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	(%r14), %rax
	movl	(%rax), %edi
	addl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %edi
	callq	_efi_earlycon_map
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_memmove
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_efi_earlycon_unmap
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_efi_earlycon_unmap
	incl	%r13d
	movq	(%r14), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	(%rax), %ecx
	addl	%r15d, -48(%rbp)                ## 4-byte Folded Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	%ecx, %r13d
	jl	LBB0_2
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efi_earlycon_unmap             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_screen_info,8,2                ## @screen_info
	.comm	_font,8,3                       ## @font
	.no_dead_strip	_efi_earlycon_scroll_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_earlycon_scroll_up
_efi_earlycon_scroll_up:                ; @efi_earlycon_scroll_up
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, _screen_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screen_info@GOTPAGEOFF]
	ldr	w23, [x8, #4]
Lloh2:
	adrp	x24, _font@GOTPAGE
Lloh3:
	ldr	x24, [x24, _font@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w9, [x9]
	cmp	w23, w9
	b.le	LBB0_5
; %bb.1:
	mov	w20, #0
	mov	w25, #0
	ldr	w19, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_efi_earlycon_map
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	x8, [x24]
	ldr	w8, [x8]
	add	w8, w25, w8
	mul	w0, w8, w19
	mov	x1, x19
	bl	_efi_earlycon_map
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_memmove
	mov	x0, x22
	mov	x1, x19
	bl	_efi_earlycon_unmap
	mov	x0, x21
	mov	x1, x19
	bl	_efi_earlycon_unmap
	add	w25, w25, #1
	ldr	x8, [x24]
	ldr	w8, [x8]
	add	w20, w20, w19
	sub	w8, w23, w8
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_efi_earlycon_unmap
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_screen_info,8,2                ; @screen_info
	.comm	_font,8,3                       ; @font
	.no_dead_strip	_efi_earlycon_scroll_up
.subsections_via_symbols
