	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_sb_block
_load_sb_block:                         ## @load_sb_block
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	40(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_av_free
	movq	$0, 40(%r14)
LBB0_2:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_av_free
LBB0_4:
	movl	(%rbx), %edi
	leaq	56(%r14), %rdx
	leaq	-28(%rbp), %rsi
	movl	%r15d, %ecx
	callq	_read_sb_block
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	-28(%rbp), %esi
	movq	$0, (%rsp)
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_avio_alloc_context
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r15
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_avio_r8
	movq	%r15, %rdi
	callq	_avio_r8
	movq	%r15, %rdi
	callq	_ffio_read_varlen
	movq	%r15, %rdi
	callq	_avio_r8
	movq	%r15, %rdi
	callq	_ffio_read_varlen
	movq	8(%r14), %rax
	movq	32(%r14), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ffio_read_varlen
	movq	24(%r14), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movq	%r15, %rdi
	callq	_avio_r8
	movq	24(%r14), %rcx
	movl	%eax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_ffio_read_varlen
	movq	%r15, %rdi
	callq	_avio_r8
	movq	$0, 16(%r14)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_load_sb_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_sb_block
_load_sb_block:                         ; @load_sb_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	ldr	x0, [x1, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_av_free
	str	xzr, [x19, #40]
LBB0_2:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_av_free
LBB0_4:
	ldr	w0, [x21]
	add	x2, x19, #56
	add	x1, sp, #12
	mov	x3, x20
	bl	_read_sb_block
	str	x0, [x19, #48]
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w1, [sp, #12]
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_avio_alloc_context
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	str	x0, [x19, #40]
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_ffio_read_varlen
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_ffio_read_varlen
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ffio_read_varlen
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	str	w0, [x8, #4]
	mov	x0, x20
	bl	_avio_r8
	ldr	x8, [x19, #24]
	str	w0, [x8, x21]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x20
	bl	_ffio_read_varlen
	mov	x0, x20
	bl	_avio_r8
	str	xzr, [x19, #16]
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_load_sb_block
.subsections_via_symbols
