	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pluto_dma_end
_pluto_dma_end:                         ## @pluto_dma_end
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movl	8(%r14), %esi
	movq	_TS_DMA_BYTES@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_pci_dma_sync_single_for_cpu
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_TS_DMA_PACKETS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jae	LBB0_7
LBB0_2:
	movq	(%r14), %rcx
	movl	$-188, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	$188, %eax
	cmpl	$71, (%rcx,%rax,4)
	je	LBB0_3
## %bb.4:
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %eax
	movl	$2924233053, %ebx               ## imm = 0xAE4C415D
	imulq	%rax, %rbx
	shrq	$39, %rbx
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pluto_reset_ts
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_printk
	xorl	%ebx, %ebx
LBB0_7:
	leaq	24(%r14), %rdi
	movq	(%r14), %rsi
	movl	%ebx, %edx
	callq	_dvb_dmx_swfilter_packets
	movq	(%r14), %rdi
	imull	$188, %ebx, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	callq	_pluto_set_dma_addr
	movq	16(%r14), %rdi
	movl	8(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_dma_sync_single_for_device ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_DMA_BYTES,4,2               ## @TS_DMA_BYTES
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_TS_DMA_PACKETS,4,2             ## @TS_DMA_PACKETS
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resetting TS because of invalid packet counter\n"

	.no_dead_strip	_pluto_dma_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pluto_dma_end
_pluto_dma_end:                         ; @pluto_dma_end
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x21, _TS_DMA_BYTES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TS_DMA_BYTES@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x22, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_pci_dma_sync_single_for_cpu
	cbz	w20, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _TS_DMA_PACKETS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TS_DMA_PACKETS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_7
LBB0_2:
	ldr	x9, [x19]
	mov	w8, #-188
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #188
	ldr	w10, [x9, w8, uxtw #2]
	cmp	w10, #71
	b.eq	LBB0_3
; %bb.4:
	cbz	w8, LBB0_6
; %bb.5:
	mov	w9, #16733
	movk	w9, #44620, lsl #16
	umull	x8, w8, w9
	lsr	x20, x8, #39
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_pluto_reset_ts
Lloh7:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_printk
	mov	w20, #0
LBB0_7:
	add	x0, x19, #24
	ldr	x1, [x19]
	mov	x2, x20
	bl	_dvb_dmx_swfilter_packets
	ldr	x0, [x19]
	mov	w8, #188
	mul	w2, w20, w8
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	bl	_pluto_set_dma_addr
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
	ldr	w3, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_dma_sync_single_for_device
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_DMA_BYTES,4,2               ; @TS_DMA_BYTES
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_TS_DMA_PACKETS,4,2             ; @TS_DMA_PACKETS
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resetting TS because of invalid packet counter\n"

	.no_dead_strip	_pluto_dma_end
.subsections_via_symbols
