	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_crtc_do_set_base
_ast_crtc_do_set_base:                  ## @ast_crtc_do_set_base
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	testl	%r8d, %r8d
	jne	LBB0_3
## %bb.2:
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_drm_gem_vram_of_gem
	movq	%rax, %rdi
	callq	_drm_gem_vram_unpin
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_drm_gem_vram_of_gem
	movq	%rax, %r15
	movq	_DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_gem_vram_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_drm_gem_vram_offset
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_ast_set_offset_reg
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ast_set_start_address_crt1
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	callq	_drm_gem_vram_unpin
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_GEM_VRAM_PL_FLAG_VRAM,4,2  ## @DRM_GEM_VRAM_PL_FLAG_VRAM
	.no_dead_strip	_ast_crtc_do_set_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_crtc_do_set_base
_ast_crtc_do_set_base:                  ; @ast_crtc_do_set_base
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	cbnz	w4, LBB0_3
; %bb.2:
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_drm_gem_vram_of_gem
	bl	_drm_gem_vram_unpin
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_drm_gem_vram_of_gem
	mov	x21, x0
Lloh0:
	adrp	x8, _DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_gem_vram_pin
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_drm_gem_vram_offset
	mov	x20, x0
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ast_set_offset_reg
	mov	x0, x19
	mov	x1, x20
	bl	_ast_set_start_address_crt1
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_drm_gem_vram_unpin
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_GEM_VRAM_PL_FLAG_VRAM,4,2  ; @DRM_GEM_VRAM_PL_FLAG_VRAM
	.no_dead_strip	_ast_crtc_do_set_base
.subsections_via_symbols
