	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dsi_setup_burst
_sun6i_dsi_setup_burst:                 ## @sun6i_dsi_setup_burst
	.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, %r15
	movq	8(%rdi), %rax
	movq	_MIPI_DSI_MODE_VIDEO_BURST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sun6i_dsi_get_line_num
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sun6i_dsi_get_drq_edge1
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_sun6i_dsi_get_drq_edge0
	movl	(%r15), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_SUN6I_DSI_BURST_DRQ_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_SUN6I_DSI_BURST_DRQ_EDGE0
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_SUN6I_DSI_BURST_DRQ_EDGE1
	orl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_regmap_write
	movl	(%r15), %r12d
	movq	_SUN6I_DSI_BURST_LINE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_SUN6I_DSI_BURST_LINE_NUM
	movl	%eax, %ebx
	movq	_SUN6I_DSI_SYNC_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SUN6I_DSI_BURST_LINE_SYNC_POINT
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movq	_SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %r14d
	subl	4(%rbx), %r14d
	xorl	%edx, %edx
	cmpl	$21, %r14d
	jl	LBB0_4
## %bb.3:
	addl	$-20, %r14d
	movl	4(%rax), %edi
	callq	_mipi_dsi_pixel_format_to_bpp
	imull	%eax, %r14d
	leal	31(%r14), %edi
	testl	%r14d, %r14d
	cmovnsl	%r14d, %edi
	sarl	$5, %edi
	movq	_SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_SUN6I_DSI_TCON_DRQ_SET
	movl	%eax, %edx
	orl	%ebx, %edx
LBB0_4:
	movl	(%r15), %edi
	movq	_SUN6I_DSI_TCON_DRQ_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	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_BURST_DRQ_REG,4,2    ## @SUN6I_DSI_BURST_DRQ_REG
	.comm	_SUN6I_DSI_BURST_LINE_REG,4,2   ## @SUN6I_DSI_BURST_LINE_REG
	.comm	_SUN6I_DSI_SYNC_POINT,4,2       ## @SUN6I_DSI_SYNC_POINT
	.comm	_SUN6I_DSI_TCON_DRQ_ENABLE_MODE,4,2 ## @SUN6I_DSI_TCON_DRQ_ENABLE_MODE
	.comm	_SUN6I_DSI_TCON_DRQ_REG,4,2     ## @SUN6I_DSI_TCON_DRQ_REG
	.no_dead_strip	_sun6i_dsi_setup_burst
.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_burst
_sun6i_dsi_setup_burst:                 ; @sun6i_dsi_setup_burst
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_sun6i_dsi_get_line_num
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sun6i_dsi_get_drq_edge1
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_sun6i_dsi_get_drq_edge0
	ldr	w20, [x19]
Lloh3:
	adrp	x8, _SUN6I_DSI_BURST_DRQ_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUN6I_DSI_BURST_DRQ_REG@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	bl	_SUN6I_DSI_BURST_DRQ_EDGE0
	mov	x24, x0
	mov	x0, x22
	bl	_SUN6I_DSI_BURST_DRQ_EDGE1
	orr	w2, w0, w24
	mov	x0, x20
	mov	x1, x23
	bl	_regmap_write
	ldr	w20, [x19]
Lloh6:
	adrp	x8, _SUN6I_DSI_BURST_LINE_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUN6I_DSI_BURST_LINE_REG@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_SUN6I_DSI_BURST_LINE_NUM
	mov	x21, x0
Lloh9:
	adrp	x8, _SUN6I_DSI_SYNC_POINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN6I_DSI_SYNC_POINT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_SUN6I_DSI_BURST_LINE_SYNC_POINT
	orr	w2, w0, w21
	mov	x0, x20
	mov	x1, x22
	bl	_regmap_write
Lloh12:
	adrp	x8, _SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	b	LBB0_5
LBB0_2:
	ldp	w9, w10, [x20]
	sub	w9, w9, w10
	cmp	w9, #21
	b.lt	LBB0_4
; %bb.3:
	sub	w20, w9, #20
	ldr	w0, [x8, #4]
	bl	_mipi_dsi_pixel_format_to_bpp
	mul	w8, w0, w20
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #5
Lloh15:
	adrp	x8, _SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUN6I_DSI_TCON_DRQ_ENABLE_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	bl	_SUN6I_DSI_TCON_DRQ_SET
	orr	w2, w0, w20
	b	LBB0_5
LBB0_4:
	mov	w2, #0
LBB0_5:
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _SUN6I_DSI_TCON_DRQ_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUN6I_DSI_TCON_DRQ_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ; @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_SUN6I_DSI_BURST_DRQ_REG,4,2    ; @SUN6I_DSI_BURST_DRQ_REG
	.comm	_SUN6I_DSI_BURST_LINE_REG,4,2   ; @SUN6I_DSI_BURST_LINE_REG
	.comm	_SUN6I_DSI_SYNC_POINT,4,2       ; @SUN6I_DSI_SYNC_POINT
	.comm	_SUN6I_DSI_TCON_DRQ_ENABLE_MODE,4,2 ; @SUN6I_DSI_TCON_DRQ_ENABLE_MODE
	.comm	_SUN6I_DSI_TCON_DRQ_REG,4,2     ; @SUN6I_DSI_TCON_DRQ_REG
	.no_dead_strip	_sun6i_dsi_setup_burst
.subsections_via_symbols
