	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_find_framebuffer           ## -- Begin function efi_find_framebuffer
	.p2align	4, 0x90
_efi_find_framebuffer:                  ## @efi_find_framebuffer
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_BS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_gop_guid@GOTPCREL(%rip), %rdi
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	*(%rax)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rax
	movq	(%rax), %rsi
	movl	(%rsi), %edx
	movq	%r14, %rdi
	callq	_efifb_from_gop
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movq	_uga_guid@GOTPCREL(%rip), %rdi
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	(%r15), %rcx
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_efifb_from_uga
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BS,8,3                         ## @BS
	.comm	_gop_guid,4,2                   ## @gop_guid
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_uga_guid,4,2                   ## @uga_guid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_find_framebuffer           ; -- Begin function efi_find_framebuffer
	.p2align	2
_efi_find_framebuffer:                  ; @efi_find_framebuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _BS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BS@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh2:
	adrp	x0, _gop_guid@GOTPAGE
Lloh3:
	ldr	x0, [x0, _gop_guid@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x1, #0
	blr	x8
Lloh4:
	adrp	x21, _EFI_SUCCESS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	ldr	w2, [x1]
	mov	x0, x19
	bl	_efifb_from_gop
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh6:
	adrp	x0, _uga_guid@GOTPAGE
Lloh7:
	ldr	x0, [x0, _uga_guid@GOTPAGEOFF]
	mov	x2, sp
	mov	x1, #0
	blr	x8
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_efifb_from_uga
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BS,8,3                         ; @BS
	.comm	_gop_guid,4,2                   ; @gop_guid
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_uga_guid,4,2                   ; @uga_guid
.subsections_via_symbols
