	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_enable_rx_to_enhanced_mode
_analogix_dp_enable_rx_to_enhanced_mode: ## @analogix_dp_enable_rx_to_enhanced_mode
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_DP_LANE_COUNT_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%r14), %r14d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	_DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-28(%rbp), %edi
	callq	_DPCD_LANE_COUNT_SET
	orl	%r15d, %eax
	jmp	LBB0_4
LBB0_3:
	movl	-28(%rbp), %edi
	callq	_DPCD_LANE_COUNT_SET
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_drm_dp_dpcd_writeb
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_LANE_COUNT_SET,4,2          ## @DP_LANE_COUNT_SET
	.comm	_DP_LANE_COUNT_ENHANCED_FRAME_EN,4,2 ## @DP_LANE_COUNT_ENHANCED_FRAME_EN
	.no_dead_strip	_analogix_dp_enable_rx_to_enhanced_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_enable_rx_to_enhanced_mode
_analogix_dp_enable_rx_to_enhanced_mode: ; @analogix_dp_enable_rx_to_enhanced_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _DP_LANE_COUNT_SET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DP_LANE_COUNT_SET@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	w20, [x20]
	cbz	w21, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	w0, [sp, #12]
	bl	_DPCD_LANE_COUNT_SET
	orr	w2, w0, w21
	b	LBB0_4
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_DPCD_LANE_COUNT_SET
	mov	x2, x0
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_dp_dpcd_writeb
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_LANE_COUNT_SET,4,2          ; @DP_LANE_COUNT_SET
	.comm	_DP_LANE_COUNT_ENHANCED_FRAME_EN,4,2 ; @DP_LANE_COUNT_ENHANCED_FRAME_EN
	.no_dead_strip	_analogix_dp_enable_rx_to_enhanced_mode
.subsections_via_symbols
