	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_restart_ledma
_init_restart_ledma:                    ## @init_restart_ledma
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DMA_CSR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_sbus_readl
	movq	_DMA_HNDL_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_4:
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_sbus_readl
	movq	_DMA_E_BURSTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_DMA_BURST32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	jne	LBB0_5
## %bb.6:
	movq	_DMA_E_BURST16@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_DMA_E_BURST32@GOTPCREL(%rip), %rax
LBB0_7:
	movq	_DMA_DSBL_RD_DRN@GOTPCREL(%rip), %rdx
	movq	_DMA_DSBL_WR_INV@GOTPCREL(%rip), %rsi
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	movq	_DMA_FIFO_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DMA_EN_ENETAUI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	orl	%ecx, %eax
	notl	%ebx
	andl	%ecx, %ebx
	cmpq	$0, 16(%r14)
	cmovnel	%eax, %ebx
	movl	$20, %edi
	callq	_udelay
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_sbus_writel
	movl	$200, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
LBB0_1:
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_sbus_readl
	movq	_DMA_FIFO_ISDRAIN@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_barrier
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_sbus_readl
	testl	%eax, (%rbx)
	jne	LBB0_2
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CSR,8,3                    ## @DMA_CSR
	.comm	_DMA_HNDL_ERROR,4,2             ## @DMA_HNDL_ERROR
	.comm	_DMA_FIFO_ISDRAIN,4,2           ## @DMA_FIFO_ISDRAIN
	.comm	_DMA_E_BURSTS,4,2               ## @DMA_E_BURSTS
	.comm	_DMA_BURST32,4,2                ## @DMA_BURST32
	.comm	_DMA_E_BURST32,4,2              ## @DMA_E_BURST32
	.comm	_DMA_E_BURST16,4,2              ## @DMA_E_BURST16
	.comm	_DMA_DSBL_RD_DRN,4,2            ## @DMA_DSBL_RD_DRN
	.comm	_DMA_DSBL_WR_INV,4,2            ## @DMA_DSBL_WR_INV
	.comm	_DMA_FIFO_INV,4,2               ## @DMA_FIFO_INV
	.comm	_DMA_EN_ENETAUI,4,2             ## @DMA_EN_ENETAUI
	.no_dead_strip	_init_restart_ledma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_restart_ledma
_init_restart_ledma:                    ; @init_restart_ledma
	.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	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _DMA_CSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_CSR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
Lloh2:
	adrp	x8, _DMA_HNDL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_HNDL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
Lloh5:
	adrp	x8, _DMA_E_BURSTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_E_BURSTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _DMA_BURST32@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_BURST32@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _DMA_E_BURST16@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DMA_E_BURST16@GOTPAGEOFF]
Lloh13:
	adrp	x12, _DMA_E_BURST32@GOTPAGE
Lloh14:
	ldr	x12, [x12, _DMA_E_BURST32@GOTPAGEOFF]
	tst	w9, w10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _DMA_DSBL_RD_DRN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DMA_DSBL_RD_DRN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _DMA_DSBL_WR_INV@GOTPAGE
Lloh19:
	ldr	x11, [x11, _DMA_DSBL_WR_INV@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _DMA_FIFO_INV@GOTPAGE
Lloh22:
	ldr	x12, [x12, _DMA_FIFO_INV@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
Lloh24:
	adrp	x9, _DMA_EN_ENETAUI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DMA_EN_ENETAUI@GOTPAGEOFF]
	ldr	x10, [x19, #16]
Lloh26:
	ldr	w9, [x9]
	orr	w11, w9, w8
	bic	w8, w8, w9
	cmp	x10, #0
	csel	w20, w8, w11, eq
	mov	w0, #20
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_sbus_writel
	mov	w0, #200
	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	_udelay
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
Lloh27:
	adrp	x20, _DMA_FIFO_ISDRAIN@GOTPAGE
Lloh28:
	ldr	x20, [x20, _DMA_FIFO_ISDRAIN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_barrier
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CSR,8,3                    ; @DMA_CSR
	.comm	_DMA_HNDL_ERROR,4,2             ; @DMA_HNDL_ERROR
	.comm	_DMA_FIFO_ISDRAIN,4,2           ; @DMA_FIFO_ISDRAIN
	.comm	_DMA_E_BURSTS,4,2               ; @DMA_E_BURSTS
	.comm	_DMA_BURST32,4,2                ; @DMA_BURST32
	.comm	_DMA_E_BURST32,4,2              ; @DMA_E_BURST32
	.comm	_DMA_E_BURST16,4,2              ; @DMA_E_BURST16
	.comm	_DMA_DSBL_RD_DRN,4,2            ; @DMA_DSBL_RD_DRN
	.comm	_DMA_DSBL_WR_INV,4,2            ; @DMA_DSBL_WR_INV
	.comm	_DMA_FIFO_INV,4,2               ; @DMA_FIFO_INV
	.comm	_DMA_EN_ENETAUI,4,2             ; @DMA_EN_ENETAUI
	.no_dead_strip	_init_restart_ledma
.subsections_via_symbols
