	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linear2alaw
_linear2alaw:                           ## @linear2alaw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AMI_MASK@GOTPCREL(%rip), %rax
	movl	%edi, %edx
	negw	%dx
	cmovsw	%di, %dx
	movl	(%rax), %ecx
	movzwl	%dx, %eax
	xorl	%edx, %edx
	cmpl	$256, %eax                      ## imm = 0x100
	jb	LBB0_8
## %bb.1:
	movl	$1, %edx
	cmpl	$512, %eax                      ## imm = 0x200
	jb	LBB0_8
## %bb.2:
	movl	$2, %edx
	cmpl	$1024, %eax                     ## imm = 0x400
	jb	LBB0_8
## %bb.3:
	movl	$3, %edx
	cmpl	$2048, %eax                     ## imm = 0x800
	jb	LBB0_8
## %bb.4:
	movl	$4, %edx
	cmpl	$4096, %eax                     ## imm = 0x1000
	jb	LBB0_8
## %bb.5:
	movl	$5, %edx
	cmpl	$8192, %eax                     ## imm = 0x2000
	jb	LBB0_8
## %bb.6:
	movl	$6, %edx
	cmpl	$16384, %eax                    ## imm = 0x4000
	jb	LBB0_8
## %bb.7:
	movl	%eax, %edx
	shrl	$15, %edx
	addl	$7, %edx
LBB0_8:
	movl	%ecx, %esi
	orl	$128, %esi
	testw	%di, %di
	cmovsl	%ecx, %esi
	movl	%edx, %edi
	shll	$4, %edi
	addb	$3, %dl
	cmpl	$256, %eax                      ## imm = 0x100
	movzbl	%dl, %edx
	movl	$4, %ecx
	cmovael	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	andl	$15, %eax
	orl	%edi, %eax
	xorl	%esi, %eax
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMI_MASK,4,2                   ## @AMI_MASK
	.no_dead_strip	_linear2alaw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linear2alaw
_linear2alaw:                           ; @linear2alaw
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AMI_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMI_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w0, #0
	cneg	w10, w0, mi
	and	w8, w10, #0xffff
	cmp	w8, #256
	b.lo	LBB0_2
; %bb.1:
	mov	w11, #1
	mov	w12, #2
	mov	w13, #3
	mov	w14, #4
	mov	w15, #5
	mov	w16, #6
	sxth	w10, w10
	cmp	w10, #0
	mov	w10, #7
	cinc	w10, w10, lt
	cmp	w8, #4, lsl #12                 ; =16384
	csel	w10, w16, w10, lo
	cmp	w8, #2, lsl #12                 ; =8192
	csel	w10, w15, w10, lo
	cmp	w8, #1, lsl #12                 ; =4096
	csel	w10, w14, w10, lo
	cmp	w8, #2048
	csel	w10, w13, w10, lo
	cmp	w8, #1024
	csel	w10, w12, w10, lo
	cmp	w8, #512
	csel	w10, w11, w10, lo
	b	LBB0_3
LBB0_2:
	mov	w10, #0
LBB0_3:
	orr	w11, w9, #0x80
	cmp	w0, #0
	csel	w9, w9, w11, lt
	add	w11, w10, #3
	mov	w12, #4
	cmp	w8, #255
	csel	w11, w11, w12, hi
	lsr	w8, w8, w11
	bfi	w8, w10, #4, #28
	eor	w8, w8, w9
	and	w0, w8, #0xff
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMI_MASK,4,2                   ; @AMI_MASK
	.no_dead_strip	_linear2alaw
.subsections_via_symbols
