	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_cursor_init
_ast_cursor_init:                       ## @ast_cursor_init
	.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	_AST_HWC_SIZE@GOTPCREL(%rip), %rax
	movq	_AST_HWC_SIGNATURE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	movq	(%rdi), %r15
	movq	_AST_DEFAULT_HWC_NUM@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movl	$1, %edx
	callq	_ast_gem_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-32(%rbp), %rdi
	callq	_drm_gem_vram_of_gem
	movq	%rax, %r14
	movq	_DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_gem_vram_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_drm_gem_vram_offset
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_drm_gem_vram_kmap
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_drm_gem_vram_unpin
	jmp	LBB0_7
LBB0_6:
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_HWC_SIZE,4,2               ## @AST_HWC_SIZE
	.comm	_AST_HWC_SIGNATURE_SIZE,4,2     ## @AST_HWC_SIGNATURE_SIZE
	.comm	_AST_DEFAULT_HWC_NUM,4,2        ## @AST_DEFAULT_HWC_NUM
	.comm	_DRM_GEM_VRAM_PL_FLAG_VRAM,4,2  ## @DRM_GEM_VRAM_PL_FLAG_VRAM
	.no_dead_strip	_ast_cursor_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_cursor_init
_ast_cursor_init:                       ; @ast_cursor_init
	.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
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _AST_HWC_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_HWC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AST_HWC_SIGNATURE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AST_HWC_SIGNATURE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
Lloh6:
	adrp	x9, _AST_DEFAULT_HWC_NUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AST_DEFAULT_HWC_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w1, w8, w9
	add	x3, sp, #8
	mov	w2, #1
	bl	_ast_gem_create
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_drm_gem_vram_of_gem
	mov	x20, x0
Lloh9:
	adrp	x8, _DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_GEM_VRAM_PL_FLAG_VRAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_drm_gem_vram_pin
	mov	x19, x0
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x19
	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_3:
	mov	x0, x20
	bl	_drm_gem_vram_offset
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	mov	x2, #0
	bl	_drm_gem_vram_kmap
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x19, x0
	b	LBB0_2
LBB0_6:
	mov	x19, x0
	mov	x0, x20
	bl	_drm_gem_vram_unpin
	b	LBB0_2
LBB0_7:
	mov	w19, #0
	ldr	x8, [sp, #8]
	str	x8, [x21]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_HWC_SIZE,4,2               ; @AST_HWC_SIZE
	.comm	_AST_HWC_SIGNATURE_SIZE,4,2     ; @AST_HWC_SIGNATURE_SIZE
	.comm	_AST_DEFAULT_HWC_NUM,4,2        ; @AST_DEFAULT_HWC_NUM
	.comm	_DRM_GEM_VRAM_PL_FLAG_VRAM,4,2  ; @DRM_GEM_VRAM_PL_FLAG_VRAM
	.no_dead_strip	_ast_cursor_init
.subsections_via_symbols
