	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efifb_uga_find_pixel
_efifb_uga_find_pixel:                  ## @efifb_uga_find_pixel
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_EfiUgaVideoToBltBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-152(%rbp), %rsi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	$0
	callq	*(%rdi)
	addq	$32, %rsp
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_printf
LBB0_23:
	movl	$-1, %eax
LBB0_24:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-136(%rbp), %eax
	notl	%eax
	movl	%eax, -112(%rbp)
	movl	-144(%rbp), %eax
	movl	-140(%rbp), %ecx
	notl	%ecx
	movl	%ecx, -116(%rbp)
	notl	%eax
	movl	%eax, -120(%rbp)
	movq	$0, -128(%rbp)
	movl	$1024, %edi                     ## imm = 0x400
	movl	$2, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.6(%rip), %rdi
	testq	%r14, %r14
	jle	LBB0_22
## %bb.6:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$8192, %rax                     ## imm = 0x2000
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	_EfiPciIoWidthUint32@GOTPCREL(%rip), %rcx
	movq	_EFI_PCI_IO_PASS_THROUGH_BAR@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	subq	%r15, %r14
	testq	%r14, %r14
	movq	_EfiPciIoWidthUint32@GOTPCREL(%rip), %rcx
	movq	_EFI_PCI_IO_PASS_THROUGH_BAR@GOTPCREL(%rip), %rdx
	jle	LBB0_21
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rax, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r13
	callq	_min
	movq	%rax, %r15
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rcx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax), %rbx
	movq	%r15, %r14
	shrq	$2, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r12, %r9
	callq	*(%rdi)
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_EfiUgaBltBufferToVideo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-128(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	*(%rdi)
	addq	$32, %rsp
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EfiPciIoWidthUint32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFI_PCI_IO_PASS_THROUGH_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	*(%rdi)
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EfiUgaBltBufferToVideo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-152(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	*(%rdi)
	addq	$32, %rsp
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%r15, %r15
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%rbx,8), %rax
	cmpq	8192(%r12,%rbx,8), %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_18:
	movq	%r12, %rdi
	callq	_free
	andl	$-4, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	jmp	LBB0_24
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_22
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_22
LBB0_14:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.6(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	callq	_printf
	movl	%r13d, %edi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EfiUgaVideoToBltBuffer,4,2     ## @EfiUgaVideoToBltBuffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UGA BLT operation failed (video->buffer)"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory"

	.comm	_EfiPciIoWidthUint32,4,2        ## @EfiPciIoWidthUint32
	.comm	_EFI_PCI_IO_PASS_THROUGH_BAR,4,2 ## @EFI_PCI_IO_PASS_THROUGH_BAR
L_.str.2:                               ## @.str.2
	.asciz	"Error reading frame buffer (before)"

	.comm	_EfiUgaBltBufferToVideo,4,2     ## @EfiUgaBltBufferToVideo
L_.str.3:                               ## @.str.3
	.asciz	"UGA BLT operation failed (modify)"

L_.str.4:                               ## @.str.4
	.asciz	"Error reading frame buffer (after)"

L_.str.5:                               ## @.str.5
	.asciz	"UGA BLT operation failed (restore)"

L_.str.6:                               ## @.str.6
	.asciz	"No change detected in frame buffer"

L_.str.7:                               ## @.str.7
	.asciz	" -- error %lu\n"

	.no_dead_strip	_efifb_uga_find_pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efifb_uga_find_pixel
_efifb_uga_find_pixel:                  ; @efifb_uga_find_pixel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EfiUgaVideoToBltBuffer@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EfiUgaVideoToBltBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w9, #1
	str	x9, [sp]
	add	x1, sp, #72
	mov	w3, #0
	mov	x4, x22
	mov	w5, #0
	mov	x6, #0
	mov	w7, #1
	blr	x8
	mov	x27, x0
	bl	_EFI_ERROR
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_printf
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
	ldr	w8, [sp, #88]
	mvn	w8, w8
	str	w8, [sp, #64]
	ldr	d0, [sp, #80]
	mvn.8b	v0, v0
	str	d0, [sp, #56]
	str	xzr, [sp, #48]
	mov	w0, #1024
	mov	w1, #2
	bl	_calloc
	cbz	x0, LBB0_17
; %bb.6:
	mov	x19, x0
	cmp	x20, #1
	b.lt	LBB0_19
; %bb.7:
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	mov	x21, #0
Lloh5:
	adrp	x26, _EfiPciIoWidthUint32@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EfiPciIoWidthUint32@GOTPAGEOFF]
Lloh7:
	adrp	x23, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGEOFF]
	add	x8, x19, #2, lsl #12            ; =8192
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x28, x21
	sub	x20, x20, x28
	cmp	x20, #0
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
Lloh9:
	adrp	x23, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGEOFF]
	b.le	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x20
	mov	w1, #1024
	bl	_min
	mov	x28, x0
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	mov	x22, x26
	ldr	w1, [x26]
	ldr	w2, [x23]
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x21, w21
	add	x25, x21, x25
	lsr	x26, x28, #2
	mov	x3, x25
	mov	x4, x26
	mov	x5, x19
	blr	x8
	mov	x27, x0
	bl	_EFI_ERROR
	cbnz	x0, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _EfiUgaBltBufferToVideo@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EfiUgaBltBufferToVideo@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	w9, #1
	str	x9, [sp]
	add	x1, sp, #48
	mov	x0, x24
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	mov	x6, x23
	mov	w7, #1
	blr	x8
	mov	x27, x0
	bl	_EFI_ERROR
	cbnz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	ldr	w1, [x22]
Lloh14:
	adrp	x9, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EFI_PCI_IO_PASS_THROUGH_BAR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	mov	x3, x25
	mov	x4, x26
	ldr	x5, [sp, #24]                   ; 8-byte Folded Reload
	blr	x8
	mov	x27, x0
	bl	_EFI_ERROR
	cbnz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
Lloh17:
	adrp	x9, _EfiUgaBltBufferToVideo@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EfiUgaBltBufferToVideo@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	mov	w9, #1
	str	x9, [sp]
	add	x1, sp, #72
	mov	x0, x24
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x23
	mov	w7, #1
	blr	x8
	mov	x27, x0
	bl	_EFI_ERROR
	cbnz	x0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x22
	cbz	x28, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, #0
LBB0_15:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x19, x25, lsl #3
	ldr	x9, [x8]
	ldr	x8, [x8, #8192]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x25, x25, #1
	cmp	x28, x25
	b.ne	LBB0_15
	b	LBB0_8
LBB0_17:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_18:
	mov	x0, x19
	bl	_free
	and	w8, w25, #0xfffffffc
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	w0, w8, w9
	b	LBB0_4
LBB0_19:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_20:
	bl	_printf
	mov	x0, x27
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_free
	b	LBB0_3
LBB0_21:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_22:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_23:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_24:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EfiUgaVideoToBltBuffer,4,2     ; @EfiUgaVideoToBltBuffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UGA BLT operation failed (video->buffer)"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory"

	.comm	_EfiPciIoWidthUint32,4,2        ; @EfiPciIoWidthUint32
	.comm	_EFI_PCI_IO_PASS_THROUGH_BAR,4,2 ; @EFI_PCI_IO_PASS_THROUGH_BAR
l_.str.2:                               ; @.str.2
	.asciz	"Error reading frame buffer (before)"

	.comm	_EfiUgaBltBufferToVideo,4,2     ; @EfiUgaBltBufferToVideo
l_.str.3:                               ; @.str.3
	.asciz	"UGA BLT operation failed (modify)"

l_.str.4:                               ; @.str.4
	.asciz	"Error reading frame buffer (after)"

l_.str.5:                               ; @.str.5
	.asciz	"UGA BLT operation failed (restore)"

l_.str.6:                               ; @.str.6
	.asciz	"No change detected in frame buffer"

l_.str.7:                               ; @.str.7
	.asciz	" -- error %lu\n"

	.no_dead_strip	_efifb_uga_find_pixel
.subsections_via_symbols
