	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_property_legacy
_set_property_legacy:                   ## @set_property_legacy
	.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, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rsi), %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rdx
	movq	%rsi, %rdi
	movl	%r12d, %esi
	callq	_drm_property_change_valid_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_drm_modeset_lock_all
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_drm_connector_set_obj_prop
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r13, %rdi
	callq	_obj_to_plane
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_drm_mode_plane_set_obj_prop
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_drm_mode_crtc_set_obj_prop
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	negl	%ebx
LBB0_10:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_drm_property_change_valid_put
	movq	%r14, %rdi
	callq	_drm_modeset_unlock_all
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_property_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_property_legacy
_set_property_legacy:                   ; @set_property_legacy
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x1]
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x24]
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x21
	bl	_drm_property_change_valid_get
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_drm_modeset_lock_all
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_drm_connector_set_obj_prop
	b	LBB0_8
LBB0_5:
	ldr	w8, [x24]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_obj_to_plane
	mov	x1, x20
	mov	x2, x21
	bl	_drm_mode_plane_set_obj_prop
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_drm_mode_crtc_set_obj_prop
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	neg	w21, w23
LBB0_10:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_drm_property_change_valid_put
	mov	x0, x19
	bl	_drm_modeset_unlock_all
LBB0_11:
	mov	x0, x21
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_property_legacy
.subsections_via_symbols
