	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_filter_pes2ts
_dvb_filter_pes2ts:                     ## @dvb_filter_pes2ts
	.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
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	testl	%ecx, %ecx
	setne	%al
	movq	(%rdi), %r14
	movb	1(%r14), %cl
	andb	$-65, %cl
	shlb	$6, %al
	orb	%cl, %al
	movb	%al, 1(%r14)
	cmpl	$184, %edx
	jl	LBB0_1
## %bb.2:
	leaq	4(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 20(%r15)
	andb	$15, %al
	orb	$16, %al
	movb	%al, 3(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$184, %edx
	callq	_memcpy
	movl	16(%r15), %edi
	movq	%r14, %rsi
	callq	*8(%r15)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-184(%rbx), %r12d
	addq	$184, %r13
	andb	$-65, 1(%r14)
	cmpl	$367, %ebx                      ## imm = 0x16F
	movl	%r12d, %ebx
	jg	LBB0_3
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_8:
	movl	20(%r15), %eax
	leal	1(%rax), %ecx
	andb	$15, %al
	orb	$48, %al
	leal	-183(%r12), %ebx
	negl	%ebx
	movl	%ecx, 20(%r15)
	movb	%al, 3(%r14)
	cmpl	$183, %r12d
	je	LBB0_11
## %bb.9:
	movb	$0, 5(%r14)
	cmpl	$182, %r12d
	je	LBB0_11
## %bb.10:
	movl	$182, %edx
	subl	%r12d, %edx
	leaq	6(%r14), %rdi
	movl	$255, %esi
	callq	_memset
LBB0_11:
	movb	%bl, 4(%r14)
	movl	%ebx, %eax
	leaq	(%r14,%rax), %rdi
	addq	$5, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	8(%r15), %rax
	movl	16(%r15), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	%ebx, %r12d
	testl	%r12d, %r12d
	jne	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dvb_filter_pes2ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_filter_pes2ts
_dvb_filter_pes2ts:                     ; @dvb_filter_pes2ts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w3, #0
	cset	w8, ne
	ldr	x20, [x0]
	ldrb	w9, [x20, #1]
	and	w9, w9, #0xffffffbf
	orr	w8, w9, w8, lsl #6
	strb	w8, [x20, #1]
	cmp	w2, #184
	b.lt	LBB0_9
; %bb.1:
	add	x24, x20, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #20]
	add	w9, w8, #1
	str	w9, [x19, #20]
	mov	w9, #16
	bfxil	w9, w8, #0, #4
	strb	w9, [x20, #3]
	mov	x0, x24
	mov	x1, x21
	mov	w2, #184
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w22, w23, #184
	add	x21, x21, #184
	ldrb	w8, [x20, #1]
	and	w8, w8, #0xffffffbf
	strb	w8, [x20, #1]
	cmp	w23, #367
	mov	x23, x22
	b.gt	LBB0_2
; %bb.4:
	cbz	w22, LBB0_10
LBB0_5:
	ldr	w8, [x19, #20]
	add	w9, w8, #1
	str	w9, [x19, #20]
	mov	w9, #48
	bfxil	w9, w8, #0, #4
	strb	w9, [x20, #3]
	mov	w8, #183
	sub	w23, w8, w22
	cmp	w22, #183
	b.eq	LBB0_8
; %bb.6:
	strb	wzr, [x20, #5]
	cmp	w22, #182
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #182
	sub	w2, w8, w22
	add	x0, x20, #6
	mov	w1, #255
	bl	_memset
LBB0_8:
	strb	w23, [x20, #4]
	add	x8, x20, w23, uxtw
	add	x0, x8, #5
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x2, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_9:
	mov	x22, x23
	cbnz	w22, LBB0_5
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dvb_filter_pes2ts
.subsections_via_symbols
