	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_sbgp
_mov_read_sbgp:                         ## @mov_read_sbgp
	.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), %rcx
	movl	(%rcx), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r14
	movq	%rsi, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_avio_rb24
	movq	%r15, %rdi
	callq	_avio_rl32
	movq	%rax, %r13
	movl	$114, %edi
	movl	$97, %esi
	movl	$112, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpq	%rax, %r13
	jne	LBB0_16
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_avio_rb32
LBB0_4:
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.5:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	8(%r14), %rdi
	jmp	LBB0_8
LBB0_6:
	xorl	%edi, %edi
LBB0_8:
	callq	_av_free
	movl	$0, (%r14)
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_av_malloc_array
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r13
	addq	$16, %rbx
	cmpq	%r13, %r12
	jne	LBB0_10
## %bb.14:
	cmpq	$0, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r14)
	jne	LBB0_12
## %bb.15:
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_17:
	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
LBB0_11:
	movl	%r13d, (%r14)
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicated SBGP atom\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"reached eof, corrupted SBGP atom\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_mov_read_sbgp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_sbgp
_mov_read_sbgp:                         ; @mov_read_sbgp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x23, [x8]
	mov	x0, x1
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rl32
	mov	x22, x0
	mov	w0, #114
	mov	w1, #97
	mov	w2, #112
	mov	w3, #32
	bl	_MKTAG
	cmp	x22, x0
	b.ne	LBB0_13
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_avio_rb32
LBB0_4:
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	cbz	w21, LBB0_13
; %bb.5:
	ldr	x8, [x23, #8]
Lloh0:
	adrp	x22, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_LOG_WARNING@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x0, [x23, #8]
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	bl	_av_free
	str	wzr, [x23]
	mov	x0, x21
	mov	w1, #16
	bl	_av_malloc_array
	str	x0, [x23, #8]
	cbz	x0, LBB0_15
; %bb.9:
	mov	x25, #0
	mov	x24, #0
	and	x26, x21, #0xffffffff
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_avio_rb32
	ldr	x8, [x23, #8]
	add	x8, x8, x25
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_avio_rb32
	ldr	x8, [x23, #8]
	str	x0, [x8, x25]
	add	x24, x24, #1
	add	x25, x25, #16
	cmp	x26, x24
	b.ne	LBB0_10
; %bb.12:
	ldr	x8, [x20]
	str	w21, [x23]
	cbnz	x8, LBB0_17
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_16:
	str	w24, [x23]
LBB0_17:
	ldr	x0, [x19]
	ldr	w1, [x22]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicated SBGP atom\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"reached eof, corrupted SBGP atom\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_mov_read_sbgp
.subsections_via_symbols
