	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_block_buffers
_update_block_buffers:                  ## @update_block_buffers
	.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
	movq	(%rdi), %r13
	movslq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	56(%r13), %r14
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.2:
	movq	8(%r13), %rax
	movq	48(%r13), %rcx
	movq	_CUR_FRAME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rcx,%rdx,8), %rax
	je	LBB0_19
LBB0_3:
	callq	_av_free
	movq	24(%r14), %rdi
	callq	_av_free
	movl	20(%r13), %ecx
	addl	16(%r13), %ecx
	movl	$4096, %r12d                    ## imm = 0x1000
	shrl	%cl, %r12d
	movl	$256, %r15d                     ## imm = 0x100
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r15d
	movq	48(%r13), %rax
	movq	_CUR_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.15:
	movslq	24(%r13), %rax
	movslq	28(%r13), %rbx
	imulq	%rax, %rbx
	movl	36(%r13), %edi
	imull	32(%r13), %edi
	movl	$4, %esi
	callq	_av_malloc_array
	movq	%rax, 32(%r14)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r12), %eax
	addl	$4096, %eax                     ## imm = 0x1000
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$2, %eax
	leal	(%rax,%r15,2), %edi
	addl	$256, %edi                      ## imm = 0x100
	imull	%ebx, %edi
	callq	_av_mallocz
	movq	%rax, 24(%r14)
	cmpq	$0, 32(%r14)
	je	LBB0_20
## %bb.16:
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	imull	%r15d, %edx
	imull	%ebx, %r15d
	shll	$12, %r15d
	movslq	%r15d, %rcx
	addq	%rcx, %rax
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %rax
	imull	%ebx, %edx
	movslq	%edx, %rcx
	movq	(%rax), %rdx
	addq	%rcx, %rdx
	movq	%rdx, 8(%rax)
	movq	16(%r14), %rax
	addq	8(%rax), %rcx
	movq	(%r14), %rax
	movq	%rcx, 8(%r14)
	movq	%rbx, %rdx
	shlq	$10, %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	imull	%ebx, %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_18
LBB0_4:
	movl	40(%r13), %eax
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.5:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %rcx
	movq	72(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 64(%rcx,%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_av_free
	movq	56(%r13), %rax
	movq	64(%rax,%rbx), %rdi
	callq	_av_free
	movl	40(%r13), %eax
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.11:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %eax
	leal	(%r12,%r12), %ecx
	addl	$4096, %ecx                     ## imm = 0x1000
	imull	%r15d, %ecx
	shll	$2, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rcx,%rdx,2), %ecx
	addl	$256, %ecx                      ## imm = 0x100
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	shlq	$12, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	imull	%eax, %r12d
	movslq	%r12d, %r12
	movl	%edx, %ebx
	xorl	%r15d, %r15d
	shlq	$2, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_av_malloc
	movq	56(%r13), %rcx
	movq	%rax, 32(%rcx,%r15)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_av_mallocz
	movq	56(%r13), %rcx
	movq	%rax, 24(%rcx,%r15)
	cmpq	$0, 32(%rcx,%r15)
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	16(%rcx,%r15), %rcx
	movq	%rax, (%rcx)
	movq	56(%r13), %rax
	movq	16(%rax,%r15), %rax
	movq	(%rax), %rcx
	addq	%r12, %rcx
	movq	%rcx, 8(%rax)
	movq	56(%r13), %rax
	movq	(%rax,%r15), %rcx
	movq	16(%rax,%r15), %rdx
	movq	8(%rdx), %rdx
	leaq	(%rdx,%r12), %rsi
	movq	%rsi, 8(%rax,%r15)
	leaq	1024(%rdx,%r12), %rax
	movq	%rax, (%rcx)
	movq	56(%r13), %rax
	movq	(%rax,%r15), %rax
	movq	(%rax), %rcx
	addq	%rbx, %rcx
	movq	%rcx, 8(%rax)
	incq	%r14
	movslq	40(%r13), %rax
	addq	$40, %r15
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_18:
	movq	48(%r13), %rax
	movq	_CUR_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 8(%r13)
LBB0_19:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CUR_FRAME,8,3                  ## @CUR_FRAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_update_block_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_block_buffers
_update_block_buffers:                  ; @update_block_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	ldr	x20, [x0]
	ldrsw	x23, [x20]
	ldr	x19, [x20, #56]
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x21, _CUR_FRAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CUR_FRAME@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #48]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	cmp	x8, x9
	b.eq	LBB0_18
LBB0_3:
	bl	_av_free
	ldr	x0, [x19, #24]
	bl	_av_free
	ldp	w8, w9, [x20, #16]
	add	w8, w9, w8
	mov	w9, #4096
	lsr	w24, w9, w8
	mov	w9, #256
	lsr	w22, w9, w8
	ldr	x8, [x20, #48]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	ldp	w8, w9, [x20, #24]
	mul	w25, w9, w8
	ldp	w8, w9, [x20, #32]
	mul	w0, w9, w8
	mov	w1, #4
	bl	_av_malloc_array
	str	x0, [x19, #32]
	lsl	w8, w24, #1
	add	w8, w8, #1, lsl #12             ; =4096
	mul	w8, w23, w8
	lsl	w9, w22, #1
	add	w8, w9, w8, lsl #2
	add	w8, w8, #256
	mul	w0, w25, w8
	bl	_av_mallocz
	str	x0, [x19, #24]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_16
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	ldr	w8, [x20, #40]
	cmp	w8, #1
	b.le	LBB0_12
; %bb.7:
	mov	x19, #0
	mov	w25, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	add	x19, x19, #40
	cmp	x25, w8, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #56]
	add	x9, x9, x19
	ldr	x0, [x9, #72]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x9, #64]
	cbz	x9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_av_free
	ldr	x8, [x20, #56]
	add	x8, x8, x19
	ldr	x0, [x8, #64]
	bl	_av_free
	ldr	w8, [x20, #40]
	b	LBB0_8
LBB0_12:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x25, #0
	mov	x26, #0
	lsl	w8, w24, #1
	add	w8, w8, #1, lsl #12             ; =4096
	mul	w8, w23, w8
	lsl	w9, w22, #1
	add	w8, w9, w8, lsl #2
	add	w19, w8, #256
	lsl	x27, x23, #12
	mul	w8, w24, w23
	sxtw	x23, w8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_av_malloc
	ldr	x8, [x20, #56]
	add	x8, x8, x25
	str	x0, [x8, #32]
	mov	x0, x19
	bl	_av_mallocz
	ldr	x8, [x20, #56]
	add	x8, x8, x25
	str	x0, [x8, #24]
	ldr	x9, [x8, #32]
	cmp	x9, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x0, x27
	ldr	x8, [x8, #16]
	str	x9, [x8]
	ldr	x8, [x20, #56]
	add	x8, x8, x25
	ldr	x8, [x8, #16]
	ldr	x9, [x8]
	add	x9, x9, x23
	str	x9, [x8, #8]
	ldr	x8, [x20, #56]
	add	x8, x8, x25
	ldr	x9, [x8, #16]
	ldr	x9, [x9, #8]
	add	x9, x9, x23
	str	x9, [x8, #8]
	add	x9, x9, #1024
	ldr	x8, [x8]
	str	x9, [x8]
	ldr	x8, [x20, #56]
	ldr	x8, [x8, x25]
	ldr	x9, [x8]
	add	x9, x9, x22, lsl #2
	str	x9, [x8, #8]
	add	x26, x26, #1
	ldrsw	x8, [x20, #40]
	add	x25, x25, #40
	cmp	x26, x8
	b.lt	LBB0_14
	b	LBB0_17
LBB0_16:
	mul	w8, w23, w25
	lsl	w8, w8, #12
	add	x8, x0, w8, sxtw
	ldr	x9, [x19, #16]
	str	x8, [x9]
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	mul	w10, w24, w23
	mul	w10, w10, w25
	sxtw	x10, w10
	add	x9, x9, x10
	str	x9, [x8, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	add	x8, x8, x10
	str	x8, [x19, #8]
	lsl	w9, w25, #8
	add	x8, x8, w9, sxtw #2
	ldr	x9, [x19]
	str	x8, [x9]
	ldr	x8, [x19]
	ldr	x9, [x8]
	mul	w10, w25, w22
	add	x9, x9, w10, sxtw #2
	str	x9, [x8, #8]
LBB0_17:
	ldr	x8, [x20, #48]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x20, #8]
LBB0_18:
	mov	w0, #0
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CUR_FRAME,8,3                  ; @CUR_FRAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_update_block_buffers
.subsections_via_symbols
