	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_get_audio_config
_tegra_hdmi_get_audio_config:           ## @tegra_hdmi_get_audio_config
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %ebx
	shll	$7, %ebx
	imulq	$91625969, %rbx, %r15           ## imm = 0x57619F1
	shrq	$37, %r15
	imulq	$458129845, %rbx, %r13          ## imm = 0x1B4E81B5
	shrq	$37, %r13
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	xorl	%ecx, %ecx
	movq	%r13, %rax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, (%r12)
	cmpl	%eax, %r15d
	ja	LBB0_8
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %rbx, %rcx          ## imm = 0x10624DD3
	shrq	$38, %rcx
	movl	%r14d, %edx
	shll	$16, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	incl	%eax
	negl	%ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	imull	%r15d, %r14d
	shll	$16, %r14d
	imull	$905969664, %r15d, %r13d        ## imm = 0x36000000
	movl	%r13d, %esi
	shrl	$16, %esi
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r14,%rbx,2), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, (%rdx)
	sarl	$16, %ecx
	movl	%ecx, 4(%rdx)
	movl	%esi, 8(%rdx)
	movl	%r12d, %ecx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	addl	$13824, %esi                    ## imm = 0x3600
	addl	$905969664, %r13d               ## imm = 0x36000000
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r15d, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_do_div
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_do_div
	movl	$15, %edi
	callq	_BIT
	movl	%eax, %ebx
	andl	%r14d, %ebx
	leal	(%rbx,%rbx), %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %edi
	callq	_abs
	movq	%rax, %r12
	negl	%r14d
	movl	%r14d, %edi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	callq	_abs
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	ja	LBB0_5
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$-1, (%rcx)
	movl	$0, %ecx
	jne	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_hdmi_get_audio_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hdmi_get_audio_config
_tegra_hdmi_get_audio_config:           ; @tegra_hdmi_get_audio_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	lsl	w20, w0, #7
	mov	w8, #6641
	movk	w8, #1398, lsl #16
	umull	x8, w20, w8
	lsr	x24, x8, #37
	mov	w8, #33205
	movk	w8, #6990, lsl #16
	umull	x8, w20, w8
	lsr	x22, x8, #37
	mov	x0, x2
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	w8, #-1
	str	w8, [x19]
	cmp	w24, w22
	b.hi	LBB0_8
; %bb.1:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x8, x8, #38
	lsl	w10, w21, #16
	add	w9, w22, #1
	stp	w9, w10, [sp, #8]               ; 8-byte Folded Spill
	neg	w8, w8
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mul	w8, w21, w24
	lsl	w21, w8, #16
	mov	w8, #905969664
	mul	w22, w24, w8
	lsr	w28, w22, #16
	mov	w25, #-1
	mov	w26, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w21, w27
	asr	w8, w8, #16
	stp	w24, w8, [x19]
	str	w28, [x19, #8]
	mov	x26, x23
	mov	x25, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w21, w21, w8
	mov	w8, #13824
	add	w28, w28, w8
	mov	w8, #905969664
	add	w22, w22, w8
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, w24
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_do_div
	mov	x0, x21
	mov	x1, x20
	bl	_do_div
	mov	w0, #15
	bl	_BIT
	and	w8, w0, w21
	lsl	w27, w8, #1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w0, w8, w24
	bl	_abs
	mov	x23, x0
	neg	w0, w27
	bl	_abs
	cmp	w25, w0
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ccmp	w26, w23, #0, eq
	b.hi	LBB0_2
	b	LBB0_3
LBB0_6:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_hdmi_get_audio_config
.subsections_via_symbols
