	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipg_init_mii
_ipg_init_mii:                          ## @ipg_init_mii
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movq	_mdio_read@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movabsq	$133143986207, %rax             ## imm = 0x1F0000001F
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_ipg_find_phyaddr
	movl	%eax, 24(%rbx)
	cmpl	$31, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	$0, -44(%rbp)
	movq	_MII_CTRL1000@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdio_read
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_GMII_PHY_1000BASETCONTROL_PreferMaster@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_mdio_write
	movq	_MII_BMCR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mdio_read
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movq	_PCI_REVISION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-44(%rbp), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ipg_set_phy_default_param
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %ecx
	callq	_mdio_write
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.comm	_GMII_PHY_1000BASETCONTROL_PreferMaster,4,2 ## @GMII_PHY_1000BASETCONTROL_PreferMaster
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_PCI_REVISION_ID,4,2            ## @PCI_REVISION_ID
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.no_dead_strip	_ipg_init_mii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipg_init_mii
_ipg_init_mii:                          ; @ipg_init_mii
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _mdio_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mdio_read@GOTPAGEOFF]
	str	x8, [x0, #8]
Lloh2:
	adrp	x8, _mdio_write@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mdio_write@GOTPAGEOFF]
	stp	x8, x19, [x0, #32]
	movi.2s	v0, #31
	str	d0, [x0, #16]
	mov	x0, x19
	bl	_ipg_find_phyaddr
	str	w0, [x21, #24]
	cmp	w0, #31
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh4:
	adrp	x22, _MII_CTRL1000@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_mdio_read
Lloh6:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ADVERTISE_1000HALF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh11:
	adrp	x10, _GMII_PHY_1000BASETCONTROL_PreferMaster@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GMII_PHY_1000BASETCONTROL_PreferMaster@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w3, w8, w10
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_mdio_write
Lloh15:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_mdio_read
	mov	x22, x0
	ldr	w0, [x21]
Lloh17:
	adrp	x8, _PCI_REVISION_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_REVISION_ID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w0, [sp, #12]
	mov	x1, x19
	mov	x2, x20
	bl	_ipg_set_phy_default_param
Lloh20:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w3, w8, w9
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_mdio_write
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.comm	_GMII_PHY_1000BASETCONTROL_PreferMaster,4,2 ; @GMII_PHY_1000BASETCONTROL_PreferMaster
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_PCI_REVISION_ID,4,2            ; @PCI_REVISION_ID
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.no_dead_strip	_ipg_init_mii
.subsections_via_symbols
