	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt3_proc_dma                   ## -- Begin function pt3_proc_dma
	.p2align	4, 0x90
_pt3_proc_dma:                          ## @pt3_proc_dma
	.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
	movslq	(%rdi), %rax
	movl	%eax, -48(%rbp)
	movslq	4(%rdi), %rcx
	movl	%ecx, -44(%rbp)
	movq	24(%rdi), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	(%rax,%rcx,8), %rax
	movq	_PT3_BUF_CANARY@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_next_unit
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%rax
	movq	%rax, 8(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movl	-48(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdx
	callq	_next_unit
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movslq	(%rbx), %rsi
	movslq	4(%rbx), %rdx
	leaq	(,%rdx,8), %r13
	addq	(%rcx,%rsi,8), %r13
	testq	%rax, %rax
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PT3_ACCESS_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rdx), %esi
	movq	_DATA_BUF_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%edx, %ecx
	movl	%ecx, %eax
	cltd
	movq	_TS_PACKET_SZ@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_dvb_dmx_swfilter_packets
	movq	24(%rbx), %rax
	movslq	-48(%rbp), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	-44(%rbp), %eax
	cltd
	movq	_TS_PACKET_SZ@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	movq	_TS_PACKET_SZ@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	callq	_dvb_dmx_swfilter_packets
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PT3_BUF_CANARY,8,3             ## @PT3_BUF_CANARY
	.comm	_PT3_ACCESS_UNIT,4,2            ## @PT3_ACCESS_UNIT
	.comm	_DATA_BUF_SZ,4,2                ## @DATA_BUF_SZ
	.comm	_TS_PACKET_SZ,4,2               ## @TS_PACKET_SZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt3_proc_dma                   ; -- Begin function pt3_proc_dma
	.p2align	2
_pt3_proc_dma:                          ; @pt3_proc_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldpsw	x8, x9, [x0]
	stp	w9, w8, [sp, #8]
	ldr	x10, [x0, #24]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
Lloh0:
	adrp	x22, _PT3_BUF_CANARY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PT3_BUF_CANARY@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_next_unit
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	add	x20, x19, #16
Lloh2:
	adrp	x23, _PT3_ACCESS_UNIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PT3_ACCESS_UNIT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DATA_BUF_SZ@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DATA_BUF_SZ@GOTPAGEOFF]
Lloh6:
	adrp	x25, _TS_PACKET_SZ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TS_PACKET_SZ@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x9, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	str	x8, [x21]
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [x19]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_next_unit
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldpsw	x10, x8, [x19]
	ldr	x9, [x9, x10, lsl #3]
	add	x21, x9, x8, lsl #3
	ldr	x9, [x19, #8]
	subs	x9, x9, #1
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x23]
	ldr	w10, [x24]
	add	w11, w9, w8
	cmp	w11, w10
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w10, w8
	ldr	w9, [x25]
	sdiv	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	bl	_dvb_dmx_swfilter_packets
	ldr	x8, [x19, #24]
	ldrsw	x9, [sp, #12]
	ldr	x1, [x8, x9, lsl #3]
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	sdiv	w2, w8, w9
	mov	x0, x20
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	sdiv	w2, w9, w8
	mov	x0, x20
	mov	x1, x21
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_dvb_dmx_swfilter_packets
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PT3_BUF_CANARY,8,3             ; @PT3_BUF_CANARY
	.comm	_PT3_ACCESS_UNIT,4,2            ; @PT3_ACCESS_UNIT
	.comm	_DATA_BUF_SZ,4,2                ; @DATA_BUF_SZ
	.comm	_TS_PACKET_SZ,4,2               ; @TS_PACKET_SZ
.subsections_via_symbols
