	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_audio_generate_mix_table   ## -- Begin function dsp_audio_generate_mix_table
	.p2align	4, 0x90
_dsp_audio_generate_mix_table:          ## @dsp_audio_generate_mix_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_dsp_audio_law_to_s32@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_dsp_audio_s16_to_law@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_dsp_audio_mix_law@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	xorl	%r11d, %r11d
	movl	$32767, %r8d                    ## imm = 0x7FFF
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r11
	cmpq	$256, %r11                      ## imm = 0x100
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%r11d, %esi
	shll	$8, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movzwl	%dx, %edx
	movl	(%r9,%rdx,4), %edx
	movl	%esi, %edi
	orl	%ecx, %edi
	movslq	%edi, %rdi
	movl	%edx, (%r10,%rdi,4)
	incq	%rcx
	cmpq	$256, %rcx                      ## imm = 0x100
	je	LBB0_5
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rcx,4), %edx
	addl	(%rax,%r11,4), %edx
	cmpl	$32767, %edx                    ## imm = 0x7FFF
	cmovgel	%r8d, %edx
	cmpl	$-32767, %edx                   ## imm = 0x8001
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	$-32768, %edx                   ## imm = 0x8000
	jmp	LBB0_4
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsp_audio_law_to_s32,8,3       ## @dsp_audio_law_to_s32
	.comm	_dsp_audio_s16_to_law,8,3       ## @dsp_audio_s16_to_law
	.comm	_dsp_audio_mix_law,8,3          ## @dsp_audio_mix_law
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_audio_generate_mix_table   ; -- Begin function dsp_audio_generate_mix_table
	.p2align	2
_dsp_audio_generate_mix_table:          ; @dsp_audio_generate_mix_table
	.cfi_startproc
; %bb.0:
	mov	x8, #0
Lloh0:
	adrp	x9, _dsp_audio_law_to_s32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dsp_audio_law_to_s32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _dsp_audio_s16_to_law@GOTPAGE
Lloh4:
	ldr	x10, [x10, _dsp_audio_s16_to_law@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _dsp_audio_mix_law@GOTPAGE
Lloh7:
	ldr	x11, [x11, _dsp_audio_mix_law@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	mov	w12, #32767
	mov	w13, #-32768
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x14, #0
	lsl	w15, w8, #8
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x9, x8, lsl #2]
	ldr	w17, [x9, x14, lsl #2]
	add	w16, w17, w16
	cmp	w16, w12
	csel	w16, w16, w12, lt
	cmn	w16, #8, lsl #12                ; =32768
	csel	w16, w16, w13, gt
	and	w16, w16, #0xffff
	ldr	w16, [x10, w16, uxtw #2]
	orr	w17, w15, w14
	str	w16, [x11, w17, sxtw #2]
	add	x14, x14, #1
	cmp	x14, #256
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x8, #256
	b.ne	LBB0_1
; %bb.4:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dsp_audio_law_to_s32,8,3       ; @dsp_audio_law_to_s32
	.comm	_dsp_audio_s16_to_law,8,3       ; @dsp_audio_s16_to_law
	.comm	_dsp_audio_mix_law,8,3          ; @dsp_audio_mix_law
.subsections_via_symbols
