	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmbus_reserve_fb
_vmbus_reserve_fb:                      ## @vmbus_reserve_fb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_screen_info@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.1:
	movq	_EFI_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_efi_enabled
	testq	%rax, %rax
	movq	___u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	movl	$67108864, %eax                 ## imm = 0x4000000
	movl	$8388608, %edx                  ## imm = 0x800000
	cmovel	%eax, %edx
	callq	_max_t
	movq	_fb_mmio@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	cmpl	$1048576, %eax                  ## imm = 0x100000
	jl	LBB0_6
## %bb.3:
	movq	_hyperv_mmio@GOTPCREL(%rip), %r12
	movq	_fb_mmio_name@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	(%r14), %rsi
	movl	(%r13), %ecx
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	___request_region
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	shrl	%eax
	cmpl	$2097151, %ebx                  ## imm = 0x1FFFFF
	movl	%eax, %ebx
	ja	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screen_info,16,3               ## @screen_info
	.comm	_EFI_BOOT,4,2                   ## @EFI_BOOT
	.comm	___u32,4,2                      ## @__u32
	.comm	_fb_mmio,8,3                    ## @fb_mmio
	.comm	_hyperv_mmio,4,2                ## @hyperv_mmio
	.comm	_fb_mmio_name,4,2               ## @fb_mmio_name
	.no_dead_strip	_vmbus_reserve_fb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmbus_reserve_fb
_vmbus_reserve_fb:                      ; @vmbus_reserve_fb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _screen_info@GOTPAGE
Lloh1:
	ldr	x20, [x20, _screen_info@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _EFI_BOOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFI_BOOT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_efi_enabled
Lloh5:
	adrp	x8, ___u32@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___u32@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w1, [x20, #8]
	cmp	x0, #0
	mov	w9, #8388608
	mov	w10, #67108864
	csel	w2, w10, w9, eq
	mov	x0, x8
	bl	_max_t
Lloh8:
	adrp	x21, _fb_mmio@GOTPAGE
Lloh9:
	ldr	x21, [x21, _fb_mmio@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
; %bb.2:
	mov	x19, x0
	cmp	w0, #256, lsl #12               ; =1048576
	b.lt	LBB0_5
; %bb.3:
Lloh10:
	adrp	x22, _hyperv_mmio@GOTPAGE
Lloh11:
	ldr	x22, [x22, _hyperv_mmio@GOTPAGEOFF]
Lloh12:
	adrp	x23, _fb_mmio_name@GOTPAGE
Lloh13:
	ldr	x23, [x23, _fb_mmio_name@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x1, [x20]
	ldr	w3, [x23]
	mov	x2, x19
	mov	w4, #0
	bl	___request_region
	str	x0, [x21]
	lsr	w8, w19, #21
	lsr	w19, w19, #1
	cmp	x0, #0
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_4
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_screen_info,16,3               ; @screen_info
	.comm	_EFI_BOOT,4,2                   ; @EFI_BOOT
	.comm	___u32,4,2                      ; @__u32
	.comm	_fb_mmio,8,3                    ; @fb_mmio
	.comm	_hyperv_mmio,4,2                ; @hyperv_mmio
	.comm	_fb_mmio_name,4,2               ; @fb_mmio_name
	.no_dead_strip	_vmbus_reserve_fb
.subsections_via_symbols
