	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hqvdp_create
_sti_hqvdp_create:                      ## @sti_hqvdp_create
	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movl	%r14d, (%rax)
	movq	_STI_PLANE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_sti_hqvdp_init
	leaq	4(%r12), %r14
	movq	_hqvdp_supported_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %r13
	movl	(%r13), %r10d
	subq	$8, %rsp
	movq	_sti_hqvdp_plane_helpers_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_sti_hqvdp_helpers_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_plane_helper_add
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_sti_plane_init_property
LBB0_3:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STI_PLANE_DISABLED,4,2         ## @STI_PLANE_DISABLED
	.comm	_sti_hqvdp_plane_helpers_funcs,4,2 ## @sti_hqvdp_plane_helpers_funcs
	.comm	_hqvdp_supported_formats,4,2    ## @hqvdp_supported_formats
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize universal plane\n"

	.comm	_sti_hqvdp_helpers_funcs,4,2    ## @sti_hqvdp_helpers_funcs
	.no_dead_strip	_sti_hqvdp_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hqvdp_create
_sti_hqvdp_create:                      ; @sti_hqvdp_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	str	w20, [x0]
Lloh0:
	adrp	x8, _STI_PLANE_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STI_PLANE_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	bl	_sti_hqvdp_init
	add	x20, x19, #4
Lloh3:
	adrp	x8, _hqvdp_supported_formats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hqvdp_supported_formats@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x5, x0
Lloh6:
	adrp	x23, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
	ldr	w7, [x23]
	str	xzr, [sp]
Lloh8:
	adrp	x3, _sti_hqvdp_plane_helpers_funcs@GOTPAGE
Lloh9:
	ldr	x3, [x3, _sti_hqvdp_plane_helpers_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	mov	x4, x22
	mov	x6, #0
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x20, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x1, _sti_hqvdp_helpers_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sti_hqvdp_helpers_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_plane_helper_add
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sti_plane_init_property
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STI_PLANE_DISABLED,4,2         ; @STI_PLANE_DISABLED
	.comm	_sti_hqvdp_plane_helpers_funcs,4,2 ; @sti_hqvdp_plane_helpers_funcs
	.comm	_hqvdp_supported_formats,4,2    ; @hqvdp_supported_formats
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize universal plane\n"

	.comm	_sti_hqvdp_helpers_funcs,4,2    ; @sti_hqvdp_helpers_funcs
	.no_dead_strip	_sti_hqvdp_create
.subsections_via_symbols
