	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efifb_uga_get_pciio
_efifb_uga_get_pciio:                   ## @efifb_uga_get_pciio
	.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
	movl	$0, -44(%rbp)
	movq	_BS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_ByProtocol@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_uga_guid@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_malloc
	movq	%rax, %r13
	movq	(%r14), %rax
	movl	(%r15), %edi
	movq	_uga_guid@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rcx
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	*(%rax)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -44(%rbp)
	movq	$0, -56(%rbp)
	cmpl	$4, %eax
	jl	LBB0_7
## %bb.3:
	movq	_pciio_guid@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %r15
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_OpenProtocolByHandle
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	movslq	-44(%rbp), %rax
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_7:
	movq	%r13, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BS,8,3                         ## @BS
	.comm	_ByProtocol,4,2                 ## @ByProtocol
	.comm	_uga_guid,4,2                   ## @uga_guid
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_pciio_guid,4,2                 ## @pciio_guid
	.no_dead_strip	_efifb_uga_get_pciio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efifb_uga_get_pciio
_efifb_uga_get_pciio:                   ; @efifb_uga_get_pciio
	.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
Lloh0:
	adrp	x20, _BS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BS@GOTPAGEOFF]
	str	wzr, [sp, #4]
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh2:
	adrp	x21, _ByProtocol@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ByProtocol@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, _uga_guid@GOTPAGE
Lloh5:
	ldr	x1, [x1, _uga_guid@GOTPAGEOFF]
	add	x3, sp, #4
	mov	x2, #0
	mov	x4, #0
	blr	x8
	mov	x8, x0
	mov	x0, #0
Lloh6:
	adrp	x9, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	w0, [sp, #4]
	bl	_malloc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x21]
Lloh9:
	adrp	x1, _uga_guid@GOTPAGE
Lloh10:
	ldr	x1, [x1, _uga_guid@GOTPAGEOFF]
	add	x3, sp, #4
	mov	x2, #0
	mov	x4, x19
	blr	x8
Lloh11:
	adrp	x21, _EFI_SUCCESS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [sp, #4]
	asr	w9, w8, #2
	str	w9, [sp, #4]
	str	xzr, [sp, #8]
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.3:
Lloh13:
	adrp	x20, _pciio_guid@GOTPAGE
Lloh14:
	ldr	x20, [x20, _pciio_guid@GOTPAGEOFF]
	mov	x22, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x20
	bl	_OpenProtocolByHandle
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #4
	ldrsw	x8, [sp, #4]
	add	x8, x19, x8, lsl #2
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x0, #0
LBB0_7:
	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
LBB0_8:
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BS,8,3                         ; @BS
	.comm	_ByProtocol,4,2                 ; @ByProtocol
	.comm	_uga_guid,4,2                   ; @uga_guid
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_pciio_guid,4,2                 ; @pciio_guid
	.no_dead_strip	_efifb_uga_get_pciio
.subsections_via_symbols
