	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_phy_reset_chanpat
_tg3_phy_reset_chanpat:                 ## @tg3_phy_reset_chanpat
	.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, %rbx
	movl	$512, %r14d                     ## imm = 0x200
	movq	_MII_TG3_DSP_ADDRESS@GOTPCREL(%rip), %r15
	movq	_MII_TG3_DSP_CONTROL@GOTPCREL(%rip), %r12
	movq	_MII_TG3_DSP_RW_PORT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_tg3_writephy
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$514, %edx                      ## imm = 0x202
	callq	_tg3_writephy
	movq	%rbx, %rdi
	callq	_tg3_wait_macro_done
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$8192, %r14d                    ## imm = 0x2000
	cmpl	$33280, %r14d                   ## imm = 0x8200
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_TG3_DSP_ADDRESS,4,2        ## @MII_TG3_DSP_ADDRESS
	.comm	_MII_TG3_DSP_CONTROL,4,2        ## @MII_TG3_DSP_CONTROL
	.comm	_MII_TG3_DSP_RW_PORT,4,2        ## @MII_TG3_DSP_RW_PORT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tg3_phy_reset_chanpat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_phy_reset_chanpat
_tg3_phy_reset_chanpat:                 ; @tg3_phy_reset_chanpat
	.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, x0
Lloh0:
	adrp	x21, _MII_TG3_DSP_ADDRESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_TG3_DSP_ADDRESS@GOTPAGEOFF]
	mov	w20, #512
Lloh2:
	adrp	x22, _MII_TG3_DSP_CONTROL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MII_TG3_DSP_CONTROL@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MII_TG3_DSP_RW_PORT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MII_TG3_DSP_RW_PORT@GOTPAGEOFF]
	mov	w24, #33280
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_tg3_writephy
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_tg3_writephy
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #514
	bl	_tg3_writephy
	mov	x0, x19
	bl	_tg3_wait_macro_done
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #2, lsl #12           ; =8192
	cmp	w20, w24
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_TG3_DSP_ADDRESS,4,2        ; @MII_TG3_DSP_ADDRESS
	.comm	_MII_TG3_DSP_CONTROL,4,2        ; @MII_TG3_DSP_CONTROL
	.comm	_MII_TG3_DSP_RW_PORT,4,2        ; @MII_TG3_DSP_RW_PORT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tg3_phy_reset_chanpat
.subsections_via_symbols
