	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vorbis_encode_psyset_setup
_vorbis_encode_psyset_setup:            ## @vorbis_encode_psyset_setup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r14
	movq	8(%r14), %rax
	movslq	%r8d, %r15
	movq	(%rax,%r15,8), %rbx
	cmpl	%r15d, (%r14)
	jg	LBB0_2
## %bb.1:
	leal	1(%r13), %eax
	movl	%eax, (%r14)
LBB0_2:
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	movl	$24, %esi
	callq	__ogg_calloc
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
LBB0_4:
	movq	__psy_info_template@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_memcpy
	sarl	%r13d
	movl	%r13d, (%rbx)
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	cvttsd2si	-48(%rbp), %eax         ## 8-byte Folded Reload
	movl	$1, 4(%rbx)
	cltq
	movl	(%r12,%rax,4), %ecx
	movl	%ecx, 8(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 12(%rbx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, 16(%rbx)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__psy_info_template,4,2         ## @_psy_info_template
	.no_dead_strip	_vorbis_encode_psyset_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vorbis_encode_psyset_setup
_vorbis_encode_psyset_setup:            ; @vorbis_encode_psyset_setup
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	fmov	d8, d0
	ldr	x24, [x0]
	ldr	x8, [x24, #8]
	ldr	x23, [x8, w4, sxtw #3]
	ldr	w8, [x24]
	cmp	w8, w4
	b.gt	LBB0_2
; %bb.1:
	add	w8, w22, #1
	str	w8, [x24]
LBB0_2:
	cbnz	x23, LBB0_4
; %bb.3:
	sxtw	x25, w22
	mov	w0, #1
	mov	w1, #24
	bl	__ogg_calloc
	mov	x23, x0
	ldr	x8, [x24, #8]
	str	x0, [x8, x25, lsl #3]
LBB0_4:
Lloh0:
	adrp	x1, __psy_info_template@GOTPAGE
Lloh1:
	ldr	x1, [x1, __psy_info_template@GOTPAGEOFF]
	mov	x0, x23
	mov	w2, #24
	bl	_memcpy
	asr	w8, w22, #1
	str	w8, [x23]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_6
; %bb.5:
	fcvtzs	w8, d8
	mov	w9, #1
	str	w9, [x23, #4]
	sbfiz	x9, x8, #2, #32
	ldr	w10, [x21, x9]
	str	w10, [x23, #8]
	ldr	w9, [x20, x9]
	str	w9, [x23, #12]
	ldr	d0, [x19, w8, sxtw #3]
	str	d0, [x23, #16]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__psy_info_template,4,2         ; @_psy_info_template
	.no_dead_strip	_vorbis_encode_psyset_setup
.subsections_via_symbols
