	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dsi_get_drq_edge0
_sun6i_dsi_get_drq_edge0:               ## @sun6i_dsi_get_drq_edge0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	addl	$40, %eax
	movq	_SUN6I_DSI_TCON_DIV@GOTPCREL(%rip), %rsi
	imull	(%rsi), %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	movslq	%esi, %rsi
	addq	%rcx, %rsi
	subq	%rdx, %rsi
	movl	$1, %eax
	cmovgq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN6I_DSI_TCON_DIV,4,2         ## @SUN6I_DSI_TCON_DIV
	.no_dead_strip	_sun6i_dsi_get_drq_edge0
.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_edge0
_sun6i_dsi_get_drq_edge0:               ; @sun6i_dsi_get_drq_edge0
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	add	w8, w8, #40
Lloh0:
	adrp	x9, _SUN6I_DSI_TCON_DIV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUN6I_DSI_TCON_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w8, w9
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	x8, x3, w8, sxtw
	subs	x8, x8, x2
	csinc	x0, x8, xzr, gt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN6I_DSI_TCON_DIV,4,2         ; @SUN6I_DSI_TCON_DIV
	.no_dead_strip	_sun6i_dsi_get_drq_edge0
.subsections_via_symbols
