	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_phy_initialize
_smsc95xx_phy_initialize:               ## @smsc95xx_phy_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	movl	%edi, 32(%rbx)
	movq	_smsc95xx_mdio_read@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_smsc95xx_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movabsq	$133143986207, %rax             ## imm = 0x1F0000001F
	movq	%rax, (%rbx)
	movq	_SMSC95XX_INTERNAL_PHY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%rbx)
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_smsc95xx_mdio_write
	movl	8(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_smsc95xx_mdio_write
	movl	8(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_PHY_INT_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_smsc95xx_mdio_read
	movl	8(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_PHY_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_INT_MASK_DEFAULT_@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_smsc95xx_mdio_write
	movq	%rbx, %rdi
	callq	_mii_nway_restart
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devdbg
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMSC95XX_INTERNAL_PHY_ID,4,2   ## @SMSC95XX_INTERNAL_PHY_ID
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_PHY_INT_SRC,4,2                ## @PHY_INT_SRC
	.comm	_PHY_INT_MASK,4,2               ## @PHY_INT_MASK
	.comm	_PHY_INT_MASK_DEFAULT_,4,2      ## @PHY_INT_MASK_DEFAULT_
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy initialised succesfully"

	.no_dead_strip	_smsc95xx_phy_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_phy_initialize
_smsc95xx_phy_initialize:               ; @smsc95xx_phy_initialize
	.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
	ldr	w0, [x0, #40]
	str	w0, [x19, #32]
Lloh0:
	adrp	x8, _smsc95xx_mdio_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smsc95xx_mdio_read@GOTPAGEOFF]
Lloh2:
	adrp	x9, _smsc95xx_mdio_write@GOTPAGE
Lloh3:
	ldr	x9, [x9, _smsc95xx_mdio_write@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	movi.2s	v0, #31
	str	d0, [x19]
Lloh4:
	adrp	x8, _SMSC95XX_INTERNAL_PHY_ID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SMSC95XX_INTERNAL_PHY_ID@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	str	w1, [x19, #8]
Lloh7:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	bl	_smsc95xx_mdio_write
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #8]
Lloh13:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w8, w9
	bl	_smsc95xx_mdio_write
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #8]
Lloh28:
	adrp	x8, _PHY_INT_SRC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PHY_INT_SRC@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_smsc95xx_mdio_read
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #8]
Lloh31:
	adrp	x8, _PHY_INT_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHY_INT_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _PHY_INT_MASK_DEFAULT_@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PHY_INT_MASK_DEFAULT_@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	bl	_smsc95xx_mdio_write
	mov	x0, x19
	bl	_mii_nway_restart
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_2
; %bb.1:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SMSC95XX_INTERNAL_PHY_ID,4,2   ; @SMSC95XX_INTERNAL_PHY_ID
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_PHY_INT_SRC,4,2                ; @PHY_INT_SRC
	.comm	_PHY_INT_MASK,4,2               ; @PHY_INT_MASK
	.comm	_PHY_INT_MASK_DEFAULT_,4,2      ; @PHY_INT_MASK_DEFAULT_
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy initialised succesfully"

	.no_dead_strip	_smsc95xx_phy_initialize
.subsections_via_symbols
