	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc589_reset
_tc589_reset:                           ## @tc589_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	xorl	%edi, %edi
	callq	_EL3WINDOW
	leal	4(%rbx), %r13d
	movl	$1, %edi
	movl	%r13d, %esi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	callq	_outw
	leal	8(%rbx), %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	$16128, %edi                    ## imm = 0x3F00
	callq	_outw
	movl	$2, %edi
	callq	_EL3WINDOW
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_outb
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	leal	1(%rbx), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_outb
	movq	8(%r14), %rax
	movl	8(%rax), %edi
	leal	2(%rbx), %r15d
	movl	%r15d, %esi
	callq	_outb
	movq	8(%r14), %rax
	movl	12(%rax), %edi
	leal	3(%rbx), %r12d
	movl	%r12d, %esi
	callq	_outb
	movq	8(%r14), %rax
	movl	16(%rax), %edi
	movl	%r13d, %esi
	callq	_outb
	movq	8(%r14), %rax
	movl	20(%rax), %edi
	leal	5(%rbx), %r13d
	movl	%r13d, %esi
	callq	_outb
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_tc589_set_xcvr
	movq	_StatsDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	callq	_outw
	movl	$6, %edi
	callq	_EL3WINDOW
	movl	%ebx, %edi
	callq	_inb
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_inb
	movl	%r15d, %edi
	callq	_inb
	movl	%r12d, %edi
	callq	_inb
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_inb
	movl	%r13d, %edi
	callq	_inb
	leal	6(%rbx), %edi
	callq	_inb
	leal	7(%rbx), %edi
	callq	_inb
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_inb
	leal	10(%rbx), %edi
	callq	_inw
	leal	12(%rbx), %edi
	callq	_inw
	movl	$1, %edi
	callq	_EL3WINDOW
	movq	%r14, %rdi
	callq	_set_rx_mode
	movq	_StatsEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outw
	movq	_RxEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outw
	movq	_TxEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outw
	movq	_SetStatusEnb@GOTPCREL(%rip), %rax
	movl	$255, %edi
	orl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outw
	movq	_AckIntr@GOTPCREL(%rip), %rax
	movq	_IntLatch@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	orl	(%rax), %edi
	movq	_TxAvailable@GOTPCREL(%rip), %r15
	orl	(%r15), %edi
	movq	_RxEarly@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_IntReq@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outw
	movq	_SetIntrEnb@GOTPCREL(%rip), %rax
	movl	(%r14), %edi
	orl	(%rax), %edi
	orl	(%r15), %edi
	movq	_RxComplete@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_StatsFull@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_AdapterFailure@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	addl	(%r12), %ebx
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_StatsDisable,4,2               ## @StatsDisable
	.comm	_EL3_CMD,4,2                    ## @EL3_CMD
	.comm	_StatsEnable,4,2                ## @StatsEnable
	.comm	_RxEnable,4,2                   ## @RxEnable
	.comm	_TxEnable,4,2                   ## @TxEnable
	.comm	_SetStatusEnb,4,2               ## @SetStatusEnb
	.comm	_AckIntr,4,2                    ## @AckIntr
	.comm	_IntLatch,4,2                   ## @IntLatch
	.comm	_TxAvailable,4,2                ## @TxAvailable
	.comm	_RxEarly,4,2                    ## @RxEarly
	.comm	_IntReq,4,2                     ## @IntReq
	.comm	_SetIntrEnb,4,2                 ## @SetIntrEnb
	.comm	_RxComplete,4,2                 ## @RxComplete
	.comm	_StatsFull,4,2                  ## @StatsFull
	.comm	_AdapterFailure,4,2             ## @AdapterFailure
	.no_dead_strip	_tc589_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc589_reset
_tc589_reset:                           ; @tc589_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	x20, x0
	ldr	w19, [x0]
	mov	w0, #0
	bl	_EL3WINDOW
	add	w22, w19, #4
	mov	w0, #1
	mov	x1, x22
	bl	_outw
	add	w21, w19, #8
	mov	w0, #16128
	mov	x1, x21
	bl	_outw
	mov	w0, #2
	bl	_EL3WINDOW
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	add	w23, w19, #1
	mov	x1, x23
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	add	w24, w19, #2
	mov	x1, x24
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #12]
	add	w25, w19, #3
	mov	x1, x25
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #16]
	mov	x1, x22
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #20]
	add	w26, w19, #5
	mov	x1, x26
	bl	_outb
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_tc589_set_xcvr
Lloh0:
	adrp	x8, _StatsDisable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _StatsDisable@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x27, _EL3_CMD@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EL3_CMD@GOTPAGEOFF]
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
	mov	w0, #6
	bl	_EL3WINDOW
	mov	x0, x19
	bl	_inb
	mov	x0, x23
	bl	_inb
	mov	x0, x24
	bl	_inb
	mov	x0, x25
	bl	_inb
	mov	x0, x22
	bl	_inb
	mov	x0, x26
	bl	_inb
	add	w0, w19, #6
	bl	_inb
	add	w0, w19, #7
	bl	_inb
	mov	x0, x21
	bl	_inb
	add	w0, w19, #10
	bl	_inw
	add	w0, w19, #12
	bl	_inw
	mov	w0, #1
	bl	_EL3WINDOW
	mov	x0, x20
	bl	_set_rx_mode
Lloh5:
	adrp	x8, _StatsEnable@GOTPAGE
Lloh6:
	ldr	x8, [x8, _StatsEnable@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
Lloh8:
	adrp	x8, _RxEnable@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RxEnable@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
Lloh11:
	adrp	x8, _TxEnable@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TxEnable@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
Lloh14:
	adrp	x8, _SetStatusEnb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SetStatusEnb@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, #0xff
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
Lloh17:
	adrp	x8, _AckIntr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AckIntr@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x20, _IntLatch@GOTPAGE
Lloh21:
	ldr	x20, [x20, _IntLatch@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh22:
	adrp	x21, _TxAvailable@GOTPAGE
Lloh23:
	ldr	x21, [x21, _TxAvailable@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _RxEarly@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RxEarly@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _IntReq@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IntReq@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w8, [x27]
	add	w1, w8, w19
	bl	_outw
Lloh30:
	adrp	x8, _SetIntrEnb@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SetIntrEnb@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _RxComplete@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RxComplete@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _StatsFull@GOTPAGE
Lloh37:
	ldr	x9, [x9, _StatsFull@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _AdapterFailure@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AdapterFailure@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w8, [x27]
	add	w1, w8, w19
	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	_outw
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	_StatsDisable,4,2               ; @StatsDisable
	.comm	_EL3_CMD,4,2                    ; @EL3_CMD
	.comm	_StatsEnable,4,2                ; @StatsEnable
	.comm	_RxEnable,4,2                   ; @RxEnable
	.comm	_TxEnable,4,2                   ; @TxEnable
	.comm	_SetStatusEnb,4,2               ; @SetStatusEnb
	.comm	_AckIntr,4,2                    ; @AckIntr
	.comm	_IntLatch,4,2                   ; @IntLatch
	.comm	_TxAvailable,4,2                ; @TxAvailable
	.comm	_RxEarly,4,2                    ; @RxEarly
	.comm	_IntReq,4,2                     ; @IntReq
	.comm	_SetIntrEnb,4,2                 ; @SetIntrEnb
	.comm	_RxComplete,4,2                 ; @RxComplete
	.comm	_StatsFull,4,2                  ; @StatsFull
	.comm	_AdapterFailure,4,2             ; @AdapterFailure
	.no_dead_strip	_tc589_reset
.subsections_via_symbols
