	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microdvd_decode_frame
_microdvd_decode_frame:                 ## @microdvd_decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rcx), %rbx
	movslq	8(%rcx), %r13
	movq	(%rdi), %rax
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	testq	%r13, %r13
	jle	LBB0_13
## %bb.1:
	movq	%rcx, %r12
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r13
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_av_bprint_init
	leaq	-64(%rbp), %r15
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_microdvd_close_no_persistent_tags
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_av_bprintf
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rbx
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpb	$0, (%rbx)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_microdvd_load_tags
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_microdvd_open_tags
	cmpq	%r13, %rbx
	jae	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$124, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movsbl	%al, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_av_bprint_chars
	incq	%rbx
	cmpq	%r13, %rbx
	jb	LBB0_5
	jmp	LBB0_9
LBB0_10:
	cmpq	$0, -96(%rbp)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movl	-104(%rbp), %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_ass_add_rect
	movl	%eax, %r13d
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	testl	%r13d, %r13d
	js	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setg	%al
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	8(%r12), %r13d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\N"

	.no_dead_strip	_microdvd_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microdvd_decode_frame
_microdvd_decode_frame:                 ; @microdvd_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x22, [x3]
	ldr	w23, [x3, #8]
	ldr	x24, [x0]
	str	wzr, [sp, #32]
	str	xzr, [sp, #24]
	cmp	w23, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	sxtw	x8, w23
	add	x25, x22, x8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #2048
	bl	_av_bprint_init
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_microdvd_close_no_persistent_tags
	add	x0, sp, #8
	mov	x1, x23
	bl	_av_bprintf
	add	x22, x22, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x25
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrb	w8, [x22]
	cbz	w8, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	x1, x22
	bl	_microdvd_load_tags
	mov	x22, x0
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_microdvd_open_tags
	cmp	x22, x25
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x26, x25, x22
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22]
	cbz	w8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #124
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	sxtb	w1, w8
	add	x0, sp, #8
	mov	w2, #1
	bl	_av_bprint_chars
	add	x22, x22, #1
	subs	x26, x26, #1
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x25
	b	LBB0_3
LBB0_11:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w1, [sp, #8]
	ldr	w2, [x24]
	add	w8, w2, #1
	str	w8, [x24]
	mov	x0, x21
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ff_ass_add_rect
	mov	x23, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_av_bprint_finalize
	tbnz	w23, #31, LBB0_14
LBB0_13:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, gt
	str	w8, [x20]
	ldr	w23, [x19, #8]
LBB0_14:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\N"

	.no_dead_strip	_microdvd_decode_frame
.subsections_via_symbols
