	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Encode
_Encode:                                ## @Encode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	callq	_Flush
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	36(%r12), %edi
	callq	_hb_list_bytes
	cltq
	movslq	(%r12), %rdx
	shlq	$2, %rdx
	cmpq	%rax, %rdx
	jbe	LBB0_4
## %bb.2:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	36(%r12), %edi
	movq	24(%r12), %rsi
	leaq	32(%r12), %rcx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%r8d, %r8d
	callq	_hb_list_getbytes
	leaq	16(%r12), %r14
	movq	_OGGVORBIS_FRAME_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_vorbis_analysis_buffer
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.5:
	movl	4(%r12), %r8d
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r10
	cmpq	%rsi, %r10
	je	LBB0_12
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r10d, %edx
	imull	%r8d, %edx
	movq	8(%r12), %rcx
	movq	24(%r12), %r11
	movslq	%edx, %rdx
	xorl	%edi, %edi
	cmpl	$1, %r8d
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rcx,%rdi,4), %rbx
	addq	%rdx, %rbx
	movss	(%r11,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	(%rax,%rdi,8), %rbx
	movss	%xmm0, (%rbx,%r10,4)
	movslq	4(%rcx,%rdi,4), %rbx
	addq	%rdx, %rbx
	movss	(%r11,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	8(%rax,%rdi,8), %rbx
	movss	%xmm0, (%rbx,%r10,4)
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%rcx,%rdi,4), %rcx
	addq	%rdx, %rcx
	movss	(%r11,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	(%rax,%rdi,8), %rcx
	movss	%xmm0, (%rcx,%r10,4)
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vorbis_analysis_wrote
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Flush                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OGGVORBIS_FRAME_SIZE,4,2       ## @OGGVORBIS_FRAME_SIZE
	.no_dead_strip	_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Encode
_Encode:                                ; @Encode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0]
	bl	_Flush
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21, #36]
	bl	_hb_list_bytes
	ldrsw	x8, [x21]
	lsl	x2, x8, #2
	cmp	x2, w0, sxtw
	b.ls	LBB0_4
; %bb.2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x21, #36]
	ldr	x1, [x21, #24]
	add	x3, x21, #32
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x4, #0
	bl	_hb_list_getbytes
	add	x20, x21, #16
Lloh0:
	adrp	x22, _OGGVORBIS_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OGGVORBIS_FRAME_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_vorbis_analysis_buffer
	ldr	w1, [x22]
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x8, #0
	ldr	w9, [x21, #4]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x8, x1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x21, #24]
	mul	w11, w9, w8
	ldr	x12, [x21, #8]
	mov	x13, x9
	mov	x14, x0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x12], #4
	add	w15, w15, w11
	ldr	s0, [x10, w15, sxtw #2]
	ldr	x15, [x14], #8
	str	s0, [x15, x8, lsl #2]
	subs	x13, x13, #1
	b.ne	LBB0_9
	b	LBB0_6
LBB0_10:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_vorbis_analysis_wrote
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Flush
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OGGVORBIS_FRAME_SIZE,4,2       ; @OGGVORBIS_FRAME_SIZE
	.no_dead_strip	_Encode
.subsections_via_symbols
