	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_get_adiv
_tda998x_get_adiv:                      ## @tda998x_get_adiv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %r9d
	movl	%esi, %r8d
	shll	$7, %r8d
	movslq	(%rdi), %rax
	imulq	$1000, %rax, %rdx               ## imm = 0x3E8
	movq	_AUDIO_DIV_SERCLK_32@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AUDIO_DIV_SERCLK_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	movq	%r8, %rax
	shlq	%cl, %rax
	leal	-1(%rcx), %ebx
	cmpl	%ecx, %esi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rax
	jae	LBB0_1
LBB0_3:
	movq	8(%rdi), %rdi
	incl	%ebx
	leaq	L_.str(%rip), %rsi
	movl	%r9d, %ecx
	movl	%ebx, %r9d
	callq	_dev_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_DIV_SERCLK_32,4,2        ## @AUDIO_DIV_SERCLK_32
	.comm	_AUDIO_DIV_SERCLK_1,4,2         ## @AUDIO_DIV_SERCLK_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ser_clk=%luHz fs=%uHz min_aclk=%luHz adiv=%d\n"

	.no_dead_strip	_tda998x_get_adiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_get_adiv
_tda998x_get_adiv:                      ; @tda998x_get_adiv
	.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	x3, x1
	lsl	w4, w1, #7
	ldrsw	x8, [x0]
	mov	w9, #1000
	mul	x2, x8, x9
Lloh0:
	adrp	x8, _AUDIO_DIV_SERCLK_32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_DIV_SERCLK_32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _AUDIO_DIV_SERCLK_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUDIO_DIV_SERCLK_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #1
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	x11, x4, x9
	mov	x9, x10
	cmp	x11, x2
	b.hs	LBB0_1
LBB0_3:
	ldr	x0, [x0, #8]
	add	w19, w10, #1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, x19
	bl	_dev_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_DIV_SERCLK_32,4,2        ; @AUDIO_DIV_SERCLK_32
	.comm	_AUDIO_DIV_SERCLK_1,4,2         ; @AUDIO_DIV_SERCLK_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ser_clk=%luHz fs=%uHz min_aclk=%luHz adiv=%d\n"

	.no_dead_strip	_tda998x_get_adiv
.subsections_via_symbols
