	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_set_property
_intel_dp_set_property:                 ## @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, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_to_intel_connector
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_intel_attached_encoder
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_enc_to_intel_dp
	movq	%rax, %r12
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_drm_object_property_set_value
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_1
LBB0_24:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, 8(%rax)
	je	LBB0_2
## %bb.8:
	cmpq	%r14, (%rax)
	je	LBB0_9
## %bb.14:
	movq	%r12, %rdi
	callq	_is_edp
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	(%rbx), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_18
## %bb.16:
	movq	_DRM_MODE_SCALE_NONE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_19
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_18
LBB0_2:
	xorl	%r13d, %r13d
	cmpl	%r15d, (%r12)
	je	LBB0_24
## %bb.3:
	movl	%r15d, (%r12)
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_intel_dp_detect_audio
	jmp	LBB0_6
LBB0_9:
	cmpl	$128, %r15d
	je	LBB0_13
## %bb.10:
	cmpl	$129, %r15d
	je	LBB0_21
## %bb.11:
	cmpl	$130, %r15d
	jne	LBB0_18
## %bb.12:
	movl	$1, 8(%r12)
	jmp	LBB0_22
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_5:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r15d, (%rcx)
	sete	%al
LBB0_6:
	cmpl	4(%r12), %eax
	je	LBB0_24
## %bb.7:
	movl	%eax, 4(%r12)
	jmp	LBB0_22
LBB0_13:
	movl	$0, 8(%r12)
	movq	_DP_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_22
LBB0_21:
	movq	$0, 8(%r12)
	jmp	LBB0_22
LBB0_19:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r15d, (%rax)
	je	LBB0_24
## %bb.20:
	movl	%r15d, (%rax)
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_intel_crtc_restore_mode
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_AUDIO_AUTO,4,2            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,4,2              ## @HDMI_AUDIO_ON
	.comm	_DP_COLOR_RANGE_16_235,4,2      ## @DP_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_SCALE_NONE,4,2        ## @DRM_MODE_SCALE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no scaling not supported\n"

	.no_dead_strip	_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 intel_dp_set_property
_intel_dp_set_property:                 ; @intel_dp_set_property
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
	mov	x25, x0
	ldr	x8, [x25], #8
	ldr	x26, [x8, #8]
	bl	_to_intel_connector
	mov	x23, x0
	mov	x0, x22
	bl	_intel_attached_encoder
	mov	x19, x0
	bl	_enc_to_intel_dp
	mov	x21, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbnz	w0, LBB0_25
; %bb.1:
	ldr	x8, [x26, #8]
	cmp	x8, x24
	b.eq	LBB0_7
; %bb.2:
	ldr	x8, [x26]
	cmp	x8, x24
	b.eq	LBB0_10
; %bb.3:
	mov	x0, x21
	bl	_is_edp
	cbz	x0, LBB0_14
; %bb.4:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_14
; %bb.5:
Lloh0:
	adrp	x8, _DRM_MODE_SCALE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_SCALE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_20
; %bb.6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_14
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_24
; %bb.8:
	str	w20, [x21]
Lloh5:
	adrp	x8, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_15
; %bb.9:
	mov	x0, x22
	bl	_intel_dp_detect_audio
	b	LBB0_16
LBB0_10:
	cmp	w20, #128
	b.eq	LBB0_18
; %bb.11:
	cmp	w20, #129
	b.eq	LBB0_19
; %bb.12:
	cmp	w20, #130
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x21, #8]
	b	LBB0_22
LBB0_14:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_15:
Lloh11:
	adrp	x8, _HDMI_AUDIO_ON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, eq
LBB0_16:
	ldr	w8, [x21, #4]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.17:
	str	w0, [x21, #4]
	b	LBB0_22
LBB0_18:
Lloh14:
	adrp	x8, _DP_COLOR_RANGE_16_235@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DP_COLOR_RANGE_16_235@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	wzr, w8, [x21, #8]
	b	LBB0_22
LBB0_19:
	str	xzr, [x21, #8]
	b	LBB0_22
LBB0_20:
	ldr	w8, [x23]
	cmp	w8, w20
	b.eq	LBB0_24
; %bb.21:
	str	w20, [x23]
LBB0_22:
	ldr	x0, [x19]
	cbz	x0, LBB0_25
; %bb.23:
	bl	_intel_crtc_restore_mode
LBB0_24:
	mov	w0, #0
LBB0_25:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_AUDIO_AUTO,4,2            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,4,2              ; @HDMI_AUDIO_ON
	.comm	_DP_COLOR_RANGE_16_235,4,2      ; @DP_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_SCALE_NONE,4,2        ; @DRM_MODE_SCALE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no scaling not supported\n"

	.no_dead_strip	_intel_dp_set_property
.subsections_via_symbols
