	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_add_properties
_intel_dp_add_properties:               ## @intel_dp_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	%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	%rsi, %r12
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_dp_to_dig_port
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IS_G4X
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_intel_attach_force_audio_property
LBB0_3:
	movq	%r12, %rdi
	callq	_intel_attach_broadcast_rgb_property
	movq	%r14, %rdi
	callq	_HAS_GMCH
	movl	$10, %edx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	$12, %edx
	cmpl	$5, %eax
	jl	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movl	$6, %esi
	callq	_drm_connector_attach_max_bpc_property
LBB0_6:
	movq	%r15, %rdi
	callq	_intel_dp_is_edp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_DRM_MODE_SCALE_ASPECT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_DRM_MODE_SCALE_FULLSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_HAS_GMCH
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_DRM_MODE_SCALE_CENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_drm_connector_attach_scaling_mode_property
	movl	(%r13), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_DRM_MODE_SCALE_ASPECT,4,2      ## @DRM_MODE_SCALE_ASPECT
	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ## @DRM_MODE_SCALE_FULLSCREEN
	.comm	_DRM_MODE_SCALE_CENTER,4,2      ## @DRM_MODE_SCALE_CENTER
	.no_dead_strip	_intel_dp_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_dp_add_properties
_intel_dp_add_properties:               ; @intel_dp_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	w0, [x1, #8]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x21
	bl	_dp_to_dig_port
	ldr	w22, [x0]
	mov	x0, x20
	bl	_IS_G4X
Lloh0:
	adrp	x8, _PORT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w22, w8, #4, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_intel_attach_force_audio_property
LBB0_2:
	mov	x0, x19
	bl	_intel_attach_broadcast_rgb_property
	mov	x0, x20
	bl	_HAS_GMCH
	cbz	x0, LBB0_4
; %bb.3:
	mov	w2, #10
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #5
	b.lt	LBB0_7
; %bb.5:
	mov	w2, #12
LBB0_6:
	mov	x0, x19
	mov	w1, #6
	bl	_drm_connector_attach_max_bpc_property
LBB0_7:
	mov	x0, x21
	bl	_intel_dp_is_edp
	cbz	x0, LBB0_11
; %bb.8:
Lloh3:
	adrp	x22, _DRM_MODE_SCALE_ASPECT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DRM_MODE_SCALE_ASPECT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	mov	x21, x0
Lloh5:
	adrp	x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
	mov	x0, x20
	bl	_HAS_GMCH
	cbnz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _DRM_MODE_SCALE_CENTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_SCALE_CENTER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_connector_attach_scaling_mode_property
	ldr	w8, [x22]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_DRM_MODE_SCALE_ASPECT,4,2      ; @DRM_MODE_SCALE_ASPECT
	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ; @DRM_MODE_SCALE_FULLSCREEN
	.comm	_DRM_MODE_SCALE_CENTER,4,2      ; @DRM_MODE_SCALE_CENTER
	.no_dead_strip	_intel_dp_add_properties
.subsections_via_symbols
