	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac100_dma_init
_mac100_dma_init:                       ## @mac100_dma_init
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_DMA_BUS_MODE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_readl
	movq	_DMA_BUS_MODE_SFT_RESET@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writel
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_readl
	testl	%eax, (%r14)
	jne	LBB0_1
## %bb.2:
	movq	_DMA_BUS_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movq	_DMA_BUS_MODE_PBL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	orl	(%rax), %r12d
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_DMA_INTR_DEFAULT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_INTR_ENA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_writel
	movq	_DMA_TX_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_DMA_RCV_BASE_ADDR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_BUS_MODE,8,3               ## @DMA_BUS_MODE
	.comm	_DMA_BUS_MODE_SFT_RESET,4,2     ## @DMA_BUS_MODE_SFT_RESET
	.comm	_DMA_BUS_MODE_DEFAULT,4,2       ## @DMA_BUS_MODE_DEFAULT
	.comm	_DMA_BUS_MODE_PBL_SHIFT,4,2     ## @DMA_BUS_MODE_PBL_SHIFT
	.comm	_DMA_INTR_DEFAULT_MASK,4,2      ## @DMA_INTR_DEFAULT_MASK
	.comm	_DMA_INTR_ENA,8,3               ## @DMA_INTR_ENA
	.comm	_DMA_TX_BASE_ADDR,8,3           ## @DMA_TX_BASE_ADDR
	.comm	_DMA_RCV_BASE_ADDR,8,3          ## @DMA_RCV_BASE_ADDR
	.no_dead_strip	_mac100_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac100_dma_init
_mac100_dma_init:                       ; @mac100_dma_init
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _DMA_BUS_MODE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_BUS_MODE@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x0
	bl	_readl
Lloh2:
	adrp	x24, _DMA_BUS_MODE_SFT_RESET@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_BUS_MODE_SFT_RESET@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w0, w8, w0
	ldr	x8, [x23]
	add	x1, x8, x20
	bl	_writel
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x20
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
Lloh4:
	adrp	x8, _DMA_BUS_MODE_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_BUS_MODE_DEFAULT@GOTPAGEOFF]
Lloh6:
	adrp	x9, _DMA_BUS_MODE_PBL_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_BUS_MODE_PBL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w0, w9, w8
	ldr	x8, [x23]
	add	x1, x8, x20
	bl	_writel
Lloh10:
	adrp	x8, _DMA_INTR_DEFAULT_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_INTR_DEFAULT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _DMA_INTR_ENA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_INTR_ENA@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_writel
Lloh16:
	adrp	x8, _DMA_TX_BASE_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_TX_BASE_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x21
	bl	_writel
Lloh19:
	adrp	x8, _DMA_RCV_BASE_ADDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_RCV_BASE_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_writel
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_BUS_MODE,8,3               ; @DMA_BUS_MODE
	.comm	_DMA_BUS_MODE_SFT_RESET,4,2     ; @DMA_BUS_MODE_SFT_RESET
	.comm	_DMA_BUS_MODE_DEFAULT,4,2       ; @DMA_BUS_MODE_DEFAULT
	.comm	_DMA_BUS_MODE_PBL_SHIFT,4,2     ; @DMA_BUS_MODE_PBL_SHIFT
	.comm	_DMA_INTR_DEFAULT_MASK,4,2      ; @DMA_INTR_DEFAULT_MASK
	.comm	_DMA_INTR_ENA,8,3               ; @DMA_INTR_ENA
	.comm	_DMA_TX_BASE_ADDR,8,3           ; @DMA_TX_BASE_ADDR
	.comm	_DMA_RCV_BASE_ADDR,8,3          ; @DMA_RCV_BASE_ADDR
	.no_dead_strip	_mac100_dma_init
.subsections_via_symbols
