	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_set_property
_intel_hdmi_set_property:               ## @intel_hdmi_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, %r13
	callq	_intel_attached_hdmi
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_hdmi_to_dig_port
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_drm_object_property_set_value
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, 8(%rax)
	je	LBB0_2
## %bb.9:
	cmpq	%r14, (%rax)
	je	LBB0_10
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r15d, (%r12)
	je	LBB0_19
## %bb.3:
	movl	%r15d, (%r12)
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_intel_hdmi_detect_audio
	jmp	LBB0_6
LBB0_10:
	cmpl	$128, %r15d
	je	LBB0_14
## %bb.11:
	cmpl	$129, %r15d
	je	LBB0_16
## %bb.12:
	cmpl	$130, %r15d
	jne	LBB0_15
## %bb.13:
	movl	$1, 8(%r12)
	jmp	LBB0_17
LBB0_5:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r15d, (%rcx)
	sete	%al
LBB0_6:
	movq	_HDMI_AUDIO_OFF_DVI@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	$0, 16(%r12)
LBB0_8:
	movl	%eax, 4(%r12)
	jmp	LBB0_17
LBB0_14:
	movl	$0, 8(%r12)
	movq	_SDVO_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_17
LBB0_16:
	movq	$0, 8(%r12)
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_intel_crtc_restore_mode
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_AUDIO_AUTO,4,2            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,4,2              ## @HDMI_AUDIO_ON
	.comm	_HDMI_AUDIO_OFF_DVI,4,2         ## @HDMI_AUDIO_OFF_DVI
	.comm	_SDVO_COLOR_RANGE_16_235,4,2    ## @SDVO_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_hdmi_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_hdmi_set_property
_intel_hdmi_set_property:               ; @intel_hdmi_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	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_intel_attached_hdmi
	mov	x20, x0
	bl	_hdmi_to_dig_port
	mov	x19, x0
	ldr	x8, [x22, #8]
	ldr	x24, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_drm_object_property_set_value
	cbnz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x24, #8]
	cmp	x8, x23
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x24]
	cmp	x8, x23
	b.eq	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_19
; %bb.5:
	str	w21, [x20]
Lloh3:
	adrp	x8, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_intel_hdmi_detect_audio
	b	LBB0_12
LBB0_7:
	cmp	w21, #128
	b.eq	LBB0_15
; %bb.8:
	cmp	w21, #129
	b.eq	LBB0_16
; %bb.9:
	cmp	w21, #130
	b.ne	LBB0_3
; %bb.10:
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_17
LBB0_11:
Lloh6:
	adrp	x8, _HDMI_AUDIO_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, eq
LBB0_12:
Lloh9:
	adrp	x8, _HDMI_AUDIO_OFF_DVI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_AUDIO_OFF_DVI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_14
; %bb.13:
	str	xzr, [x20, #16]
LBB0_14:
	str	w0, [x20, #4]
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x8, _SDVO_COLOR_RANGE_16_235@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDVO_COLOR_RANGE_16_235@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	wzr, w8, [x20, #8]
	b	LBB0_17
LBB0_16:
	str	xzr, [x20, #8]
LBB0_17:
	ldr	x0, [x19]
	cbz	x0, LBB0_20
; %bb.18:
	bl	_intel_crtc_restore_mode
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_AUDIO_AUTO,4,2            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,4,2              ; @HDMI_AUDIO_ON
	.comm	_HDMI_AUDIO_OFF_DVI,4,2         ; @HDMI_AUDIO_OFF_DVI
	.comm	_SDVO_COLOR_RANGE_16_235,4,2    ; @SDVO_COLOR_RANGE_16_235
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_hdmi_set_property
.subsections_via_symbols
