	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_stats
_get_stats:                             ## @get_stats
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	20(%rbx), %edi
	callq	_rav1e_twopass_out
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %edi
	callq	_AV_BASE64_SIZE
	movq	%rax, %r15
	movq	8(%rbx), %rdi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_av_malloc
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	leaq	8(%rbx), %r12
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_av_base64_encode
	movq	%r12, %rdi
	callq	_av_freep
	jmp	LBB0_6
LBB0_2:
	movq	8(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movl	(%r14), %edx
	addl	(%rbx), %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_memcpy
	movl	(%r14), %eax
	addl	%eax, (%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	_rav1e_data_unref
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_rav1e_data_unref
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_stats
_get_stats:                             ; @get_stats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x23, #20]
	bl	_rav1e_twopass_out
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	cbz	w21, LBB0_4
; %bb.2:
	ldr	w0, [x23]
	bl	_AV_BASE64_SIZE
	mov	x22, x0
	mov	x21, x23
	ldr	x0, [x21, #8]!
	ldp	w2, w1, [x19]
	bl	_memcpy
	mov	x0, x22
	bl	_av_malloc
	str	w0, [x20]
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x2, [x23, #8]
	ldr	w3, [x23]
	mov	x1, x22
	bl	_av_base64_encode
	mov	x0, x21
	bl	_av_freep
	b	LBB0_6
LBB0_4:
	ldr	x0, [x23, #8]
	add	x1, x23, #16
	ldr	w8, [x23]
	ldr	w9, [x19]
	add	w2, w9, w8
	bl	_av_fast_realloc
	cbz	x0, LBB0_8
; %bb.5:
	str	x0, [x23, #8]
	ldrsw	x8, [x23]
	add	x0, x0, x8, lsl #2
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldr	w8, [x19]
	ldr	w9, [x23]
	add	w8, w9, w8
	str	w8, [x23]
LBB0_6:
	mov	x0, x19
	bl	_rav1e_data_unref
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_rav1e_data_unref
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_stats
.subsections_via_symbols
