	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txd_read_packet
_txd_read_packet:                       ## @txd_read_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$100, %r13d
	ja	LBB0_14
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	movl	%r13d, %esi
	callq	_avio_skip
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_rl32
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_avio_rl32
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_avio_rl32
	movl	%eax, %r14d
	movq	(%r15), %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TXD_MARKER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TXD_MARKER2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	movq	(%r15), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_10
## %bb.15:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_1
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_TXD_MARKER,4,2                 ## @TXD_MARKER
	.comm	_TXD_MARKER2,4,2                ## @TXD_MARKER2
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marker does not match\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"unknown chunk id %i\n"

	.no_dead_strip	_txd_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txd_read_packet
_txd_read_packet:                       ; @txd_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x21
	bl	_avio_rl32
	mov	x22, x0
	mov	x0, x21
	bl	_avio_rl32
	mov	x24, x0
	ldr	x0, [x19]
	bl	_avio_feof
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh2:
	adrp	x25, _TXD_MARKER@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TXD_MARKER@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TXD_MARKER2@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TXD_MARKER2@GOTPAGEOFF]
Lloh6:
	adrp	x27, lJTI0_0@PAGE
Lloh7:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x19]
	mov	x1, x22
	bl	_avio_skip
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x21
	bl	_avio_rl32
	mov	x22, x0
	mov	x0, x21
	bl	_avio_rl32
	mov	x24, x0
	ldr	x0, [x19]
	bl	_avio_feof
	cbnz	x0, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, #100
	b.ls	LBB0_5
; %bb.11:
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x22
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_3
; %bb.12:
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_3
LBB0_13:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_TXD_MARKER,4,2                 ; @TXD_MARKER
	.comm	_TXD_MARKER2,4,2                ; @TXD_MARKER2
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marker does not match\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"unknown chunk id %i\n"

	.no_dead_strip	_txd_read_packet
.subsections_via_symbols
