	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_audio_generate_s2law_table ## -- Begin function dsp_audio_generate_s2law_table
	.p2align	4, 0x90
_dsp_audio_generate_s2law_table:        ## @dsp_audio_generate_s2law_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_dsp_options@GOTPCREL(%rip), %rax
	movq	_DSP_OPT_ULAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movl	$-32768, %ebx                   ## imm = 0x8000
	movq	_dsp_audio_s16_to_law@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_linear2ulaw
	movl	%eax, %edi
	callq	_bitrev8
	movq	(%r14), %rcx
	movzwl	%bx, %edx
	movl	%eax, (%rcx,%rdx,4)
	incl	%ebx
	cmpl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	$-32768, %ebx                   ## imm = 0x8000
	movq	_dsp_audio_s16_to_law@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_linear2alaw
	movl	%eax, %edi
	callq	_bitrev8
	movq	(%r14), %rcx
	movzwl	%bx, %edx
	movl	%eax, (%rcx,%rdx,4)
	incl	%ebx
	cmpl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsp_options,4,2                ## @dsp_options
	.comm	_DSP_OPT_ULAW,4,2               ## @DSP_OPT_ULAW
	.comm	_dsp_audio_s16_to_law,8,3       ## @dsp_audio_s16_to_law
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_audio_generate_s2law_table ; -- Begin function dsp_audio_generate_s2law_table
	.p2align	2
_dsp_audio_generate_s2law_table:        ; @dsp_audio_generate_s2law_table
	.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
Lloh0:
	adrp	x8, _dsp_options@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsp_options@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DSP_OPT_ULAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSP_OPT_ULAW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w19, #-32768
Lloh6:
	adrp	x20, _dsp_audio_s16_to_law@GOTPAGE
Lloh7:
	ldr	x20, [x20, _dsp_audio_s16_to_law@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_linear2ulaw
	bl	_bitrev8
	ldr	x8, [x20]
	and	w9, w19, #0xffff
	str	w0, [x8, w9, uxtw #2]
	add	w19, w19, #1
	cmp	w19, #8, lsl #12                ; =32768
	b.ne	LBB0_1
	b	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_linear2alaw
	bl	_bitrev8
	ldr	x8, [x20]
	and	w9, w19, #0xffff
	str	w0, [x8, w9, uxtw #2]
	add	w19, w19, #1
	cmp	w19, #8, lsl #12                ; =32768
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dsp_options,4,2                ; @dsp_options
	.comm	_DSP_OPT_ULAW,4,2               ; @DSP_OPT_ULAW
	.comm	_dsp_audio_s16_to_law,8,3       ; @dsp_audio_s16_to_law
.subsections_via_symbols
