	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_phy_enable_external
_smsc911x_phy_enable_external:          ## @smsc911x_phy_enable_external
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HW_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_smsc911x_reg_read
	movq	_HW_CFG_PHY_CLK_SEL_@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	movq	_HW_CFG_PHY_CLK_SEL_CLK_DIS_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_smsc911x_reg_write
	movl	$10, %edi
	callq	_udelay
	movq	_HW_CFG_EXT_PHY_EN_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_smsc911x_reg_write
	movl	(%rbx), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_HW_CFG_PHY_CLK_SEL_EXT_PHY_@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_smsc911x_reg_write
	movl	$10, %edi
	callq	_udelay
	movq	_HW_CFG_SMI_SEL_@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smsc911x_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_CFG,4,2                     ## @HW_CFG
	.comm	_HW_CFG_PHY_CLK_SEL_,4,2        ## @HW_CFG_PHY_CLK_SEL_
	.comm	_HW_CFG_PHY_CLK_SEL_CLK_DIS_,4,2 ## @HW_CFG_PHY_CLK_SEL_CLK_DIS_
	.comm	_HW_CFG_EXT_PHY_EN_,4,2         ## @HW_CFG_EXT_PHY_EN_
	.comm	_HW_CFG_PHY_CLK_SEL_EXT_PHY_,4,2 ## @HW_CFG_PHY_CLK_SEL_EXT_PHY_
	.comm	_HW_CFG_SMI_SEL_,4,2            ## @HW_CFG_SMI_SEL_
	.no_dead_strip	_smsc911x_phy_enable_external
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_phy_enable_external
_smsc911x_phy_enable_external:          ; @smsc911x_phy_enable_external
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x21, _HW_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HW_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_smsc911x_reg_read
Lloh2:
	adrp	x22, _HW_CFG_PHY_CLK_SEL_@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HW_CFG_PHY_CLK_SEL_@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh4:
	adrp	x9, _HW_CFG_PHY_CLK_SEL_CLK_DIS_@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HW_CFG_PHY_CLK_SEL_CLK_DIS_@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_smsc911x_reg_write
	mov	w0, #10
	bl	_udelay
Lloh7:
	adrp	x8, _HW_CFG_EXT_PHY_EN_@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HW_CFG_EXT_PHY_EN_@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_smsc911x_reg_write
	ldr	w8, [x22]
	bic	w8, w20, w8
Lloh10:
	adrp	x9, _HW_CFG_PHY_CLK_SEL_EXT_PHY_@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HW_CFG_PHY_CLK_SEL_EXT_PHY_@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_smsc911x_reg_write
	mov	w0, #10
	bl	_udelay
Lloh13:
	adrp	x8, _HW_CFG_SMI_SEL_@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HW_CFG_SMI_SEL_@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w20
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_smsc911x_reg_write
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_CFG,4,2                     ; @HW_CFG
	.comm	_HW_CFG_PHY_CLK_SEL_,4,2        ; @HW_CFG_PHY_CLK_SEL_
	.comm	_HW_CFG_PHY_CLK_SEL_CLK_DIS_,4,2 ; @HW_CFG_PHY_CLK_SEL_CLK_DIS_
	.comm	_HW_CFG_EXT_PHY_EN_,4,2         ; @HW_CFG_EXT_PHY_EN_
	.comm	_HW_CFG_PHY_CLK_SEL_EXT_PHY_,4,2 ; @HW_CFG_PHY_CLK_SEL_EXT_PHY_
	.comm	_HW_CFG_SMI_SEL_,4,2            ; @HW_CFG_SMI_SEL_
	.no_dead_strip	_smsc911x_phy_enable_external
.subsections_via_symbols
