	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function vorbis_encode_setup_managed
LCPI0_0:
	.quad	0x3fec000000000000              ## double 0.875
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vorbis_encode_setup_managed
	.p2align	4, 0x90
_vorbis_encode_setup_managed:           ## @vorbis_encode_setup_managed
	.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
	movq	%r8, %r15
	movq	(%rdi), %r12
	movq	%r8, %rbx
	testq	%r8, %r8
	jg	LBB0_8
## %bb.1:
	testq	%rcx, %rcx
	jle	LBB0_4
## %bb.2:
	testq	%r9, %r9
	jle	LBB0_6
## %bb.3:
	leaq	(%r9,%rcx), %rax
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	jmp	LBB0_7
LBB0_4:
	movq	%r9, %rbx
	testq	%r9, %r9
	jg	LBB0_8
## %bb.5:
	movq	_OV_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cvtsi2sd	%rcx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
LBB0_7:
	cvttsd2si	%xmm0, %rbx
LBB0_8:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rbx, (%r12)
	leaq	68(%r12), %r8
	movq	%rsi, %rdi
	movq	%rsi, %r14
	movq	%rdx, %rsi
	movq	%rdx, %r13
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_get_setup_template
	movl	%eax, 64(%r12)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_vorbis_encode_setup_setting
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 32(%r12)
	movl	$1069547520, 40(%r12)           ## imm = 0x3FC00000
	addq	%rbx, %rbx
	movq	%rbx, 48(%r12)
	movabsq	$4591870180066957722, %rax      ## imm = 0x3FB999999999999A
	movq	%rax, 56(%r12)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_OV_EIMPL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_EINVAL,4,2                  ## @OV_EINVAL
	.comm	_OV_EIMPL,4,2                   ## @OV_EIMPL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_encode_setup_managed    ; -- Begin function vorbis_encode_setup_managed
	.p2align	2
_vorbis_encode_setup_managed:           ; @vorbis_encode_setup_managed
	.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	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x26, [x0]
	mov	x25, x4
	cmp	x4, #0
	b.gt	LBB0_8
; %bb.1:
	cmp	x20, #1
	b.lt	LBB0_4
; %bb.2:
	cmp	x19, #1
	b.lt	LBB0_6
; %bb.3:
	add	x8, x19, x20
	scvtf	d0, x8
	fmov	d1, #0.50000000
	b	LBB0_7
LBB0_4:
	mov	x25, x19
	cmp	x19, #0
	b.gt	LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _OV_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV_EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	scvtf	d0, x20
	fmov	d1, #0.87500000
LBB0_7:
	fmul	d0, d0, d1
	fcvtzs	x25, d0
LBB0_8:
	str	x25, [x26]
	add	x4, x26, #68
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	w3, #1
	bl	_get_setup_template
	str	w0, [x26, #64]
	cbz	w0, LBB0_10
; %bb.9:
	scvtf	d8, x23
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_vorbis_encode_setup_setting
	mov	w0, #0
	movi.2s	v0, #1
	str	d0, [x26, #8]
	stp	x19, x20, [x26, #16]
	str	d8, [x26, #32]
	mov	w8, #1069547520
	str	w8, [x26, #40]
	lsl	x8, x25, #1
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16313, lsl #48
	stp	x8, x9, [x26, #48]
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _OV_EIMPL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OV_EIMPL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EINVAL,4,2                  ; @OV_EINVAL
	.comm	_OV_EIMPL,4,2                   ; @OV_EIMPL
.subsections_via_symbols
