	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_init_video         ## -- Begin function analogix_dp_init_video
	.p2align	4, 0x90
_analogix_dp_init_video:                ## @analogix_dp_init_video
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VSYNC_DET@GOTPCREL(%rip), %rcx
	movq	_VID_FORMAT_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rdi, %r14
	movq	_VID_CLK_CHG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ANALOGIX_DP_COMMON_INT_STA_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_ANALOGIX_DP_SYS_CTL_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$4, %edi
	callq	_CHA_CRI
	movq	_CHA_CTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ANALOGIX_DP_SYS_CTL_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_ANALOGIX_DP_SYS_CTL_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$2, %edi
	callq	_VID_HRES_TH
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_VID_VRES_TH
	orl	%eax, %ebx
	movq	_ANALOGIX_DP_VIDEO_CTL_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VSYNC_DET,4,2                  ## @VSYNC_DET
	.comm	_VID_FORMAT_CHG,4,2             ## @VID_FORMAT_CHG
	.comm	_VID_CLK_CHG,4,2                ## @VID_CLK_CHG
	.comm	_ANALOGIX_DP_COMMON_INT_STA_1,8,3 ## @ANALOGIX_DP_COMMON_INT_STA_1
	.comm	_ANALOGIX_DP_SYS_CTL_1,8,3      ## @ANALOGIX_DP_SYS_CTL_1
	.comm	_CHA_CTRL,4,2                   ## @CHA_CTRL
	.comm	_ANALOGIX_DP_SYS_CTL_2,8,3      ## @ANALOGIX_DP_SYS_CTL_2
	.comm	_ANALOGIX_DP_SYS_CTL_3,8,3      ## @ANALOGIX_DP_SYS_CTL_3
	.comm	_ANALOGIX_DP_VIDEO_CTL_8,8,3    ## @ANALOGIX_DP_VIDEO_CTL_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_init_video         ; -- Begin function analogix_dp_init_video
	.p2align	2
_analogix_dp_init_video:                ; @analogix_dp_init_video
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _VSYNC_DET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSYNC_DET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VID_FORMAT_CHG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VID_FORMAT_CHG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VID_CLK_CHG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VID_CLK_CHG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ANALOGIX_DP_COMMON_INT_STA_1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ANALOGIX_DP_COMMON_INT_STA_1@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _ANALOGIX_DP_SYS_CTL_1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ANALOGIX_DP_SYS_CTL_1@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #4
	bl	_CHA_CRI
Lloh15:
	adrp	x8, _CHA_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CHA_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _ANALOGIX_DP_SYS_CTL_2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ANALOGIX_DP_SYS_CTL_2@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _ANALOGIX_DP_SYS_CTL_3@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ANALOGIX_DP_SYS_CTL_3@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #2
	bl	_VID_HRES_TH
	mov	x20, x0
	mov	w0, #0
	bl	_VID_VRES_TH
	orr	w0, w0, w20
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _ANALOGIX_DP_VIDEO_CTL_8@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ANALOGIX_DP_VIDEO_CTL_8@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VSYNC_DET,4,2                  ; @VSYNC_DET
	.comm	_VID_FORMAT_CHG,4,2             ; @VID_FORMAT_CHG
	.comm	_VID_CLK_CHG,4,2                ; @VID_CLK_CHG
	.comm	_ANALOGIX_DP_COMMON_INT_STA_1,8,3 ; @ANALOGIX_DP_COMMON_INT_STA_1
	.comm	_ANALOGIX_DP_SYS_CTL_1,8,3      ; @ANALOGIX_DP_SYS_CTL_1
	.comm	_CHA_CTRL,4,2                   ; @CHA_CTRL
	.comm	_ANALOGIX_DP_SYS_CTL_2,8,3      ; @ANALOGIX_DP_SYS_CTL_2
	.comm	_ANALOGIX_DP_SYS_CTL_3,8,3      ; @ANALOGIX_DP_SYS_CTL_3
	.comm	_ANALOGIX_DP_VIDEO_CTL_8,8,3    ; @ANALOGIX_DP_VIDEO_CTL_8
.subsections_via_symbols
