	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_ddc_recalc_rate
_sun4i_ddc_recalc_rate:                 ## @sun4i_ddc_recalc_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_hw_to_ddc
	movq	%rax, %rbx
	movl	16(%rax), %edi
	leaq	-20(%rbp), %rsi
	callq	_regmap_field_read
	movl	-20(%rbp), %ecx
	movl	%ecx, %esi
	shrl	$3, %esi
	andl	$15, %esi
	andl	$7, %ecx
	movq	(%rbx), %rdi
	movq	%r14, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movabsq	$-3689348814741910323, %rdx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$3, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rax
	addq	8(%rbx), %rsi
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sun4i_ddc_recalc_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_ddc_recalc_rate
_sun4i_ddc_recalc_rate:                 ; @sun4i_ddc_recalc_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_hw_to_ddc
	mov	x20, x0
	ldr	w0, [x0, #16]
	add	x1, sp, #12
	bl	_regmap_field_read
	ldr	w8, [sp, #12]
	ubfx	x9, x8, #3, #4
	and	x8, x8, #0x7
	ldp	x10, x11, [x20]
	udiv	x10, x19, x10
	mov	x12, #-3689348814741910324
	movk	x12, #52429
	umulh	x10, x10, x12
	lsr	x10, x10, #3
	lsr	x8, x10, x8
	add	x9, x11, x9
	udiv	x0, x8, x9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sun4i_ddc_recalc_rate
.subsections_via_symbols
