	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_rxtx_control
_mtk_dsi_rxtx_control:                  ## @mtk_dsi_rxtx_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	decl	%eax
	movl	$60, %ecx
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	L_switch.table.mtk_dsi_rxtx_control(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_2:
	movl	4(%rdi), %eax
	movq	_MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	shll	$6, %edx
	orl	%ecx, %edx
	movq	_MIPI_DSI_MODE_EOT_PACKET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	$3, %eax
	orl	%edx, %eax
	movq	_DSI_TXRX_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rdi), %rsi
	movl	%eax, %edi
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ## @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ## @MIPI_DSI_MODE_EOT_PACKET
	.comm	_DSI_TXRX_CTRL,8,3              ## @DSI_TXRX_CTRL
	.no_dead_strip	_mtk_dsi_rxtx_control
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.mtk_dsi_rxtx_control
L_switch.table.mtk_dsi_rxtx_control:
	.long	4                               ## 0x4
	.long	12                              ## 0xc
	.long	28                              ## 0x1c
	.long	60                              ## 0x3c

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_rxtx_control
_mtk_dsi_rxtx_control:                  ; @mtk_dsi_rxtx_control
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.mtk_dsi_rxtx_control@PAGE
Lloh1:
	add	x9, x9, l_switch.table.mtk_dsi_rxtx_control@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w8, #60
LBB0_3:
	ldr	w9, [x0, #4]
Lloh2:
	adrp	x10, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w10, w10, w9
	orr	w8, w8, w10, lsl #6
Lloh5:
	adrp	x10, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w8, w9, asr #3
	ldr	x9, [x0, #8]
Lloh8:
	adrp	x10, _DSI_TXRX_CTRL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DSI_TXRX_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	b	_writel
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ; @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ; @MIPI_DSI_MODE_EOT_PACKET
	.comm	_DSI_TXRX_CTRL,8,3              ; @DSI_TXRX_CTRL
	.no_dead_strip	_mtk_dsi_rxtx_control
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.mtk_dsi_rxtx_control
l_switch.table.mtk_dsi_rxtx_control:
	.long	4                               ; 0x4
	.long	12                              ; 0xc
	.long	28                              ; 0x1c
	.long	60                              ; 0x3c

.subsections_via_symbols
