	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3cmci_set_clk
_s3cmci_set_clk:                        ## @s3cmci_set_clk
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %r8d
	movl	8(%rdi), %ecx
	movq	(%rsi), %r9
	leal	(%rcx,%rcx), %r10d
	xorl	%ebx, %ebx
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movslq	%eax, %rdx
	cmpq	%rdx, %r9
	jge	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$256, %edi                      ## imm = 0x100
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r11d
	movl	4(%r15), %eax
	leal	2(%r11), %ebx
	movl	8(%r15), %esi
	imull	%edi, %esi
	cltd
	idivl	%esi
	movslq	%eax, %rdx
	addl	%r10d, %ecx
	addl	$2, %edi
	cmpq	%rdx, (%r14)
	jl	LBB0_1
## %bb.4:
	orl	$1, %r11d
	jmp	LBB0_8
LBB0_5:
	addl	$-2, %edi
	jmp	LBB0_7
LBB0_6:
	decl	%edi
LBB0_7:
	movl	%edi, %r11d
LBB0_8:
	movl	%eax, (%r15)
	cmpl	$255, %r11d
	movl	$255, %edi
	cmovbl	%r11d, %edi
	movl	%edi, 12(%r15)
	movq	_S3C2410_SDIPRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	cmpq	$0, (%r14)
	jne	LBB0_10
## %bb.9:
	movl	$0, (%r15)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_SDIPRE,8,3             ## @S3C2410_SDIPRE
	.no_dead_strip	_s3cmci_set_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3cmci_set_clk
_s3cmci_set_clk:                        ; @s3cmci_set_clk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	w8, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	cmp	w8, #255
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w9, w10, [x19, #4]
	add	w8, w0, #1
	mul	w10, w10, w8
	sdiv	w9, w9, w10
	str	w9, [x19]
	ldr	x10, [x20]
	cmp	x10, w9, sxtw
	b.lt	LBB0_1
LBB0_3:
	str	w0, [x19, #12]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _S3C2410_SDIPRE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S3C2410_SDIPRE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
	str	wzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_SDIPRE,8,3             ; @S3C2410_SDIPRE
	.no_dead_strip	_s3cmci_set_clk
.subsections_via_symbols
