	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip175c_config_init
_ip175c_config_init:                    ## @ip175c_config_init
	.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
	cmpb	$0, _ip175c_config_init.full_reset_performed(%rip)
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	$4, 20(%r14)
	je	LBB0_20
## %bb.2:
	movq	_PHY_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$1, (%r14)
	movl	4(%r14), %edi
	callq	_netif_carrier_on
	jmp	LBB0_20
LBB0_3:
	movl	24(%r14), %edi
	movl	$30, %esi
	xorl	%edx, %edx
	movl	$5980, %ecx                     ## imm = 0x175C
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movl	24(%r14), %edi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_mdiobus_read
	movl	$2, %edi
	callq	_mdelay
	movl	24(%r14), %edi
	movl	$29, %esi
	movl	$31, %edx
	movl	$5980, %ecx                     ## imm = 0x175C
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	movl	24(%r14), %edi
	movl	$29, %esi
	movl	$22, %edx
	movl	$1056, %ecx                     ## imm = 0x420
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:
	movl	24(%r14), %edi
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%esi, %esi
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.7:
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$1, %esi
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.8:
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$2, %esi
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$3, %esi
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$4, %esi
	callq	_mdiobus_write
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movl	24(%r14), %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_mdiobus_read
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	$1, %esi
	callq	_mdiobus_read
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	$2, %esi
	callq	_mdiobus_read
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	$3, %esi
	callq	_mdiobus_read
	movl	24(%r14), %edi
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_mdiobus_read
	movl	$2, %edi
	callq	_mdelay
	movb	$1, _ip175c_config_init.full_reset_performed(%rip)
	jmp	LBB0_1
LBB0_19:
	movl	%eax, %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ip175c_config_init.full_reset_performed,1,2 ## @ip175c_config_init.full_reset_performed
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_PHY_RUNNING,4,2                ## @PHY_RUNNING
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_ip175c_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip175c_config_init
_ip175c_config_init:                    ; @ip175c_config_init
	.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
	adrp	x20, _ip175c_config_init.full_reset_performed@PAGE
	ldrb	w8, [x20, _ip175c_config_init.full_reset_performed@PAGEOFF]
	tbz	w8, #0, LBB0_4
LBB0_1:
	ldr	w8, [x19, #20]
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PHY_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_netif_carrier_on
LBB0_3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	ldr	w0, [x19, #24]
	mov	w1, #30
	mov	w2, #0
	mov	w3, #5980
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.5:
	ldr	w0, [x19, #24]
	mov	w1, #30
	mov	w2, #0
	bl	_mdiobus_read
	mov	w0, #2
	bl	_mdelay
	ldr	w0, [x19, #24]
	mov	w1, #29
	mov	w2, #31
	mov	w3, #5980
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.6:
	ldr	w0, [x19, #24]
	mov	w1, #29
	mov	w2, #22
	mov	w3, #1056
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w0, [x19, #24]
Lloh9:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh11:
	adrp	x22, _BMCR_RESET@GOTPAGE
Lloh12:
	ldr	x22, [x22, _BMCR_RESET@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w1, #0
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #1
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #2
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.10:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #3
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #4
	bl	_mdiobus_write
	tbnz	w0, #31, LBB0_13
; %bb.12:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_mdiobus_read
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w22, #1
	mov	w1, #1
	bl	_mdiobus_read
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #2
	bl	_mdiobus_read
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #3
	bl	_mdiobus_read
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_mdiobus_read
	mov	w0, #2
	bl	_mdelay
	strb	w22, [x20, _ip175c_config_init.full_reset_performed@PAGEOFF]
	b	LBB0_1
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ip175c_config_init.full_reset_performed,1,2 ; @ip175c_config_init.full_reset_performed
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_PHY_RUNNING,4,2                ; @PHY_RUNNING
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_ip175c_config_init
.subsections_via_symbols
