	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efifb_uga_locate_framebuffer
_efifb_uga_locate_framebuffer:          ## @efifb_uga_locate_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	%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
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$6, %ebx
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	*(%r12)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%rdi), %eax
	cmpl	$138, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$135, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rdi)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$40, %rdi
	callq	_le32dec
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	addq	$88, %rdi
	callq	_le32dec
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rdi)
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$56, %rdi
	callq	_le64dec
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	movl	$152, %eax
	addq	%rax, %rdi
	callq	_le64dec
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdi
	callq	*(%rax)
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %r15
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_15
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_19:
	movq	_EFI_DEVICE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_DEVICE_ERROR,8,3           ## @EFI_DEVICE_ERROR
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_BS,8,3                         ## @BS
	.no_dead_strip	_efifb_uga_locate_framebuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efifb_uga_locate_framebuffer
_efifb_uga_locate_framebuffer:          ; @efifb_uga_locate_framebuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
	str	xzr, [x1]
	str	xzr, [x2]
Lloh0:
	adrp	x25, _EFI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EFI_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w22, #6
	b.eq	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	blr	x8
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #138
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #135
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #40
	bl	_le32dec
	mov	x23, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #88
	bl	_le32dec
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	x24, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #56
	bl	_le64dec
	mov	x23, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #152
	bl	_le64dec
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	x0, [sp, #8]
	blr	x8
	cbz	x23, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	x24, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x24, x8
	b.le	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x23, [x20]
	str	x24, [x19]
	b	LBB0_2
LBB0_16:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x19]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, #0
	b	LBB0_20
LBB0_19:
Lloh4:
	adrp	x8, _EFI_DEVICE_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFI_DEVICE_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_DEVICE_ERROR,8,3           ; @EFI_DEVICE_ERROR
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_BS,8,3                         ; @BS
	.no_dead_strip	_efifb_uga_locate_framebuffer
.subsections_via_symbols
