	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_init_1g_phy
_nes_init_1g_phy:                       ## @nes_init_1g_phy
	.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
	movl	%edx, %r14d
	movq	%rdi, %r13
	leaq	-44(%rbp), %r15
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$23, %esi
	movl	%r14d, %edx
	movl	$45056, %ecx                    ## imm = 0xB000
	callq	_nes_write_1G_phy_reg
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_nes_write_1G_phy_reg
	movl	$100, %edi
	callq	_udelay
	movl	$102, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_nes_read_1G_phy_reg
	decq	%rbx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ecx
	testl	$32768, %ecx                    ## imm = 0x8000
	jne	LBB0_1
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %r15d
	movl	-44(%rbp), %ecx
LBB0_5:
	andl	$44735, %ecx                    ## imm = 0xAEBF
	orl	$4416, %ecx                     ## imm = 0x1140
	movl	%ecx, -44(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_nes_write_1G_phy_reg
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$23, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$30, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$25, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$25, %esi
	movl	%r14d, %edx
	movl	$65518, %ecx                    ## imm = 0xFFEE
	callq	_nes_write_1G_phy_reg
	movq	%r13, %rdi
	movl	$25, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movl	$-4065, %ecx                    ## imm = 0xF01F
	andl	-44(%rbp), %ecx
	orl	$3072, %ecx                     ## imm = 0xC00
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%r14d, %edx
	callq	_nes_write_1G_phy_reg
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movl	$-257, %ecx                     ## imm = 0xFEFF
	andl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	callq	_nes_write_1G_phy_reg
	movq	%r13, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_nes_read_1G_phy_reg
	movl	$768, %ecx                      ## imm = 0x300
	orl	-44(%rbp), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_nes_write_1G_phy_reg
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nes_init_1g_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_init_1g_phy
_nes_init_1g_phy:                       ; @nes_init_1g_phy
	.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, x2
	mov	x20, x0
	add	x3, sp, #12
	mov	w1, #1
	bl	_nes_read_1G_phy_reg
	mov	x0, x20
	mov	w1, #23
	mov	x2, x19
	mov	w3, #45056
	bl	_nes_write_1G_phy_reg
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	mov	w3, #32768
	bl	_nes_write_1G_phy_reg
	mov	w0, #100
	bl	_udelay
	mov	w21, #102
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	subs	x21, x21, #1
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	tbnz	w8, #15, LBB0_1
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	mov	w21, #-1
	ldr	w8, [sp, #12]
LBB0_5:
	mov	w9, #44735
	and	w8, w8, w9
	mov	w9, #4416
	orr	w3, w8, w9
	str	w3, [sp, #12]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_nes_write_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #23
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #30
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #25
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	mov	x0, x20
	mov	w1, #25
	mov	x2, x19
	mov	w3, #65518
	bl	_nes_write_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #25
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffff01f
	orr	w3, w8, #0xc00
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_nes_write_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #9
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	ldr	w8, [sp, #12]
	and	w3, w8, #0xfffffeff
	mov	x0, x20
	mov	w1, #9
	mov	x2, x19
	bl	_nes_write_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #9
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_nes_read_1G_phy_reg
	ldr	w8, [sp, #12]
	orr	w3, w8, #0x300
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_nes_write_1G_phy_reg
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nes_init_1g_phy
.subsections_via_symbols
