	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode
_decode:                                ## @decode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rcx), %r13
	movq	%r13, -56(%rbp)
	movl	8(%rcx), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ff_dlog
	movq	%rbx, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str.2(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_ff_dlog
	movl	%ebx, %eax
	notl	%eax
	testb	$15, %al
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_ff_dlog
	jmp	LBB0_5
LBB0_6:
	testb	$15, -48(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ff_dlog
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$-1, %eax
	cmpl	$3, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_27
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_display_end_segment
	testl	%eax, %eax
	js	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	shlq	$2, %r12
	addq	-56(%rbp), %r12
	movq	%r12, -56(%rbp)
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_26
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream_get_byte
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_bytestream_get_be16
	movl	%eax, %r14d
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ff_dlog
	movslq	%r14d, %r12
	cmpl	$132, %r13d
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subq	%rsi, %rax
	sarq	$2, %rax
	cmpq	%r12, %rax
	jl	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	-128(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_parse_presentation_segment
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	jns	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_25
	jmp	LBB0_27
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_parse_palette_segment
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_parse_object_segment
	jmp	LBB0_23
LBB0_1:
	movl	$0, (%r14)
	movl	$-1, %eax
	jmp	LBB0_27
LBB0_26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PGS sub packet:\n"

L_.str.1:                               ## @.str.1
	.asciz	"%02x "

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	"Segment Length %d, Segment Type %x\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Duplicate display segment\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.5:                               ## @.str.5
	.asciz	"Unknown subtitle segment type 0x%x, length %d\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode
_decode:                                ; @decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x3]
	str	x24, [sp, #24]
	ldr	w27, [x3, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ff_dlog
	cmp	w27, #0
	b.le	LBB0_9
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x27, x25
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w26, w25
	ldr	w8, [x24, x25, lsl #2]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_ff_dlog
	tst	x26, #0xf
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ff_dlog
	b	LBB0_2
LBB0_5:
	tst	w27, #0xf
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ff_dlog
LBB0_7:
	str	wzr, [x19]
	cmp	w27, #3
	b.ge	LBB0_10
; %bb.8:
	mov	w0, #-1
	b	LBB0_28
LBB0_9:
	str	wzr, [x19]
	mov	w0, #-1
	b	LBB0_28
LBB0_10:
	add	x28, x24, x27, lsl #2
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh10:
	adrp	x24, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	adrp	x23, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x23, [x23, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x2, [sp, #24]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x25
	bl	_display_end_segment
	tbnz	w0, #31, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_14 Depth=1
	str	w0, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, w25, sxtw #2
	str	x8, [sp, #24]
	cmp	x8, x28
	b.hs	LBB0_27
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_bytestream_get_byte
	mov	x26, x0
	add	x0, sp, #24
	bl	_bytestream_get_be16
	mov	x25, x0
	stp	x25, x26, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_ff_dlog
	cmp	w26, #132
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x8, x25
	sxtw	x8, w8
	ldr	x1, [sp, #24]
	sub	x9, x28, x1
	cmp	x8, x9, asr #2
	b.gt	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w8, w26, #128
	cmp	w8, #3
	b.hi	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh16:
	adrp	x11, lJTI0_0@PAGE
Lloh17:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_13
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w3, [x20]
	mov	x0, x21
	mov	x2, x25
	bl	_parse_presentation_segment
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x24]
	mov	x8, x25
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x8, [sp]
	mov	x0, x21
Lloh18:
	adrp	x2, l_.str.5@PAGE
Lloh19:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_av_log
	ldr	w0, [x23]
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	tbz	w0, #31, LBB0_13
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x21]
Lloh20:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	x2, x25
	bl	_parse_palette_segment
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	x2, x25
	bl	_parse_object_segment
	b	LBB0_23
LBB0_27:
	mov	x0, x27
LBB0_28:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
	.byte	(LBB0_25-LBB0_13)>>2
	.byte	(LBB0_26-LBB0_13)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PGS sub packet:\n"

l_.str.1:                               ; @.str.1
	.asciz	"%02x "

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	"Segment Length %d, Segment Type %x\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Duplicate display segment\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.5:                               ; @.str.5
	.asciz	"Unknown subtitle segment type 0x%x, length %d\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_decode
.subsections_via_symbols
