	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_graphics
_setup_graphics:                        ## @setup_graphics
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	$0, -32(%rbp)
	movq	_locate_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOCATE_BY_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %r8
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_efi_call_early
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_alloc_screen_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	-32(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_efi_setup_gop
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID,4,2 ## @EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID
	.comm	_locate_handle,4,2              ## @locate_handle
	.comm	_EFI_LOCATE_BY_PROTOCOL,4,2     ## @EFI_LOCATE_BY_PROTOCOL
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
	.no_dead_strip	_setup_graphics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_graphics
_setup_graphics:                        ; @setup_graphics
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	str	xzr, [sp]
Lloh3:
	adrp	x8, _locate_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _locate_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EFI_LOCATE_BY_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFI_LOCATE_BY_PROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x4, sp
	mov	x3, #0
	mov	x5, #0
	bl	_efi_call_early
	mov	x20, #0
Lloh9:
	adrp	x8, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_alloc_screen_info
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x3, [sp]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_efi_setup_gop
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID,4,2 ; @EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID
	.comm	_locate_handle,4,2              ; @locate_handle
	.comm	_EFI_LOCATE_BY_PROTOCOL,4,2     ; @EFI_LOCATE_BY_PROTOCOL
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
	.no_dead_strip	_setup_graphics
.subsections_via_symbols
