	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dsi_get_drq_edge1
_sun6i_dsi_get_drq_edge1:               ## @sun6i_dsi_get_drq_edge1
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movl	4(%r15), %edi
	callq	_mipi_dsi_pixel_format_to_bpp
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %eax
	sarl	$3, %eax
	movq	_SUN6I_DSI_SYNC_POINT@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	subl	4(%rbx), %edx
	movl	8(%rbx), %esi
	addl	%esi, %edx
	addl	$20, %edx
	imull	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	(%r15)
                                        ## kill: def $eax killed $eax def $rax
	addq	(%rcx), %rax
	cmpq	%r14, %rax
	cmovgeq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN6I_DSI_SYNC_POINT,8,3       ## @SUN6I_DSI_SYNC_POINT
	.no_dead_strip	_sun6i_dsi_get_drq_edge1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_dsi_get_drq_edge1
_sun6i_dsi_get_drq_edge1:               ; @sun6i_dsi_get_drq_edge1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w0, [x21, #4]
	bl	_mipi_dsi_pixel_format_to_bpp
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	ldp	w9, w10, [x20]
Lloh0:
	adrp	x11, _SUN6I_DSI_SYNC_POINT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SUN6I_DSI_SYNC_POINT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	w12, [x20, #8]
	sub	w9, w9, w10
	add	w9, w9, w12
	add	w9, w9, #20
	mul	w8, w9, w8
	ldr	w9, [x21]
	udiv	w8, w8, w9
	add	x8, x11, x8
	cmp	x8, x19
	csel	x0, x8, x19, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN6I_DSI_SYNC_POINT,8,3       ; @SUN6I_DSI_SYNC_POINT
	.no_dead_strip	_sun6i_dsi_get_drq_edge1
.subsections_via_symbols
