	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_plane_add_properties
_vop_plane_add_properties:              ## @vop_plane_add_properties
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_x_mir_en@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_VOP_WIN_HAS_REG
	xorl	%ebx, %ebx
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movq	_y_mir_en@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_VOP_WIN_HAS_REG
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	orl	%r12d, %ebx
	je	LBB0_5
## %bb.6:
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%esi, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_plane_create_rotation_property ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x_mir_en,4,2                   ## @x_mir_en
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_y_mir_en,4,2                   ## @y_mir_en
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.no_dead_strip	_vop_plane_add_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_plane_add_properties
_vop_plane_add_properties:              ; @vop_plane_add_properties
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _x_mir_en@GOTPAGE
Lloh1:
	ldr	x8, [x8, _x_mir_en@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VOP_WIN_HAS_REG
Lloh3:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, wzr, w8, eq
Lloh6:
	adrp	x8, _y_mir_en@GOTPAGE
Lloh7:
	ldr	x8, [x8, _y_mir_en@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VOP_WIN_HAS_REG
Lloh9:
	adrp	x8, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w21
	cbz	w8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x9, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	orr	w2, w1, w8
	mov	x0, x19
	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
	b	_drm_plane_create_rotation_property
LBB0_2:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_x_mir_en,4,2                   ; @x_mir_en
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_y_mir_en,4,2                   ; @y_mir_en
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.no_dead_strip	_vop_plane_add_properties
.subsections_via_symbols
