	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpeirq
_vpeirq:                                ## @vpeirq
	.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	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	48(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r13
	movq	_PCI_VDP3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa7146_read
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpq	$0, 40(%rbx)
	setne	%cl
	movslq	%r14d, %rdx
	imulq	$-1370734243, %rdx, %rdx        ## imm = 0xAE4C415D
	shrq	$32, %rdx
	addl	%r14d, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$7, %edx
	addl	%esi, %edx
	imull	$188, %edx, %r15d
	movq	_TS_BUFLEN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r15d
	jge	LBB0_7
## %bb.1:
	movl	%r15d, (%rbx)
	cmpl	$0, 24(%rbx)
	je	LBB0_7
## %bb.2:
	cmpl	%r13d, %r15d
	je	LBB0_7
## %bb.3:
	movb	%cl, %al
	leaq	(%rbx,%rax,4), %rax
	addq	$28, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_dma_sync_sg_for_cpu
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rsi
	cmpl	%r13d, %r15d
	jle	LBB0_5
## %bb.4:
	subl	%r13d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %eax
	subl	%r13d, %eax
	movslq	%eax, %rdx
	imulq	$-1370734243, %rdx, %rax        ## imm = 0xAE4C415D
	shrq	$32, %rax
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	$7, %edx
	addl	%eax, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dvb_dmx_swfilter_packets
	movl	%r14d, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdi
LBB0_6:
	movslq	%r15d, %rdx
	imulq	$-1370734243, %rdx, %rax        ## imm = 0xAE4C415D
	shrq	$32, %rax
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	$7, %edx
	addl	%eax, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_dmx_swfilter_packets       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VDP3,4,2                   ## @PCI_VDP3
	.comm	_TS_BUFLEN,4,2                  ## @TS_BUFLEN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_EC1R,4,2                       ## @EC1R
	.no_dead_strip	_vpeirq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpeirq
_vpeirq:                                ; @vpeirq
	.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
	mov	x21, x0
	ldr	x22, [x0, #48]
	ldrsw	x23, [x0]
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _PCI_VDP3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VDP3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_saa7146_read
	ldr	x8, [x21, #40]
	add	x9, x21, #32
	add	x10, x21, #28
	cmp	x8, #0
	csel	x19, x10, x9, eq
	mov	w8, #16733
	movk	w8, #44620, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	mov	w9, #188
	mul	w25, w8, w9
Lloh3:
	adrp	x24, _TS_BUFLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TS_BUFLEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_5
; %bb.1:
	str	w25, [x21]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_5
; %bb.2:
	cmp	w25, w23
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [x21, #16]
Lloh5:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_pci_dma_sync_sg_for_cpu
	add	x1, x22, x23, lsl #2
	cmp	w25, w23
	b.le	LBB0_6
; %bb.4:
	sub	w20, w25, w23
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
	ldr	w8, [x24]
	mov	w9, #16733
	movk	w9, #44620, lsl #16
	sub	w8, w8, w23
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #7
	add	w2, w9, w8, lsr #31
	mov	x0, x19
	bl	_dvb_dmx_swfilter_packets
	mov	x1, x22
LBB0_7:
	mov	w8, #16733
	movk	w8, #44620, lsl #16
	smull	x8, w20, w8
	lsr	x8, x8, #32
	add	w8, w8, w20
	asr	w9, w8, #7
	add	w2, w9, w8, lsr #31
	mov	x0, x19
	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
	b	_dvb_dmx_swfilter_packets
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VDP3,4,2                   ; @PCI_VDP3
	.comm	_TS_BUFLEN,4,2                  ; @TS_BUFLEN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_EC1R,4,2                       ; @EC1R
	.no_dead_strip	_vpeirq
.subsections_via_symbols
