	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_get_config
_intel_hdmi_get_config:                 ## @intel_hdmi_get_config
	.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, %rbx
	movq	%rdi, %r14
	callq	_enc_to_intel_hdmi
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_to_i915
	movq	%rax, %r12
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 52(%rbx)
	movl	(%r15), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_SDVO_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_SDVO_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_HDMI_MODE_SELECT_HDMI@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_hdmi_infoframes_enabled
	orl	%eax, 28(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$1, 4(%rbx)
LBB0_10:
	movq	_HDMI_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:
	movl	$1, 8(%rbx)
LBB0_12:
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	_HDMI_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_15
## %bb.14:
	movl	$1, 12(%rbx)
LBB0_15:
	orl	%r13d, 44(%rbx)
	movq	_SDVO_COLOR_FORMAT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_HDMI_COLOR_FORMAT_12bpc@GOTPCREL(%rip), %rcx
	movl	16(%rbx), %eax
	cmpl	(%rcx), %r15d
	jne	LBB0_17
## %bb.16:
	addl	%eax, %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
LBB0_17:
	movl	20(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_19:
	movl	%eax, 48(%rbx)
	movl	$4, 24(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_hdmi_read_gcp_infoframe
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	40(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_read_infoframe
	movq	_HDMI_INFOFRAME_TYPE_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	36(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_read_infoframe
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_read_infoframe           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_SDVO_HSYNC_ACTIVE_HIGH,4,2     ## @SDVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_SDVO_VSYNC_ACTIVE_HIGH,4,2     ## @SDVO_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_HDMI_MODE_SELECT_HDMI,4,2      ## @HDMI_MODE_SELECT_HDMI
	.comm	_HDMI_AUDIO_ENABLE,4,2          ## @HDMI_AUDIO_ENABLE
	.comm	_HDMI_COLOR_RANGE_16_235,4,2    ## @HDMI_COLOR_RANGE_16_235
	.comm	_SDVO_COLOR_FORMAT_MASK,4,2     ## @SDVO_COLOR_FORMAT_MASK
	.comm	_HDMI_COLOR_FORMAT_12bpc,4,2    ## @HDMI_COLOR_FORMAT_12bpc
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ## @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ## @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ## @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_intel_hdmi_get_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_get_config
_intel_hdmi_get_config:                 ; @intel_hdmi_get_config
	.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	x19, x1
	mov	x20, x0
	bl	_enc_to_intel_hdmi
	mov	x21, x0
	ldr	x0, [x20]
	bl	_to_i915
	mov	x22, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x19, #52]
	orr	w8, w8, w0
	str	w8, [x19, #52]
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x21, x0
Lloh3:
	adrp	x8, _SDVO_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDVO_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh7:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _SDVO_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDVO_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh15:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w24, [x8]
Lloh17:
	adrp	x8, _HDMI_MODE_SELECT_HDMI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDMI_MODE_SELECT_HDMI@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_hdmi_infoframes_enabled
	ldr	w8, [x19, #28]
	orr	w8, w8, w0
	str	w8, [x19, #28]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_4:
Lloh20:
	adrp	x8, _HDMI_AUDIO_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDMI_AUDIO_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_6:
	orr	w23, w24, w23
	mov	x0, x22
	bl	_HAS_PCH_SPLIT
	cbnz	w0, LBB0_9
; %bb.7:
Lloh23:
	adrp	x8, _HDMI_COLOR_RANGE_16_235@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDMI_COLOR_RANGE_16_235@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_9:
	ldr	w8, [x19, #44]
	orr	w8, w23, w8
	str	w8, [x19, #44]
Lloh26:
	adrp	x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w21
	ldp	w10, w9, [x19, #16]
	lsl	w11, w10, #1
	mov	w12, #21846
	movk	w12, #21845, lsl #16
	smull	x11, w11, w12
	lsr	x12, x11, #63
	lsr	x11, x11, #32
	add	w11, w11, w12
Lloh29:
	adrp	x12, _HDMI_COLOR_FORMAT_12bpc@GOTPAGE
Lloh30:
	ldr	x12, [x12, _HDMI_COLOR_FORMAT_12bpc@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	cmp	w8, w12
	csel	w8, w10, w11, ne
	cbz	w9, LBB0_11
; %bb.10:
	sdiv	w8, w8, w9
LBB0_11:
	str	w8, [x19, #48]
	mov	w8, #4
	str	w8, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_hdmi_read_gcp_infoframe
Lloh32:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	add	x3, x19, #40
	mov	x0, x20
	mov	x1, x19
	bl	_intel_read_infoframe
Lloh35:
	adrp	x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	add	x3, x19, #36
	mov	x0, x20
	mov	x1, x19
	bl	_intel_read_infoframe
Lloh38:
	adrp	x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x3, x19, #32
	mov	x0, x20
	mov	x1, x19
	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
	b	_intel_read_infoframe
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_SDVO_HSYNC_ACTIVE_HIGH,4,2     ; @SDVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_SDVO_VSYNC_ACTIVE_HIGH,4,2     ; @SDVO_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_HDMI_MODE_SELECT_HDMI,4,2      ; @HDMI_MODE_SELECT_HDMI
	.comm	_HDMI_AUDIO_ENABLE,4,2          ; @HDMI_AUDIO_ENABLE
	.comm	_HDMI_COLOR_RANGE_16_235,4,2    ; @HDMI_COLOR_RANGE_16_235
	.comm	_SDVO_COLOR_FORMAT_MASK,4,2     ; @SDVO_COLOR_FORMAT_MASK
	.comm	_HDMI_COLOR_FORMAT_12bpc,4,2    ; @HDMI_COLOR_FORMAT_12bpc
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ; @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ; @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ; @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_intel_hdmi_get_config
.subsections_via_symbols
