	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_reset_hw
_atl1_reset_hw:                         ## @atl1_reset_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	%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
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	(%r15), %r12
	movq	_MASTER_CTRL_SOFT_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_MASTER_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_iowrite32
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	movq	_REG_PHY_ENABLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	$1, %edi
	callq	_iowrite16
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_ioread16
	movl	$1, %edi
	callq	_msleep
	movq	_REG_IDLE_STATUS@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%r12, %rbx
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movl	$1, %edi
	callq	_msleep
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movl	$1, %edi
	callq	_msleep
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r12
	movl	$1, %edi
	callq	_msleep
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	%r15, %rdi
	callq	_netif_msg_hw
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_dev_dbg
	jmp	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MASTER_CTRL_SOFT_RST,4,2       ## @MASTER_CTRL_SOFT_RST
	.comm	_REG_MASTER_CTRL,8,3            ## @REG_MASTER_CTRL
	.comm	_REG_PHY_ENABLE,8,3             ## @REG_PHY_ENABLE
	.comm	_REG_IDLE_STATUS,8,3            ## @REG_IDLE_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICR = 0x%x\n"

	.no_dead_strip	_atl1_reset_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_reset_hw
_atl1_reset_hw:                         ; @atl1_reset_hw
	.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	x21, x0
Lloh0:
	adrp	x8, _MASTER_CTRL_SOFT_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASTER_CTRL_SOFT_RST@GOTPAGEOFF]
	ldp	x9, x20, [x0]
	ldr	x19, [x20]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _REG_MASTER_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_MASTER_CTRL@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x9
	bl	_iowrite32
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _REG_PHY_ENABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _REG_PHY_ENABLE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #1
	bl	_iowrite16
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread16
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
Lloh7:
	adrp	x22, _REG_IDLE_STATUS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _REG_IDLE_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.1:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.2:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.3:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.4:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.5:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.6:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.7:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.8:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_12
; %bb.9:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.10:
	mov	w0, #1
	bl	_msleep
	bl	_cpu_relax
	mov	x0, x20
	bl	_netif_msg_hw
	cbz	x0, LBB0_13
; %bb.11:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_13
LBB0_12:
	mov	x21, #0
LBB0_13:
	mov	x0, x21
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MASTER_CTRL_SOFT_RST,4,2       ; @MASTER_CTRL_SOFT_RST
	.comm	_REG_MASTER_CTRL,8,3            ; @REG_MASTER_CTRL
	.comm	_REG_PHY_ENABLE,8,3             ; @REG_PHY_ENABLE
	.comm	_REG_IDLE_STATUS,8,3            ; @REG_IDLE_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICR = 0x%x\n"

	.no_dead_strip	_atl1_reset_hw
.subsections_via_symbols
