	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_obj_set_property_ioctl ## -- Begin function drm_mode_obj_set_property_ioctl
	.p2align	4, 0x90
_drm_mode_obj_set_property_ioctl:       ## @drm_mode_obj_set_property_ioctl
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%r12), %r13d
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_drm_modeset_lock_all
	movq	(%r15), %rsi
	movl	20(%r15), %edx
	movq	%r14, %rdi
	callq	_drm_mode_object_find
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%rax, %r12
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.4:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.13:
	movq	8(%rcx), %rdx
	movq	8(%r15), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rcx,8)
	je	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
	jmp	LBB0_19
LBB0_1:
	subl	(%r12), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_20
LBB0_5:
	xorl	%ecx, %ecx
LBB0_6:
	cmpl	%eax, %ecx
	je	LBB0_19
## %bb.7:
	movq	8(%r15), %rsi
	movq	_DRM_MODE_OBJECT_PROPERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_mode_object_find
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%rax, %rdi
	callq	_obj_to_property
	movq	%rax, %rbx
	movl	16(%r15), %esi
	movq	%rax, %rdi
	callq	_drm_property_change_is_valid
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.10:
	cmpl	$129, %eax
	je	LBB0_16
## %bb.11:
	cmpl	$130, %eax
	jne	LBB0_19
## %bb.12:
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_connector_set_obj_prop
	jmp	LBB0_18
LBB0_17:
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_plane_set_obj_prop
	jmp	LBB0_18
LBB0_16:
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_crtc_set_obj_prop
LBB0_18:
	movl	%eax, %r13d
LBB0_19:
	movq	%r14, %rdi
	callq	_drm_modeset_unlock_all
LBB0_20:
	movl	%r13d, %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
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_DRM_MODE_OBJECT_PROPERTY,4,2   ## @DRM_MODE_OBJECT_PROPERTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_obj_set_property_ioctl ; -- Begin function drm_mode_obj_set_property_ioctl
	.p2align	2
_drm_mode_obj_set_property_ioctl:       ; @drm_mode_obj_set_property_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x20]
Lloh2:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_7
; %bb.1:
	neg	w20, w22
	mov	x0, x19
	bl	_drm_modeset_lock_all
	ldr	x1, [x21]
	ldr	w2, [x21, #20]
	mov	x0, x19
	bl	_drm_mode_object_find
	cbz	x0, LBB0_19
; %bb.2:
	mov	x22, x0
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_19
; %bb.3:
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x9, #0
	ldr	x10, [x10, #8]
	ldr	x11, [x21, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	x12, x11
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_5
	b	LBB0_19
LBB0_7:
	ldr	w8, [x20]
	neg	w20, w8
	b	LBB0_20
LBB0_8:
	mov	w9, #0
LBB0_9:
	cmp	w9, w8
	b.eq	LBB0_19
; %bb.10:
	ldr	x1, [x21, #8]
Lloh5:
	adrp	x8, _DRM_MODE_OBJECT_PROPERTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_OBJECT_PROPERTY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_drm_mode_object_find
	cbz	x0, LBB0_19
; %bb.11:
	bl	_obj_to_property
	mov	x23, x0
	ldr	w1, [x21, #16]
	bl	_drm_property_change_is_valid
	cbz	w0, LBB0_19
; %bb.12:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w8, #130
	b.ne	LBB0_19
; %bb.15:
	ldr	w2, [x21, #16]
	mov	x0, x22
	mov	x1, x23
	bl	_drm_mode_connector_set_obj_prop
	b	LBB0_18
LBB0_16:
	ldr	w2, [x21, #16]
	mov	x0, x22
	mov	x1, x23
	bl	_drm_mode_plane_set_obj_prop
	b	LBB0_18
LBB0_17:
	ldr	w2, [x21, #16]
	mov	x0, x22
	mov	x1, x23
	bl	_drm_mode_crtc_set_obj_prop
LBB0_18:
	mov	x20, x0
LBB0_19:
	mov	x0, x19
	bl	_drm_modeset_unlock_all
LBB0_20:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_DRM_MODE_OBJECT_PROPERTY,4,2   ; @DRM_MODE_OBJECT_PROPERTY
.subsections_via_symbols
