	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decsubWork                     ## -- Begin function decsubWork
	.p2align	4, 0x90
_decsubWork:                            ## @decsubWork
	.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	%rdx, %r15
	movq	(%rsi), %rbx
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, (%r15)
	movq	$0, (%rsi)
	movq	_HB_WORK_DONE@GOTPCREL(%rip), %r13
LBB0_21:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	32(%rbx), %eax
	movl	%eax, 48(%r12)
	movq	(%rbx), %rsi
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	movl	8(%rbx), %edx
	movslq	8(%r12), %rdi
	subl	%edi, %eax
	movq	40(%r12), %rcx
	cmpl	%eax, %edx
	jle	LBB0_9
## %bb.18:
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	leaq	40(%r12), %rdi
	callq	_hb_buffer_close
LBB0_20:
	movl	$0, (%r12)
	movq	$0, (%r15)
	movq	_HB_WORK_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_21
LBB0_3:
	movl	(%rsi), %eax
	shll	$8, %eax
	orl	4(%rsi), %eax
	je	LBB0_12
## %bb.4:
	movl	8(%rsi), %ecx
	shll	$8, %ecx
	orl	12(%rsi), %ecx
	je	LBB0_12
## %bb.5:
	cmpl	%ecx, %eax
	jle	LBB0_12
## %bb.6:
	cmpl	%eax, 8(%rbx)
	jg	LBB0_12
## %bb.7:
	movl	%eax, (%r12)
	movl	%ecx, 4(%r12)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_hb_buffer_init
	movq	%rax, 40(%r12)
	movq	16(%rax), %rdi
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	_memcpy
	movl	32(%rbx), %eax
	movq	40(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_HB_FRAME_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_10
LBB0_9:
	addq	16(%rcx), %rdi
	callq	_memcpy
	movl	32(%rbx), %eax
	movq	40(%r12), %rcx
	movl	%eax, 4(%rcx)
	movl	8(%rbx), %eax
	addl	%eax, 8(%r12)
LBB0_10:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movq	%rax, 16(%r12)
	movl	36(%rbx), %eax
	movl	%eax, 36(%r12)
LBB0_12:
	movl	(%r12), %eax
	movq	$0, (%r15)
	movq	_HB_WORK_OK@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	cmpl	8(%r12), %eax
	jne	LBB0_21
## %bb.14:
	movq	40(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_Decode
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	32(%rbx), %ecx
	movl	%ecx, 32(%rax)
LBB0_16:
	movq	$0, (%r12)
	movl	$0, 8(%r12)
	movq	24(%r12), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.17:
	movq	%rax, 16(%r12)
	movl	32(%r12), %eax
	movl	%eax, 36(%r12)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ## @HB_WORK_DONE
	.comm	_HB_FRAME_SUBTITLE,4,2          ## @HB_FRAME_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_HB_WORK_OK,4,2                 ## @HB_WORK_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decsubWork                     ; -- Begin function decsubWork
	.p2align	2
_decsubWork:                            ; @decsubWork
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	ldr	x22, [x1]
	ldr	w8, [x22, #16]
Lloh0:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	str	x22, [x19]
	str	xzr, [x1]
Lloh3:
	adrp	x8, _HB_WORK_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_WORK_DONE@GOTPAGEOFF]
	b	LBB0_20
LBB0_2:
	mov	x20, x0
	ldr	x21, [x0]
	ldr	w8, [x22, #32]
	str	w8, [x21, #48]
	ldr	x1, [x22]
	ldr	w10, [x21]
	cbz	w10, LBB0_7
; %bb.3:
	ldr	w2, [x22, #8]
	mov	x0, x21
	ldr	x8, [x0, #40]!
	ldursw	x9, [x0, #-32]
	sub	w10, w10, w9
	cmp	w2, w10
	b.le	LBB0_10
; %bb.4:
	cbz	x8, LBB0_6
; %bb.5:
	bl	_hb_buffer_close
LBB0_6:
	str	wzr, [x21]
	str	xzr, [x19]
	b	LBB0_19
LBB0_7:
	ldp	w8, w9, [x1]
	orr	w8, w9, w8, lsl #8
	ldp	w9, w10, [x1, #8]
	orr	w9, w10, w9, lsl #8
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w8, w9, #4, ne
	b.le	LBB0_13
; %bb.8:
	ldr	w10, [x22, #8]
	cmp	w10, w8
	b.gt	LBB0_13
; %bb.9:
	stp	w8, w9, [x21]
	mov	w0, #65535
	bl	_hb_buffer_init
	str	x0, [x21, #40]
	ldr	x0, [x0, #16]
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	bl	_memcpy
	ldr	w8, [x22, #32]
	ldr	x9, [x21, #40]
Lloh5:
	adrp	x10, _HB_FRAME_SUBTITLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HB_FRAME_SUBTITLE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #4]
	ldr	w8, [x22, #8]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x8, #16]
	add	x0, x8, x9
	bl	_memcpy
	ldr	w8, [x22, #32]
	ldr	x9, [x21, #40]
	str	w8, [x9, #4]
	ldr	w8, [x22, #8]
	ldr	w9, [x21, #8]
	add	w8, w9, w8
LBB0_11:
	str	w8, [x21, #8]
	ldr	x8, [x22, #24]
	tbnz	x8, #63, LBB0_13
; %bb.12:
	str	x8, [x21, #16]
	ldr	w8, [x22, #36]
	str	w8, [x21, #36]
LBB0_13:
	ldr	w8, [x21]
	str	xzr, [x19]
	cbz	w8, LBB0_19
; %bb.14:
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.15:
	ldr	x9, [x21, #40]
	str	w8, [x9]
	mov	x0, x20
	bl	_Decode
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w8, [x22, #32]
	str	w8, [x0, #32]
LBB0_17:
	str	wzr, [x21, #8]
	str	xzr, [x21]
	ldr	x8, [x21, #24]
Lloh8:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.18:
	str	x8, [x21, #16]
	ldr	w8, [x21, #32]
	str	w8, [x21, #36]
LBB0_19:
Lloh11:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ; @HB_WORK_DONE
	.comm	_HB_FRAME_SUBTITLE,4,2          ; @HB_FRAME_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_HB_WORK_OK,4,2                 ; @HB_WORK_OK
.subsections_via_symbols
