	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_xfer                ## -- Begin function mantis_dma_xfer
	.p2align	4, 0x90
_mantis_dma_xfer:                       ## @mantis_dma_xfer
	.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	(%rdi), %rcx
	movq	8(%rdi), %r8
	cmpq	%r8, %rcx
	jne	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	leaq	24(%rdi), %r14
	movq	_MANTIS_BLOCK_BYTES@GOTPCREL(%rip), %r15
	movq	_MANTIS_BLOCK_COUNT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdx
	movq	(%rbx), %rsi
	imulq	%rdx, %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	*%rcx
	movq	(%rbx), %rax
	incq	%rax
	movslq	(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, (%rbx)
	movq	8(%rbx), %r8
	cmpq	%r8, %rcx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	leaq	L_.str(%rip), %rdx
	callq	_dprintk
	cmpq	$0, (%r12)
	movq	_dvb_dmx_swfilter_204@GOTPCREL(%rip), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_dvb_dmx_swfilter@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"last block=[%d] finished block=[%d]"

	.comm	_MANTIS_BLOCK_BYTES,8,3         ## @MANTIS_BLOCK_BYTES
	.comm	_MANTIS_BLOCK_COUNT,4,2         ## @MANTIS_BLOCK_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_xfer                ; -- Begin function mantis_dma_xfer
	.p2align	2
_mantis_dma_xfer:                       ; @mantis_dma_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x3, x4, [x0]
	cmp	x3, x4
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #32]
	add	x20, x0, #24
Lloh0:
	adrp	x23, _MANTIS_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x24, _dvb_dmx_swfilter_204@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dvb_dmx_swfilter_204@GOTPAGEOFF]
Lloh6:
	adrp	x25, _dvb_dmx_swfilter@GOTPAGE
Lloh7:
	ldr	x25, [x25, _dvb_dmx_swfilter@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MANTIS_BLOCK_BYTES@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MANTIS_BLOCK_BYTES@GOTPAGEOFF]
Lloh10:
	adrp	x27, _MANTIS_BLOCK_COUNT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MANTIS_BLOCK_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	w1, #1
	mov	x2, x21
	bl	_dprintk
	ldr	x8, [x22]
	cmp	x8, #0
	csel	x8, x25, x24, eq
	ldr	x9, [x19, #16]
	ldr	x10, [x19]
	ldr	x2, [x26]
	mul	x10, x2, x10
	add	x1, x9, x10, lsl #2
	mov	x0, x20
	blr	x8
	ldp	x8, x4, [x19]
	add	x8, x8, #1
	ldrsw	x9, [x27]
	udiv	x10, x8, x9
	msub	x3, x10, x9, x8
	str	x3, [x19]
	cmp	x3, x4
	b.ne	LBB0_2
LBB0_3:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"last block=[%d] finished block=[%d]"

	.comm	_MANTIS_BLOCK_BYTES,8,3         ; @MANTIS_BLOCK_BYTES
	.comm	_MANTIS_BLOCK_COUNT,4,2         ; @MANTIS_BLOCK_COUNT
.subsections_via_symbols
