	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_mode_object_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.5:
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_drm_mode_obj_find_prop_id
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_drm_drv_uses_atomic_modeset
	movl	(%r12), %ecx
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_set_property_atomic
	jmp	LBB0_9
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %r13d
	jmp	LBB0_11
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_set_property_legacy
LBB0_9:
	movl	%eax, %r13d
LBB0_10:
	movq	%r15, %rdi
	callq	_drm_mode_object_put
LBB0_11:
	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	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_6
; %bb.1:
	ldp	w3, w2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_mode_object_find
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	neg	w22, w22
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.3:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_drm_mode_obj_find_prop_id
	cbz	x0, LBB0_11
; %bb.4:
	mov	x23, x0
	ldr	w0, [x0]
	bl	_drm_drv_uses_atomic_modeset
	ldr	w3, [x21]
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_set_property_atomic
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x3
	bl	_set_property_legacy
LBB0_10:
	mov	x22, x0
LBB0_11:
	mov	x0, x20
	bl	_drm_mode_object_put
LBB0_12:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
