	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_tangox_reset
_nb8800_tangox_reset:                   ## @nb8800_tangox_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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_NB8800_TANGOX_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_nb8800_writeb
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_nb8800_writeb
	xorl	%eax, %eax
	callq	_wmb
	movl	(%rbx), %edi
	callq	_clk_get_rate
	movq	_MAX_MDC_CLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	%esi, %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_UP
	movq	_NB8800_TANGOX_MDIO_CLKDIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_nb8800_writew
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB8800_TANGOX_RESET,4,2        ## @NB8800_TANGOX_RESET
	.comm	_MAX_MDC_CLOCK,4,2              ## @MAX_MDC_CLOCK
	.comm	_NB8800_TANGOX_MDIO_CLKDIV,4,2  ## @NB8800_TANGOX_MDIO_CLKDIV
	.no_dead_strip	_nb8800_tangox_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_tangox_reset
_nb8800_tangox_reset:                   ; @nb8800_tangox_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x20, _NB8800_TANGOX_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NB8800_TANGOX_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_nb8800_writeb
	mov	w0, #1000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_nb8800_writeb
	bl	_wmb
	ldr	w0, [x19]
	bl	_clk_get_rate
Lloh2:
	adrp	x8, _MAX_MDC_CLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_MDC_CLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	bl	_DIV_ROUND_UP
	mov	x2, x0
Lloh5:
	adrp	x8, _NB8800_TANGOX_MDIO_CLKDIV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NB8800_TANGOX_MDIO_CLKDIV@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nb8800_writew
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NB8800_TANGOX_RESET,4,2        ; @NB8800_TANGOX_RESET
	.comm	_MAX_MDC_CLOCK,4,2              ; @MAX_MDC_CLOCK
	.comm	_NB8800_TANGOX_MDIO_CLKDIV,4,2  ; @NB8800_TANGOX_MDIO_CLKDIV
	.no_dead_strip	_nb8800_tangox_reset
.subsections_via_symbols
