	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_dp_set_property
_cdv_intel_dp_set_property:             ## @cdv_intel_dp_set_property
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_gma_attached_encoder
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_drm_object_property_set_value
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r13, 8(%rax)
	je	LBB0_2
## %bb.8:
	cmpq	%r13, (%rax)
	je	LBB0_9
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_2:
	xorl	%r12d, %r12d
	cmpl	%r14d, (%r15)
	je	LBB0_15
## %bb.3:
	movl	%r14d, (%r15)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	setg	%al
	movzbl	%al, %eax
	cmpl	4(%r15), %eax
	je	LBB0_15
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	movq	%r15, %rdx
	cmpl	$0, 8(%r15)
	setne	%al
	xorl	%r12d, %r12d
	cmpl	%r14d, %eax
	je	LBB0_15
## %bb.10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	_DP_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, 8(%r15)
	jmp	LBB0_13
LBB0_4:
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_detect_audio
	cmpl	4(%r15), %eax
	je	LBB0_15
LBB0_7:
	movl	%eax, 4(%r15)
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	leaq	16(%rdi), %rsi
	movl	12(%rdi), %edx
	movl	8(%rdi), %ecx
	movq	(%rdi), %rax
	movl	(%rax), %r8d
	callq	_drm_crtc_helper_set_mode
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_COLOR_RANGE_16_235,4,2      ## @DP_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cdv_intel_dp_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_dp_set_property
_cdv_intel_dp_set_property:             ; @cdv_intel_dp_set_property
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	bl	_gma_attached_encoder
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x8, [x24, #8]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x24]
	cmp	x8, x22
	b.eq	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	ldr	w8, [x23]
	cmp	w8, w20
	b.eq	LBB0_13
; %bb.5:
	str	w20, [x23]
	cbz	w20, LBB0_9
; %bb.6:
	cmp	w20, #0
	cset	w0, gt
	b	LBB0_10
LBB0_7:
	ldr	w8, [x23, #8]
	cmp	w8, #0
	cset	w8, ne
	cmp	w8, w20
	b.eq	LBB0_13
; %bb.8:
Lloh3:
	adrp	x8, _DP_COLOR_RANGE_16_235@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_COLOR_RANGE_16_235@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	str	w8, [x23, #8]
	ldr	x0, [x19]
	cbnz	x0, LBB0_12
	b	LBB0_14
LBB0_9:
	mov	x0, x21
	bl	_cdv_intel_dp_detect_audio
LBB0_10:
	ldr	w8, [x23, #4]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.11:
	str	w0, [x23, #4]
	ldr	x0, [x19]
	cbz	x0, LBB0_14
LBB0_12:
	add	x1, x0, #16
	ldp	w3, w2, [x0, #8]
	ldr	x8, [x0]
	ldr	w4, [x8]
	bl	_drm_crtc_helper_set_mode
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_COLOR_RANGE_16_235,4,2      ; @DP_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cdv_intel_dp_set_property
.subsections_via_symbols
