	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dsi_setup_inst_loop
_sun6i_dsi_setup_inst_loop:             ## @sun6i_dsi_setup_inst_loop
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	_MIPI_DSI_MODE_VIDEO_BURST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %eax
	subl	4(%rsi), %eax
	imull	$150, %eax, %eax
	movslq	8(%rsi), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	shll	$3, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	addl	$-50, %r14d
	jmp	LBB0_3
LBB0_1:
	movl	$49, %r14d
LBB0_3:
	movl	(%r12), %edi
	movq	_SUN6I_DSI_INST_LOOP_SEL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSI_INST_ID_LP11@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlb	$2, %cl
	movl	$2, %eax
	shll	%cl, %eax
	movq	_DSI_INST_ID_DLY@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlb	$2, %cl
	movl	$3, %edx
	shll	%cl, %edx
	orl	%eax, %edx
	callq	_regmap_write
	movl	(%r12), %r15d
	xorl	%edi, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_REG
	movl	%eax, %r13d
	movl	$49, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_N0
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_N1
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	(%r12), %r15d
	movl	$1, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_REG
	movl	%eax, %r12d
	movl	$49, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_N0
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_SUN6I_DSI_INST_LOOP_NUM_N1
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ## @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_SUN6I_DSI_INST_LOOP_SEL_REG,4,2 ## @SUN6I_DSI_INST_LOOP_SEL_REG
	.comm	_DSI_INST_ID_LP11,4,2           ## @DSI_INST_ID_LP11
	.comm	_DSI_INST_ID_DLY,4,2            ## @DSI_INST_ID_DLY
	.no_dead_strip	_sun6i_dsi_setup_inst_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_dsi_setup_inst_loop
_sun6i_dsi_setup_inst_loop:             ; @sun6i_dsi_setup_inst_loop
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	w8, w9, [x1]
	sub	w8, w8, w9
	mov	w9, #150
	mul	w8, w8, w9
	ldrsw	x9, [x1, #8]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	lsl	w9, w9, #3
	sdiv	w8, w8, w9
	sub	w20, w8, #50
	b	LBB0_3
LBB0_2:
	mov	w20, #49
LBB0_3:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _SUN6I_DSI_INST_LOOP_SEL_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUN6I_DSI_INST_LOOP_SEL_REG@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DSI_INST_ID_LP11@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DSI_INST_ID_LP11@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
	lsl	w8, w8, #2
	mov	w9, #2
Lloh9:
	adrp	x10, _DSI_INST_ID_DLY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DSI_INST_ID_DLY@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	lsl	w9, w9, #2
	mov	w10, #3
	lsl	w9, w10, w9
	orr	w2, w9, w8
	bl	_regmap_write
	ldr	w21, [x19]
	mov	w0, #0
	bl	_SUN6I_DSI_INST_LOOP_NUM_REG
	mov	x22, x0
	mov	w0, #49
	bl	_SUN6I_DSI_INST_LOOP_NUM_N0
	mov	x23, x0
	mov	x0, x20
	bl	_SUN6I_DSI_INST_LOOP_NUM_N1
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	ldr	w19, [x19]
	mov	w0, #1
	bl	_SUN6I_DSI_INST_LOOP_NUM_REG
	mov	x21, x0
	mov	w0, #49
	bl	_SUN6I_DSI_INST_LOOP_NUM_N0
	mov	x22, x0
	mov	x0, x20
	bl	_SUN6I_DSI_INST_LOOP_NUM_N1
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	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	_regmap_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ; @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_SUN6I_DSI_INST_LOOP_SEL_REG,4,2 ; @SUN6I_DSI_INST_LOOP_SEL_REG
	.comm	_DSI_INST_ID_LP11,4,2           ; @DSI_INST_ID_LP11
	.comm	_DSI_INST_ID_DLY,4,2            ; @DSI_INST_ID_DLY
	.no_dead_strip	_sun6i_dsi_setup_inst_loop
.subsections_via_symbols
