	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt1_filter
_pt1_filter:                            ## @pt1_filter
	.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	(%rsi), %rax
	movq	_PT1_NR_UPACKETS@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	cmpl	$0, -4(%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.3:
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r15), %rcx
	movq	(%r12), %rax
	cmpq	%rcx, %rbx
	jge	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	cmpl	$536870912, %eax                ## imm = 0x20000000
	jl	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	sarl	$29, %ecx
	movq	_PT1_NR_ADAPS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdx
	movslq	%ecx, %rcx
	movq	-8(%rdx,%rcx,8), %r13
	testl	$33554432, %eax                 ## imm = 0x2000000
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jne	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r13)
	xorl	%ecx, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rsi
	movslq	16(%r13), %rdx
	imulq	$188, %rdx, %rdx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rdx, %rcx
	movl	%eax, %edx
	shrl	$16, %edx
	movl	%edx, (%rsi,%rcx,4)
	movl	%eax, %edx
	shrl	$8, %edx
	movslq	%ecx, %rcx
	movl	%edx, 4(%rsi,%rcx,4)
	cmpl	$62, (%r13)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 8(%rsi,%rcx,4)
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	cmpl	$62, %eax
	jl	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r13)
	movl	16(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r13)
	cmpl	$20, %eax
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	20(%r13), %rdi
	movl	$21, %edx
	callq	_dvb_dmx_swfilter_packets
	movl	$0, 16(%r13)
	jmp	LBB0_13
LBB0_14:
	decq	%rcx
	movl	$0, (%rax,%rcx,4)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT1_NR_UPACKETS,4,2            ## @PT1_NR_UPACKETS
	.comm	_PT1_NR_ADAPS,4,2               ## @PT1_NR_ADAPS
	.no_dead_strip	_pt1_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt1_filter
_pt1_filter:                            ; @pt1_filter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _PT1_NR_UPACKETS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PT1_NR_UPACKETS@GOTPAGEOFF]
	ldrsw	x10, [x21]
	sub	x9, x10, #1
	ldr	w11, [x8, x9, lsl #2]
	cbz	w11, LBB0_12
; %bb.1:
	cmp	w10, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
Lloh2:
	adrp	x23, _PT1_NR_ADAPS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PT1_NR_ADAPS@GOTPAGEOFF]
	mov	w24, #536870912
	mov	w25, #188
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x21]
	ldr	x8, [x19]
	cmp	x22, x9
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x22, lsl #2]
	bl	_le32_to_cpu
	asr	w8, w0, #29
	ldr	w9, [x23]
	cmp	w0, w24
	ccmp	w8, w9, #0, ge
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	ldr	x9, [x20]
	ldr	x26, [x9, w8, sxtw #3]
	tbnz	w0, #25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cbnz	w8, LBB0_8
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	str	wzr, [x26]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x26, #8]
	ldrsw	x9, [x26, #16]
	sxtw	x10, w8
	add	x8, x10, w8, sxtw #1
	madd	x8, x9, x25, x8
	lsr	w9, w0, #16
	add	x8, x1, x8, lsl #2
	lsr	w10, w0, #8
	stp	w9, w10, [x8]
	ldr	w9, [x26]
	cmp	w9, #62
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x8, #8]
	ldr	w8, [x26]
	add	w9, w8, #1
	str	w9, [x26]
	cmp	w8, #62
	b.lt	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x26]
	ldr	w8, [x26, #16]
	add	w9, w8, #1
	str	w9, [x26, #16]
	cmp	w8, #20
	b.lt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x26, #20
	mov	w2, #21
	bl	_dvb_dmx_swfilter_packets
	str	wzr, [x26, #16]
	b	LBB0_3
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	sub	x9, x9, #1
LBB0_14:
	str	wzr, [x8, x9, lsl #2]
	mov	w0, #1
LBB0_15:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PT1_NR_UPACKETS,4,2            ; @PT1_NR_UPACKETS
	.comm	_PT1_NR_ADAPS,4,2               ; @PT1_NR_ADAPS
	.no_dead_strip	_pt1_filter
.subsections_via_symbols
