	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_dma_xfer
_smi_dma_xfer:                          ## @smi_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, %rbx
	movq	48(%rdi), %r13
	movl	(%rdi), %r12d
	movl	16(%rdi), %edi
	callq	_smi_read
	movl	%eax, %r14d
	testl	%r12d, 4(%rbx)
	je	LBB0_5
## %bb.1:
	movl	%r14d, %eax
	andl	$48, %eax
	cmpl	$16, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%r13), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	40(%rbx), %edi
	callq	_smi_read
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	movl	$4194304, %r15d                 ## imm = 0x400000
	cmovnel	%eax, %r15d
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
LBB0_4:
	leaq	32(%rbx), %rdi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	%r15d, %eax
	movl	$2924233053, %edx               ## imm = 0xAE4C415D
	imulq	%rax, %rdx
	shrq	$39, %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dvb_dmx_swfilter_packets
LBB0_5:
	movl	12(%rbx), %eax
	andl	%r12d, %eax
	je	LBB0_10
## %bb.6:
	movl	%r14d, %ecx
	andl	$3145728, %ecx                  ## imm = 0x300000
	cmpl	$1048576, %ecx                  ## imm = 0x100000
	jne	LBB0_10
## %bb.7:
	movq	(%r13), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	36(%rbx), %edi
	callq	_smi_read
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	movl	$4194304, %r15d                 ## imm = 0x400000
	cmovnel	%eax, %r15d
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
LBB0_9:
	leaq	32(%rbx), %rdi
	movq	24(%rbx), %rax
	movl	4(%rax), %esi
	movl	%r15d, %eax
	movl	$2924233053, %edx               ## imm = 0xAE4C415D
	imulq	%rax, %rdx
	shrq	$39, %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dvb_dmx_swfilter_packets
	movl	12(%rbx), %eax
	andl	%r12d, %eax
LBB0_10:
	andl	4(%rbx), %r12d
	movl	%r14d, %ecx
	orl	$2, %ecx
	testl	%r12d, %r12d
	cmovel	%r14d, %ecx
	movl	%ecx, %esi
	orl	$131072, %esi                   ## imm = 0x20000
	testl	%eax, %eax
	cmovel	%ecx, %esi
	movl	16(%rbx), %edi
	callq	_smi_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smi_port_enableInterrupt       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port[%d]-DMA CH0 engine complete successful !\n"

	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ## @SMI_TS_DMA_BUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"DMA CH0 engine complete length mismatched, finish data=%d !\n"

L_.str.2:                               ## @.str.2
	.asciz	"Port[%d]-DMA CH1 engine complete successful !\n"

L_.str.3:                               ## @.str.3
	.asciz	"DMA CH1 engine complete length mismatched, finish data=%d !\n"

	.no_dead_strip	_smi_dma_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_dma_xfer
_smi_dma_xfer:                          ; @smi_dma_xfer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x23, [x0, #48]
	ldr	w22, [x0]
	ldr	w0, [x0, #16]
	bl	_smi_read
	mov	x20, x0
	ldr	w8, [x19, #4]
	and	w8, w8, w22
	and	w9, w0, #0x30
	cmp	w8, #0
	ccmp	w9, #16, #0, ne
Lloh0:
	adrp	x24, _SMI_TS_DMA_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SMI_TS_DMA_BUF_SIZE@GOTPAGEOFF]
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x23]
	ldr	w2, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #40]
	bl	_smi_read
	ands	w8, w0, #0x3fffff
	mov	w9, #4194304
	csel	w21, w9, w8, eq
	ldr	w8, [x24]
	cmp	w21, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x23]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
LBB0_3:
	add	x0, x19, #32
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	w8, #16733
	movk	w8, #44620, lsl #16
	umull	x8, w21, w8
	lsr	x2, x8, #39
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dvb_dmx_swfilter_packets
LBB0_4:
	ldr	w8, [x19, #12]
	ands	w8, w8, w22
	b.eq	LBB0_9
; %bb.5:
	and	w9, w20, #0x300000
	cmp	w9, #256, lsl #12               ; =1048576
	b.ne	LBB0_9
; %bb.6:
	ldr	x0, [x23]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #36]
	bl	_smi_read
	ands	w8, w0, #0x3fffff
	mov	w9, #4194304
	csel	w21, w9, w8, eq
	ldr	w8, [x24]
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x23]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
LBB0_8:
	add	x0, x19, #32
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	mov	w8, #16733
	movk	w8, #44620, lsl #16
	umull	x8, w21, w8
	lsr	x2, x8, #39
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dvb_dmx_swfilter_packets
	ldr	w8, [x19, #12]
	and	w8, w8, w22
LBB0_9:
	ldr	w9, [x19, #4]
	orr	w10, w20, #0x2
	tst	w9, w22
	csel	w9, w20, w10, eq
	orr	w10, w9, #0x20000
	cmp	w8, #0
	csel	w1, w9, w10, eq
	ldr	w0, [x19, #16]
	bl	_smi_write
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_smi_port_enableInterrupt
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port[%d]-DMA CH0 engine complete successful !\n"

	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ; @SMI_TS_DMA_BUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"DMA CH0 engine complete length mismatched, finish data=%d !\n"

l_.str.2:                               ; @.str.2
	.asciz	"Port[%d]-DMA CH1 engine complete successful !\n"

l_.str.3:                               ; @.str.3
	.asciz	"DMA CH1 engine complete length mismatched, finish data=%d !\n"

	.no_dead_strip	_smi_dma_xfer
.subsections_via_symbols
