	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_dma_receive
_start_dma_receive:                     ## @start_dma_receive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.3:
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%rax, (%rbx)
	movq	$0, 64(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	20(%rbx), %edi
	movl	40(%rbx), %esi
	movl	$-1, %edx
	callq	_reg_write
	xorl	%eax, %eax
	callq	_wmb
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_reg_write
	movl	20(%rbx), %edi
	movl	36(%rbx), %esi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	orl	8(%rbx), %edx
	callq	_reg_write
	movl	20(%rbx), %edi
	movl	32(%rbx), %esi
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	orl	$1, %edx
	callq	_reg_write
	xorl	%eax, %eax
	callq	_wmb
	movl	$1, 12(%rbx)
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_write
	movl	20(%rbx), %edi
	callq	_flush_pci_write
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_debug_printk                   ## TAILCALL
LBB0_1:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_reg_read
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_4
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_reg_read
	andl	$31, %eax
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_debug_printk
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$4096, %edx                     ## imm = 0x1000
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dv1394: DMA started\n"

L_.str.1:                               ## @.str.1
	.asciz	"DEAD, event = %x\n"

	.no_dead_strip	_start_dma_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_dma_receive
_start_dma_receive:                     ; @start_dma_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #-4294967296
	str	x8, [x19]
	stp	xzr, xzr, [x19, #56]
	str	xzr, [x19, #48]
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #40]
	mov	w2, #-1
	bl	_reg_write
	bl	_wmb
	ldp	w1, w0, [x19, #16]
	mov	w2, #1073741824
	bl	_reg_write
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #36]
	ldr	w8, [x19, #8]
	orr	w2, w8, #0xf0000000
	bl	_reg_write
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	orr	w2, w8, #0x1
	bl	_reg_write
	bl	_wmb
	mov	w8, #1
	str	w8, [x19, #12]
	ldp	w1, w0, [x19, #16]
	mov	w2, #32768
	bl	_reg_write
	ldr	w0, [x19, #20]
	bl	_flush_pci_write
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_debug_printk
LBB0_2:
	ldp	w1, w0, [x19, #16]
	bl	_reg_read
	tbnz	w0, #11, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldp	w1, w0, [x19, #16]
	bl	_reg_read
	and	w8, w0, #0x1f
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug_printk
	ldp	w1, w0, [x19, #16]
	mov	w2, #4096
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_reg_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dv1394: DMA started\n"

l_.str.1:                               ; @.str.1
	.asciz	"DEAD, event = %x\n"

	.no_dead_strip	_start_dma_receive
.subsections_via_symbols
