	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_sw_reset
_bdx_sw_reset:                          ## @bdx_sw_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	%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, %r14
	movq	_regGMAC_RXF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movl	$100, %edi
	callq	_mdelay
	movq	_regDIS_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_WRITE_REG
	movq	_regDIS_QU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_WRITE_REG
	movl	$50, %ebx
	movq	_regRST_PORT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_READ_REG
	testb	$1, %al
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_mdelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_4:
	movq	_regRDINTCM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regTDINTCM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_READ_REG
	movq	_regRST_QU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_WRITE_REG
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_WRITE_REG
	movq	_regTXD_WPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_regTXF_RPTR_3@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jg	LBB0_8
## %bb.5:
	movq	_TXF_WPTR_WR_PTR@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_READ_REG
	andl	(%r12), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DBG
	addl	$16, %ebx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jle	LBB0_6
## %bb.7:
	movq	_regTXD_WPTR_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_regRST_PORT@GOTPCREL(%rip), %r15
	movq	_regDIS_PORT@GOTPCREL(%rip), %r12
LBB0_8:
	cmpl	%eax, %ebx
	jg	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_WRITE_REG
	addl	$16, %ebx
	cmpl	(%r13), %ebx
	jle	LBB0_9
LBB0_10:
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regDIS_QU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regRST_QU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WRITE_REG
	movq	_regTXD_WPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	(%r13), %ebx
	jg	LBB0_13
## %bb.11:
	movq	_TXF_WPTR_WR_PTR@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_READ_REG
	andl	(%r12), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DBG
	addl	$16, %ebx
	cmpl	(%r13), %ebx
	jle	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.comm	_regGMAC_RXF_A,4,2              ## @regGMAC_RXF_A
	.comm	_regDIS_PORT,4,2                ## @regDIS_PORT
	.comm	_regDIS_QU,4,2                  ## @regDIS_QU
	.comm	_regRST_PORT,4,2                ## @regRST_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SW reset timeout. continuing anyway\n"

	.comm	_regRDINTCM0,4,2                ## @regRDINTCM0
	.comm	_regTDINTCM0,4,2                ## @regTDINTCM0
	.comm	_regIMR,4,2                     ## @regIMR
	.comm	_regISR,4,2                     ## @regISR
	.comm	_regRST_QU,4,2                  ## @regRST_QU
	.comm	_regTXD_WPTR_0,4,2              ## @regTXD_WPTR_0
	.comm	_regTXF_RPTR_3,4,2              ## @regTXF_RPTR_3
L_.str.1:                               ## @.str.1
	.asciz	"%x = %x\n"

	.comm	_TXF_WPTR_WR_PTR,4,2            ## @TXF_WPTR_WR_PTR
	.no_dead_strip	_bdx_sw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_sw_reset
_bdx_sw_reset:                          ; @bdx_sw_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _regGMAC_RXF_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regGMAC_RXF_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_WRITE_REG
	mov	w0, #100
	bl	_mdelay
Lloh3:
	adrp	x23, _regDIS_PORT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _regDIS_PORT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_WRITE_REG
Lloh5:
	adrp	x24, _regDIS_QU@GOTPAGE
Lloh6:
	ldr	x24, [x24, _regDIS_QU@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_WRITE_REG
	mov	w20, #50
Lloh7:
	adrp	x22, _regRST_PORT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _regRST_PORT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_READ_REG
	tbnz	w0, #0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_mdelay
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_4:
Lloh11:
	adrp	x8, _regRDINTCM0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _regRDINTCM0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
Lloh14:
	adrp	x8, _regTDINTCM0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _regTDINTCM0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
Lloh17:
	adrp	x8, _regIMR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _regIMR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
Lloh20:
	adrp	x8, _regISR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _regISR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_READ_REG
Lloh23:
	adrp	x27, _regRST_QU@GOTPAGE
Lloh24:
	ldr	x27, [x27, _regRST_QU@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #1
	bl	_WRITE_REG
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_WRITE_REG
Lloh25:
	adrp	x28, _regTXD_WPTR_0@GOTPAGE
Lloh26:
	ldr	x28, [x28, _regTXD_WPTR_0@GOTPAGEOFF]
	ldr	w20, [x28]
Lloh27:
	adrp	x25, _regTXF_RPTR_3@GOTPAGE
Lloh28:
	ldr	x25, [x25, _regTXF_RPTR_3@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh29:
	adrp	x26, _TXF_WPTR_WR_PTR@GOTPAGE
Lloh30:
	ldr	x26, [x26, _TXF_WPTR_WR_PTR@GOTPAGEOFF]
	cmp	w20, w8
	b.gt	LBB0_9
; %bb.5:
Lloh31:
	adrp	x21, l_.str.1@PAGE
Lloh32:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_READ_REG
	ldr	w8, [x26]
	and	w2, w8, w0
	mov	x0, x21
	mov	x1, x20
	bl	_DBG
	add	w20, w20, #16
	ldr	w8, [x25]
	cmp	w20, w8
	b.le	LBB0_6
; %bb.7:
	ldr	w20, [x28]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_WRITE_REG
	add	w20, w20, #16
	ldr	w8, [x25]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w8
	b.le	LBB0_8
; %bb.10:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_WRITE_REG
	ldr	w20, [x28]
	ldr	w8, [x25]
	cmp	w20, w8
	b.gt	LBB0_13
; %bb.11:
Lloh33:
	adrp	x21, l_.str.1@PAGE
Lloh34:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_READ_REG
	ldr	w8, [x26]
	and	w2, w8, w0
	mov	x0, x21
	mov	x1, x20
	bl	_DBG
	add	w20, w20, #16
	ldr	w8, [x25]
	cmp	w20, w8
	b.le	LBB0_12
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RET
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.comm	_regGMAC_RXF_A,4,2              ; @regGMAC_RXF_A
	.comm	_regDIS_PORT,4,2                ; @regDIS_PORT
	.comm	_regDIS_QU,4,2                  ; @regDIS_QU
	.comm	_regRST_PORT,4,2                ; @regRST_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SW reset timeout. continuing anyway\n"

	.comm	_regRDINTCM0,4,2                ; @regRDINTCM0
	.comm	_regTDINTCM0,4,2                ; @regTDINTCM0
	.comm	_regIMR,4,2                     ; @regIMR
	.comm	_regISR,4,2                     ; @regISR
	.comm	_regRST_QU,4,2                  ; @regRST_QU
	.comm	_regTXD_WPTR_0,4,2              ; @regTXD_WPTR_0
	.comm	_regTXF_RPTR_3,4,2              ; @regTXF_RPTR_3
l_.str.1:                               ; @.str.1
	.asciz	"%x = %x\n"

	.comm	_TXF_WPTR_WR_PTR,4,2            ; @TXF_WPTR_WR_PTR
	.no_dead_strip	_bdx_sw_reset
.subsections_via_symbols
