	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_out_samples
_get_out_samples:                       ## @get_out_samples
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	24(%rdi), %rbx
	movl	(%rdi), %ecx
	movl	16(%rdi), %eax
	addl	%ecx, %esi
	addl	$2, %esi
	movl	(%rbx), %edx
	imull	%edx, %esi
	subl	24(%rbx), %esi
	imull	8(%rdi), %edx
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_av_rescale_rnd
	movl	%eax, %edi
	addl	$2, %edi
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jle	LBB0_2
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%edi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %eax
	imull	%edi, %eax
	decl	%eax
	cltd
	idivl	8(%rbx)
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_out_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_out_samples
_get_out_samples:                       ; @get_out_samples
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #24]
	ldr	w8, [x0]
	add	w8, w1, w8
	add	w8, w8, #2
	ldr	w9, [x19]
	ldr	w10, [x19, #24]
	neg	w10, w10
	madd	w8, w8, w9, w10
	ldr	w1, [x0, #16]
	ldr	w10, [x0, #8]
	mul	w2, w9, w10
Lloh0:
	adrp	x9, _AV_ROUND_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_ROUND_UP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x8
	bl	_av_rescale_rnd
	add	w0, w0, #2
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldp	w8, w9, [x19, #4]
	mul	w8, w8, w0
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	add	w1, w8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FFMAX
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_out_samples
.subsections_via_symbols
