	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgssub_work
_pgssub_work:                           ## @pgssub_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	%rsi, %r15
	movq	(%rsi), %r12
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_HB_FILTER_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	%rdi, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_hb_fifo_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_hb_list_add
	jmp	LBB0_3
LBB0_7:
	movq	$0, -48(%rbp)
	jmp	LBB0_8
LBB0_5:
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ApplyPGSSubs
	movq	_HB_FILTER_OK@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:
	movq	$0, (%r15)
	movq	%r12, (%rdx)
	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	_pgssub_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgssub_work
_pgssub_work:                           ; @pgssub_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x1]
	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_2
; %bb.1:
Lloh2:
	adrp	x8, _HB_FILTER_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_FILTER_DONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x23, x0
	ldp	x8, x22, [x0]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x1]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	bl	_hb_list_add
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	mov	x1, x0
	cbnz	x0, LBB0_4
LBB0_6:
	str	xzr, [sp, #8]
	b	LBB0_8
LBB0_7:
	str	x1, [sp, #8]
	add	x0, sp, #8
	bl	_hb_buffer_close
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	bl	_ApplyPGSSubs
Lloh4:
	adrp	x8, _HB_FILTER_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HB_FILTER_OK@GOTPAGEOFF]
LBB0_9:
	str	xzr, [x20]
	str	x21, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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	_pgssub_work
.subsections_via_symbols
