	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_bf_encrypt                 ## -- Begin function dsp_bf_encrypt
	.p2align	4, 0x90
_dsp_bf_encrypt:                        ## @dsp_bf_encrypt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	16(%rdi), %r15
	movq	24(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	jmp	LBB0_2
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movslq	%r12d, %rcx
	movq	%rax, (%r14,%rcx,8)
	incl	%r12d
	movq	(%r15,%rcx,8), %rax
	movq	%rax, (%rdx)
	addq	$8, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	setl	-41(%rbp)                       ## 1-byte Folded Spill
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$8, %r12d
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_dsp_audio_law2seven@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movl	(%rcx,%rax,4), %esi
	movl	(%rcx,%rdx,4), %edx
	shll	$14, %esi
	shll	$7, %edx
	orl	%esi, %edx
	movq	16(%r14), %rsi
	orl	(%rcx,%rsi,4), %edx
	movq	24(%r14), %rsi
	movl	(%rcx,%rsi,4), %esi
	movq	32(%r14), %rdi
	movl	(%rcx,%rdi,4), %edi
	shll	$11, %edx
	shll	$4, %esi
	movl	%edi, %ebx
	sarl	$3, %ebx
	orl	%esi, %ebx
	orl	%edx, %ebx
	movq	40(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	shll	$14, %edi
	shll	$7, %edx
	orl	%edi, %edx
	movq	48(%r14), %rsi
	orl	(%rcx,%rsi,4), %edx
	movq	56(%r14), %rsi
	movl	(%rcx,%rsi,4), %esi
	shll	$14, %edx
	shll	$7, %esi
	orl	%edx, %esi
	movq	64(%r14), %rdx
	orl	(%rcx,%rdx,4), %esi
	andl	$1, %eax
	leal	(%rax,%rsi,2), %r13d
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$2, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$3, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$5, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$6, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$7, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$9, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$10, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$11, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$12, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$13, %edx
	callq	_EROUND
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$14, %edx
	callq	_EROUND
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$15, %edx
	callq	_EROUND
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	xorl	64(%rax), %ebx
	xorl	68(%rax), %r13d
	movl	%ebx, %eax
	sarl	$3, %eax
	xorl	%ebx, %eax
	movl	%ebx, %ecx
	sarl	$6, %ecx
	movl	%ebx, %edx
	sarl	$9, %edx
	xorl	%ecx, %edx
	xorl	%eax, %edx
	movl	%ebx, %eax
	sarl	$12, %eax
	movl	%ebx, %ecx
	sarl	$15, %ecx
	xorl	%eax, %ecx
	movl	%ebx, %eax
	sarl	$18, %eax
	xorl	%eax, %ecx
	xorl	%edx, %ecx
	movl	%ebx, %edx
	sarl	$21, %edx
	movl	%ebx, %esi
	sarl	$24, %esi
	xorl	%edx, %esi
	movl	%ebx, %edx
	sarl	$27, %edx
	xorl	%esi, %edx
	movl	%ebx, %esi
	sarl	$30, %esi
	xorl	%edx, %esi
	xorl	%ecx, %esi
	leal	(,%r13,4), %ecx
	xorl	%esi, %ecx
	movl	%r13d, %edx
	sarl	%edx
	movl	%r13d, %esi
	sarl	$4, %esi
	xorl	%edx, %esi
	xorl	%ecx, %esi
	movl	%r13d, %ecx
	sarl	$7, %ecx
	movl	%r13d, %edx
	sarl	$10, %edx
	xorl	%ecx, %edx
	movl	%r13d, %ecx
	sarl	$13, %ecx
	xorl	%edx, %ecx
	xorl	%esi, %ecx
	movl	%r13d, %edx
	sarl	$16, %edx
	movl	%r13d, %esi
	sarl	$19, %esi
	xorl	%edx, %esi
	movl	%r13d, %edx
	sarl	$22, %edx
	xorl	%edx, %esi
	movl	%r13d, %edi
	sarl	$25, %edi
	xorl	%esi, %edi
	xorl	%ecx, %edi
	movl	%r13d, %esi
	sarl	$28, %esi
	movl	%r13d, %ecx
	sarl	$31, %ecx
	xorl	%esi, %ecx
	xorl	%edi, %ecx
	movl	%ebx, %esi
	sarl	$25, %esi
	orl	$128, %esi
	movslq	%esi, %rsi
	movq	%rsi, (%r15)
	andl	$127, %eax
	movq	%rax, 8(%r15)
	movl	%ebx, %eax
	shrl	$11, %eax
	andl	$127, %eax
	movq	%rax, 16(%r15)
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$127, %eax
	movq	%rax, 24(%r15)
	shldl	$3, %r13d, %ebx
	andl	$127, %ebx
	movq	%rbx, 32(%r15)
	andl	$127, %edx
	movl	%ecx, %eax
	andl	$4, %eax
	shll	$5, %eax
	orl	%edx, %eax
	movq	%rax, 40(%r15)
	movl	%r13d, %eax
	shrl	$15, %eax
	andl	$127, %eax
	movl	%ecx, %edx
	andl	$2, %edx
	shll	$6, %edx
	orl	%eax, %edx
	movq	%rdx, 48(%r15)
	movslq	%r13d, %rax
	shrl	$8, %r13d
	andl	$127, %r13d
	shll	$7, %ecx
	orl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 56(%r15)
	movq	%rax, 64(%r15)
	testb	$1, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_2
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsp_audio_law2seven,8,3        ## @dsp_audio_law2seven
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dsp_bf_encrypt
lCPI0_0:
	.long	4294967285                      ; 0xfffffff5
	.long	4294967292                      ; 0xfffffffc
lCPI0_1:
	.long	4294967274                      ; 0xffffffea
	.long	4294967281                      ; 0xfffffff1
lCPI0_2:
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dsp_bf_encrypt
	.p2align	2
_dsp_bf_encrypt:                        ; @dsp_bf_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x19, x0
	ldr	w8, [x0]
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	w24, #0
	ldp	x25, x26, [x19, #8]
	ldr	x27, [x19, #24]
	mov	w20, #1
Lloh0:
	adrp	x28, _dsp_audio_law2seven@GOTPAGE
Lloh1:
	ldr	x28, [x28, _dsp_audio_law2seven@GOTPAGEOFF]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	movi.2s	v9, #127
Lloh4:
	adrp	x9, lCPI0_1@PAGE
Lloh5:
	ldr	d10, [x9, lCPI0_1@PAGEOFF]
	movi.2s	v11, #128
Lloh6:
	adrp	x9, lCPI0_2@PAGE
Lloh7:
	ldr	d12, [x9, lCPI0_2@PAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	sbfiz	x10, x8, #3, #32
	str	x9, [x25, x10]
	add	w8, w8, #1
	ldr	x9, [x26, x10]
	str	x9, [x21], #8
	add	w24, w24, #1
	mov	x9, x8
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w24, w10
	cset	w20, lt
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #8
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	ldp	x22, x9, [x25]
	ldr	w10, [x8, x22, lsl #2]
	ldr	w9, [x8, x9, lsl #2]
	lsl	w9, w9, #7
	orr	w9, w9, w10, lsl #14
	ldp	x10, x11, [x25, #16]
	ldr	w10, [x8, x10, lsl #2]
	orr	w9, w9, w10
	ldr	w10, [x8, x11, lsl #2]
	ldp	x11, x12, [x25, #32]
	ldr	w11, [x8, x11, lsl #2]
	lsl	w10, w10, #4
	orr	w9, w10, w9, lsl #11
	orr	w23, w9, w11, asr #3
	ldr	w9, [x8, x12, lsl #2]
	lsl	w9, w9, #7
	orr	w9, w9, w11, lsl #14
	ldp	x10, x11, [x25, #48]
	ldr	w10, [x8, x10, lsl #2]
	orr	w9, w9, w10
	ldr	w10, [x8, x11, lsl #2]
	lsl	w10, w10, #7
	orr	w9, w10, w9, lsl #14
	ldr	x10, [x25, #64]
	ldr	w8, [x8, x10, lsl #2]
	orr	w8, w9, w8
	bfi	w22, w8, #1, #31
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #1
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #2
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #3
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #4
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #5
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #6
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #7
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #8
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #9
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #10
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #11
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #12
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #13
	bl	_EROUND
	mov	x0, x22
	mov	x1, x23
	mov	w2, #14
	bl	_EROUND
	mov	x0, x23
	mov	x1, x22
	mov	w2, #15
	bl	_EROUND
	mov	w8, #0
	mov	w9, #0
	ldp	w10, w11, [x27, #64]
	eor	w12, w10, w23
	eor	w10, w11, w22
	eor	w11, w12, w12, asr #3
	eor	w11, w11, w12, asr #6
	eor	w11, w11, w12, asr #9
	eor	w11, w11, w12, asr #12
	eor	w11, w11, w12, asr #15
	asr	w13, w12, #18
	eor	w11, w11, w13
	eor	w11, w11, w12, asr #21
	eor	w11, w11, w12, asr #24
	eor	w11, w11, w12, asr #27
	eor	w11, w11, w12, asr #30
	asr	w14, w12, #25
	orr	w14, w14, #0x80
	sxtw	x14, w14
	and	w13, w13, #0x7f
	dup.2s	v0, w12
	stp	x14, x13, [x26]
	lsr	w13, w10, #29
	bfi	w13, w12, #3, #4
	eor	w11, w11, w10, lsl #2
	eor	w11, w11, w10, asr #1
	eor	w11, w11, w10, asr #4
	eor	w11, w11, w10, asr #7
	eor	w11, w11, w10, asr #10
	eor	w11, w11, w10, asr #13
	eor	w11, w11, w10, asr #16
	eor	w11, w11, w10, asr #19
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	ushll.2d	v0, v0, #0
	str	q0, [x26, #16]
	str	x13, [x26, #32]
	dup.2s	v0, w10
	sshl.2s	v1, v0, v10
	ushl.2s	v0, v0, v10
	fmov	w12, s1
	mov.s	v1[1], v0[1]
	eor	w11, w11, w12
	eor	w11, w11, w10, asr #25
	eor	w11, w11, w10, asr #28
	eor	w11, w11, w10, asr #31
	dup.2s	v0, w11
	and.8b	v1, v1, v9
	ushl.2s	v0, v0, v12
	and.8b	v0, v0, v11
	orr.8b	v0, v0, v1
	ushll.2d	v0, v0, #0
	stur	q0, [x26, #40]
	lsr	w12, w10, #8
	bfi	w12, w11, #7, #25
	sxtw	x11, w12
	sxtw	x10, w10
	stp	x11, x10, [x26, #56]
	tbnz	w20, #0, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x9, x8
LBB0_6:
	str	w9, [x19]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dsp_audio_law2seven,8,3        ; @dsp_audio_law2seven
.subsections_via_symbols
