	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_setup_audio_fs_tables
_tegra_hdmi_setup_audio_fs_tables:      ## @tegra_hdmi_setup_audio_fs_tables
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movups	l___const.tegra_hdmi_setup_audio_fs_tables.freqs+12(%rip), %xmm0
	movups	%xmm0, -68(%rbp)
	movaps	l___const.tegra_hdmi_setup_audio_fs_tables.freqs(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%r12,4), %ecx
	xorl	%eax, %eax
	cmpl	$48001, %ecx                    ## imm = 0xBB81
	setb	%al
	cmpl	$96001, %ecx                    ## imm = 0x17701
	leal	6(%rax,%rax,2), %ebx
	movl	$2, %eax
	cmovael	%eax, %ebx
	movq	_HDMI_AUDIOCLK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	shll	$7, %ecx
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r13d
	movl	%eax, %edi
	subl	%ebx, %edi
	callq	_AUDIO_FS_LOW
	movl	%eax, %r15d
	addl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_AUDIO_FS_HIGH
	orl	%eax, %r15d
	movl	%r12d, %edi
	callq	_HDMI_NV_PDISP_AUDIO_FS
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_tegra_hdmi_writel
	incq	%r12
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.tegra_hdmi_setup_audio_fs_tables.freqs
l___const.tegra_hdmi_setup_audio_fs_tables.freqs:
	.long	32000                           ## 0x7d00
	.long	44100                           ## 0xac44
	.long	48000                           ## 0xbb80
	.long	88200                           ## 0x15888
	.long	96000                           ## 0x17700
	.long	176400                          ## 0x2b110
	.long	192000                          ## 0x2ee00

	.comm	_HDMI_AUDIOCLK_FREQ,4,2         ## @HDMI_AUDIOCLK_FREQ
	.no_dead_strip	_tegra_hdmi_setup_audio_fs_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hdmi_setup_audio_fs_tables
_tegra_hdmi_setup_audio_fs_tables:      ; @tegra_hdmi_setup_audio_fs_tables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.tegra_hdmi_setup_audio_fs_tables.freqs@PAGE
Lloh4:
	add	x8, x8, l___const.tegra_hdmi_setup_audio_fs_tables.freqs@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldur	q0, [x8, #12]
	stur	q0, [sp, #12]
	mov	x21, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, #0
	mov	w24, #9
	mov	w25, #6
	mov	w26, #30464
	movk	w26, #1, lsl #16
	mov	w27, #2
Lloh5:
	adrp	x28, _HDMI_AUDIOCLK_FREQ@GOTPAGE
Lloh6:
	ldr	x28, [x28, _HDMI_AUDIOCLK_FREQ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, x20, lsl #2]
	mov	w9, #48000
	cmp	w8, w9
	csel	w9, w25, w24, hi
	cmp	w8, w26
	csel	w22, w27, w9, hi
	ldr	w9, [x28]
	lsl	w9, w9, #3
	lsl	w8, w8, #7
	udiv	w23, w9, w8
	sub	w0, w23, w22
	bl	_AUDIO_FS_LOW
	mov	x21, x0
	add	w0, w22, w23
	bl	_AUDIO_FS_HIGH
	orr	w21, w0, w21
	mov	x0, x20
	bl	_HDMI_NV_PDISP_AUDIO_FS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x21, sp
	bl	_tegra_hdmi_writel
	add	x20, x20, #1
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	x20, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [sp, #40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.tegra_hdmi_setup_audio_fs_tables.freqs
l___const.tegra_hdmi_setup_audio_fs_tables.freqs:
	.long	32000                           ; 0x7d00
	.long	44100                           ; 0xac44
	.long	48000                           ; 0xbb80
	.long	88200                           ; 0x15888
	.long	96000                           ; 0x17700
	.long	176400                          ; 0x2b110
	.long	192000                          ; 0x2ee00

	.comm	_HDMI_AUDIOCLK_FREQ,4,2         ; @HDMI_AUDIOCLK_FREQ
	.no_dead_strip	_tegra_hdmi_setup_audio_fs_tables
.subsections_via_symbols
