	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_add_properties
_intel_hdmi_add_properties:             ## @intel_hdmi_add_properties
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	callq	_to_i915
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_hdmi_to_dig_port
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_intel_attach_force_audio_property
	movq	%rbx, %rdi
	callq	_intel_attach_broadcast_rgb_property
	movq	%rbx, %rdi
	callq	_intel_attach_aspect_ratio_property
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_attach_colorspace_property
LBB0_2:
	movq	%rbx, %rdi
	callq	_drm_connector_attach_content_type_property
	movq	_HDMI_PICTURE_ASPECT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	8(%rbx), %rdi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_5:
	movq	%r14, %rdi
	callq	_HAS_GMCH
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$12, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_connector_attach_max_bpc_property ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PICTURE_ASPECT_NONE,4,2   ## @HDMI_PICTURE_ASPECT_NONE
	.no_dead_strip	_intel_hdmi_add_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_add_properties
_intel_hdmi_add_properties:             ; @intel_hdmi_add_properties
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x21
	bl	_hdmi_to_dig_port
	mov	x21, x0
	mov	x0, x19
	bl	_intel_attach_force_audio_property
	mov	x0, x19
	bl	_intel_attach_broadcast_rgb_property
	mov	x0, x19
	bl	_intel_attach_aspect_ratio_property
	ldr	w8, [x21]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_intel_attach_colorspace_property
LBB0_2:
	mov	x0, x19
	bl	_drm_connector_attach_content_type_property
Lloh0:
	adrp	x8, _HDMI_PICTURE_ASPECT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_PICTURE_ASPECT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	ldr	x8, [x0], #8
	ldr	w1, [x8]
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_5:
	mov	x0, x20
	bl	_HAS_GMCH
	cbz	w0, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #12
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_connector_attach_max_bpc_property
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PICTURE_ASPECT_NONE,4,2   ; @HDMI_PICTURE_ASPECT_NONE
	.no_dead_strip	_intel_hdmi_add_properties
.subsections_via_symbols
