	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linear2ulaw
_linear2ulaw:                           ## @linear2ulaw
	.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	_BIAS@GOTPCREL(%rip), %rax
	movl	%edi, %r14d
	notl	%r14d
	shrl	$24, %r14d
	orl	$127, %r14d
	movl	%edi, %ecx
	negl	%ecx
	cmovsl	%edi, %ecx
	addl	(%rax), %ecx
	cmpl	$32767, %ecx                    ## imm = 0x7FFF
	movl	$32767, %ebx                    ## imm = 0x7FFF
	cmovll	%ecx, %ebx
	movl	%ebx, %edi
	callq	_val_seg
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	shll	$4, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$15, %ebx
	orl	%eax, %ebx
	xorl	%r14d, %ebx
	movzbl	%bl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIAS,4,2                       ## @BIAS
	.no_dead_strip	_linear2ulaw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linear2ulaw
_linear2ulaw:                           ; @linear2ulaw
	.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, _BIAS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIAS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #255
	mov	w10, #127
	cmp	w0, #0
	csel	w20, w10, w9, lt
	cneg	w9, w0, mi
	mov	w10, #32767
	add	w8, w8, w9
	cmp	w8, w10
	csel	w19, w8, w10, lt
	mov	x0, x19
	bl	_val_seg
	add	w8, w0, #3
	asr	w8, w19, w8
	bfi	w8, w0, #4, #28
	eor	w8, w8, w20
	and	w0, w8, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BIAS,4,2                       ; @BIAS
	.no_dead_strip	_linear2ulaw
.subsections_via_symbols
