	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1dma_reset                    ## -- Begin function b1dma_reset
	.p2align	4, 0x90
_b1dma_reset:                           ## @b1dma_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	_AMCC_INTCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_b1dma_writel
	movq	_AMCC_MCSR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b1dma_writel
	movq	_AMCC_RXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b1dma_writel
	movq	_AMCC_TXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b1dma_writel
	movl	16(%rbx), %edi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_t1outp
	movl	16(%rbx), %edi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_t1outp
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b1dma_writel
	movl	$10, %edi
	callq	_mdelay
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$251658240, %esi                ## imm = 0xF000000
	callq	_b1dma_writel
	movl	$10, %edi
	callq	_mdelay
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b1dma_writel
	movq	8(%rbx), %rax
	movq	_avm_t1pci@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	shll	$5, %edi
	orl	$10, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMCC_INTCSR,4,2                ## @AMCC_INTCSR
	.comm	_AMCC_MCSR,4,2                  ## @AMCC_MCSR
	.comm	_AMCC_RXLEN,4,2                 ## @AMCC_RXLEN
	.comm	_AMCC_TXLEN,4,2                 ## @AMCC_TXLEN
	.comm	_avm_t1pci,8,3                  ## @avm_t1pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1dma_reset                    ; -- Begin function b1dma_reset
	.p2align	2
_b1dma_reset:                           ; @b1dma_reset
	.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
	str	wzr, [x0]
Lloh0:
	adrp	x8, _AMCC_INTCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMCC_INTCSR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_b1dma_writel
Lloh3:
	adrp	x20, _AMCC_MCSR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AMCC_MCSR@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_b1dma_writel
Lloh5:
	adrp	x8, _AMCC_RXLEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AMCC_RXLEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_b1dma_writel
Lloh8:
	adrp	x8, _AMCC_TXLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMCC_TXLEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_b1dma_writel
	ldr	w0, [x19, #16]
	mov	w1, #16
	mov	w2, #0
	bl	_t1outp
	ldr	w0, [x19, #16]
	mov	w1, #7
	mov	w2, #0
	bl	_t1outp
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_b1dma_writel
	mov	w21, #10
	mov	w0, #10
	bl	_mdelay
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #251658240
	bl	_b1dma_writel
	mov	w0, #10
	bl	_mdelay
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_b1dma_writel
Lloh11:
	adrp	x8, _avm_t1pci@GOTPAGE
Lloh12:
	ldr	x8, [x8, _avm_t1pci@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #42
	csel	w0, w8, w21, eq
	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	_mdelay
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMCC_INTCSR,4,2                ; @AMCC_INTCSR
	.comm	_AMCC_MCSR,4,2                  ; @AMCC_MCSR
	.comm	_AMCC_RXLEN,4,2                 ; @AMCC_RXLEN
	.comm	_AMCC_TXLEN,4,2                 ; @AMCC_TXLEN
	.comm	_avm_t1pci,8,3                  ; @avm_t1pci
.subsections_via_symbols
