	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_init_hw
_atl1_init_hw:                          ## @atl1_init_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_RX_HASH_TABLE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rdi), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_iowrite32
	movq	8(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	%rbx, %rdi
	callq	_atl1_init_flash_opcode
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_atl1_write_phy_reg
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_atl1_phy_leave_power_saving
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atl1_setup_link                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RX_HASH_TABLE,8,3          ## @REG_RX_HASH_TABLE
	.no_dead_strip	_atl1_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_init_hw
_atl1_init_hw:                          ; @atl1_init_hw
	.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	x8, [x0, #8]
Lloh0:
	adrp	x20, _REG_RX_HASH_TABLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_RX_HASH_TABLE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite32
	mov	x0, x19
	bl	_atl1_init_flash_opcode
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	w1, #18
	mov	w2, #3072
	bl	_atl1_write_phy_reg
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_atl1_phy_leave_power_saving
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atl1_setup_link
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RX_HASH_TABLE,8,3          ; @REG_RX_HASH_TABLE
	.no_dead_strip	_atl1_init_hw
.subsections_via_symbols
