	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_nand_calc_rate
_s3c_nand_calc_rate:                    ## @s3c_nand_calc_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	%r14d, %edi
	imull	%r15d, %edi
	movq	_NS_IN_KHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_pr_debug
	cmpl	%r12d, %ebx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_printk
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_2:
	cmpl	$2, %ebx
	movl	$1, %eax
	cmovgel	%ebx, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_IN_KHZ,4,2                  ## @NS_IN_KHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"result %d from %ld, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d ns is too big for current clock rate %ld\n"

	.no_dead_strip	_s3c_nand_calc_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_nand_calc_rate
_s3c_nand_calc_rate:                    ; @s3c_nand_calc_rate
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mul	w0, w19, w0
Lloh0:
	adrp	x8, _NS_IN_KHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NS_IN_KHZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_pr_debug
	cmp	w21, w22
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_printk
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	cmp	w21, #1
	csinc	w0, w21, wzr, gt
LBB0_3:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_IN_KHZ,4,2                  ; @NS_IN_KHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"result %d from %ld, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d ns is too big for current clock rate %ld\n"

	.no_dead_strip	_s3c_nand_calc_rate
.subsections_via_symbols
