	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_phy_gather_ump_data
_tg3_phy_gather_ump_data:               ## @tg3_phy_gather_ump_data
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdx
	callq	_tg3_readphy
	movl	-44(%rbp), %ebx
	shll	$16, %ebx
	xorl	%r13d, %r13d
	testl	%eax, %eax
	cmovnel	%r13d, %ebx
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_tg3_readphy
	testl	%eax, %eax
	movzwl	-44(%rbp), %eax
	cmovnel	%r13d, %eax
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_tg3_readphy
	movl	-44(%rbp), %ebx
	shll	$16, %ebx
	testl	%eax, %eax
	cmovnel	%r13d, %ebx
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_tg3_readphy
	testl	%eax, %eax
	movzwl	-44(%rbp), %eax
	cmovnel	%r13d, %eax
	orl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	_TG3_PHYFLG_MII_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %ebx
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_tg3_readphy
	movl	-44(%rbp), %ecx
	shll	$16, %ecx
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovel	%ecx, %ebx
	movq	_MII_STAT1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_tg3_readphy
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movzwl	-44(%rbp), %eax
	orl	%eax, %ebx
LBB0_3:
	movl	%ebx, 8(%r14)
	movq	_MII_PHYADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_tg3_readphy
	movl	-44(%rbp), %ecx
	shll	$16, %ecx
	testl	%eax, %eax
	cmovel	%ecx, %r13d
	movl	%r13d, 12(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_TG3_PHYFLG_MII_SERDES,4,2      ## @TG3_PHYFLG_MII_SERDES
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_MII_STAT1000,4,2               ## @MII_STAT1000
	.comm	_MII_PHYADDR,4,2                ## @MII_PHYADDR
	.no_dead_strip	_tg3_phy_gather_ump_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_phy_gather_ump_data
_tg3_phy_gather_ump_data:               ; @tg3_phy_gather_ump_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_tg3_readphy
	ldr	w8, [sp, #12]
	lsl	w8, w8, #16
	cmp	w0, #0
	csel	w21, w8, wzr, eq
Lloh3:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	ldrh	w8, [sp, #12]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w8, w8, w21
	str	w8, [x19]
Lloh6:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	ldr	w8, [sp, #12]
	lsl	w8, w8, #16
	cmp	w0, #0
	csel	w22, w8, wzr, eq
Lloh9:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	mov	w21, #0
	ldrh	w8, [sp, #12]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w8, w8, w22
	str	w8, [x19, #4]
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _TG3_PHYFLG_MII_SERDES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TG3_PHYFLG_MII_SERDES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	ldr	w8, [sp, #12]
	lsl	w8, w8, #16
	cmp	w0, #0
	csel	w21, w8, wzr, eq
Lloh18:
	adrp	x8, _MII_STAT1000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MII_STAT1000@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	cbnz	w0, LBB0_3
; %bb.2:
	ldrh	w8, [sp, #12]
	orr	w21, w8, w21
LBB0_3:
	str	w21, [x19, #8]
Lloh21:
	adrp	x8, _MII_PHYADDR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_PHYADDR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_tg3_readphy
	ldr	w8, [sp, #12]
	lsl	w8, w8, #16
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	str	w8, [x19, #12]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_TG3_PHYFLG_MII_SERDES,4,2      ; @TG3_PHYFLG_MII_SERDES
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_MII_STAT1000,4,2               ; @MII_STAT1000
	.comm	_MII_PHYADDR,4,2                ; @MII_PHYADDR
	.no_dead_strip	_tg3_phy_gather_ump_data
.subsections_via_symbols
