	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_init_bcm8002
_tg3_init_bcm8002:                      ## @tg3_init_bcm8002
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r14d
	movq	_INIT_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	movl	$22, %esi
	movl	$32775, %edx                    ## imm = 0x8007
	callq	_tg3_writephy
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tg3_writephy
	movl	$500, %ebx                      ## imm = 0x1F4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$33809, %edx                    ## imm = 0x8411
	callq	_tg3_writephy
	movq	%r15, %rdi
	movl	$17, %esi
	movl	$2576, %edx                     ## imm = 0xA10
	callq	_tg3_writephy
	movq	%r15, %rdi
	movl	$24, %esi
	movl	$160, %edx
	callq	_tg3_writephy
	movq	%r15, %rdi
	movl	$22, %esi
	movl	$16895, %edx                    ## imm = 0x41FF
	callq	_tg3_writephy
	movq	%r15, %rdi
	movl	$19, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_tg3_writephy
	movl	$40, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$19, %esi
	xorl	%edx, %edx
	callq	_tg3_writephy
	movq	%r15, %rdi
	movl	$17, %esi
	movl	$2640, %edx                     ## imm = 0xA50
	callq	_tg3_writephy
	movl	$40, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$17, %esi
	movl	$2576, %edx                     ## imm = 0xA10
	callq	_tg3_writephy
	movl	$15000, %ebx                    ## imm = 0x3A98
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$32785, %edx                    ## imm = 0x8011
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tg3_writephy                   ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_STATUS,4,2                 ## @MAC_STATUS
	.comm	_INIT_COMPLETE,4,2              ## @INIT_COMPLETE
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ## @MAC_STATUS_PCS_SYNCED
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.no_dead_strip	_tg3_init_bcm8002
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_init_bcm8002
_tg3_init_bcm8002:                      ; @tg3_init_bcm8002
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MAC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tr32
	mov	x20, x0
Lloh3:
	adrp	x8, _INIT_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INIT_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	w1, #22
	mov	w2, #32775
	bl	_tg3_writephy
Lloh9:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tg3_writephy
	mov	w20, #500
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_3
; %bb.4:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #33809
	bl	_tg3_writephy
	mov	x0, x19
	mov	w1, #17
	mov	w2, #2576
	bl	_tg3_writephy
	mov	x0, x19
	mov	w1, #24
	mov	w2, #160
	bl	_tg3_writephy
	mov	x0, x19
	mov	w1, #22
	mov	w2, #16895
	bl	_tg3_writephy
	mov	x0, x19
	mov	w1, #19
	mov	w2, #1024
	bl	_tg3_writephy
	mov	w0, #40
	bl	_udelay
	mov	x0, x19
	mov	w1, #19
	mov	w2, #0
	bl	_tg3_writephy
	mov	x0, x19
	mov	w1, #17
	mov	w2, #2640
	bl	_tg3_writephy
	mov	w0, #40
	bl	_udelay
	mov	x0, x19
	mov	w1, #17
	mov	w2, #2576
	bl	_tg3_writephy
	mov	w20, #15000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #32785
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tg3_writephy
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_STATUS,4,2                 ; @MAC_STATUS
	.comm	_INIT_COMPLETE,4,2              ; @INIT_COMPLETE
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ; @MAC_STATUS_PCS_SYNCED
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.no_dead_strip	_tg3_init_bcm8002
.subsections_via_symbols
