	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssa_work
_ssa_work:                              ## @ssa_work
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	(%rsi), %r12
	cmpl	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	movl	4(%r13), %edi
	movq	(%r14), %rax
	movq	%rsi, %r15
	movq	8(%rax), %rsi
	movl	4(%rax), %edx
	callq	_ass_process_codec_private
	movq	%r15, %rsi
	movl	$1, (%r13)
LBB0_2:
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_HB_FILTER_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_hb_fifo_get
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r13), %edi
	movq	16(%rax), %rsi
	movl	8(%rax), %r8d
	movl	12(%rax), %edx
	movslq	4(%rax), %rax
	imulq	$-1240768329, %rax, %rcx        ## imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	sarl	$6, %ecx
	addl	%ebx, %ecx
	subl	%eax, %r8d
	movslq	%r8d, %r8
	imulq	$-1240768329, %r8, %rax         ## imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%eax, %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	sarl	$6, %r8d
	addl	%eax, %r8d
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ass_process_chunk
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
	jmp	LBB0_5
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ApplySSASubs
	movq	_HB_FILTER_OK@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:
	movq	$0, (%rsi)
	movq	%r12, (%rbx)
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ## @HB_FILTER_DONE
	.comm	_HB_FILTER_OK,4,2               ## @HB_FILTER_OK
	.no_dead_strip	_ssa_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssa_work
_ssa_work:                              ; @ssa_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x22, [x0, #8]
	ldr	x21, [x1]
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x22, #4]
	ldr	x8, [x23]
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_ass_process_codec_private
	mov	w8, #1
	str	w8, [x22]
LBB0_2:
	ldr	w8, [x21]
Lloh0:
	adrp	x24, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HB_FILTER_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_FILTER_DONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.5:
	mov	x25, #-40777
	movk	x25, #46603, lsl #16
	mov	w26, #24759
	movk	w26, #46603, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #4]
	ldr	x1, [x0, #16]
	ldp	w10, w2, [x0, #8]
	ldrsw	x9, [x0, #4]
	mul	x11, x9, x25
	lsr	x11, x11, #32
	add	w11, w11, w9
	asr	w12, w11, #6
	add	w3, w12, w11, lsr #31
	sub	w9, w10, w9
	smull	x10, w9, w26
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #6
	add	w4, w10, w9, lsr #31
	mov	x0, x8
	bl	_ass_process_chunk
	add	x0, sp, #8
	bl	_hb_buffer_close
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	str	x0, [sp, #8]
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_8:
	add	x0, sp, #8
	bl	_hb_buffer_close
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	bl	_ApplySSASubs
Lloh4:
	adrp	x8, _HB_FILTER_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HB_FILTER_OK@GOTPAGEOFF]
LBB0_10:
	str	xzr, [x20]
	str	x21, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ; @HB_FILTER_DONE
	.comm	_HB_FILTER_OK,4,2               ; @HB_FILTER_OK
	.no_dead_strip	_ssa_work
.subsections_via_symbols
