	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_get_regs
_e100_get_regs:                         ## @e100_get_regs
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %rax
	movl	$16777216, %ecx                 ## imm = 0x1000000
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	16(%r12), %rdi
	addq	$8, %rdi
	callq	_ioread8
	movl	%eax, %r13d
	shll	$24, %r13d
	movq	16(%r12), %rdi
	addq	$4, %rdi
	callq	_ioread8
	movl	%eax, %ebx
	shll	$16, %ebx
	orl	%r13d, %ebx
	movq	16(%r12), %rdi
	callq	_ioread16
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_E100_PHY_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.1:
	movl	$1, %r13d
	subl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mdio_read
	movq	_E100_PHY_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%r14,%rcx,4)
	incl	%r13d
	addl	$-1, %ebx
	jb	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_e100_dump@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_e100_exec_cb
	movl	$10, %edi
	callq	_msleep
	movq	_E100_PHY_REGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	addq	$8, %rdi
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_E100_PHY_REGS,4,2              ## @E100_PHY_REGS
	.comm	_e100_dump,4,2                  ## @e100_dump
	.no_dead_strip	_e100_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_get_regs
_e100_get_regs:                         ; @e100_get_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x9, x8, [x0, #16]
	ldr	w8, [x8]
	orr	w8, w8, #0x1000000
	str	w8, [x22]
	add	x0, x9, #8
	bl	_ioread8
	mov	x22, x0
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_ioread8
	lsl	w8, w0, #16
	orr	w22, w8, w22, lsl #24
	ldr	x0, [x20, #16]
	bl	_ioread16
	orr	w8, w22, w0
	str	w8, [x19]
Lloh0:
	adrp	x23, _E100_PHY_REGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E100_PHY_REGS@GOTPAGEOFF]
	ldr	w22, [x23]
	tbnz	w22, #31, LBB0_3
; %bb.1:
	mov	w8, #1
	sub	w24, w8, w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, x22
	bl	_mdio_read
	ldr	w8, [x23]
	add	w8, w24, w8
	str	w0, [x19, w8, sxtw #2]
	sub	w22, w22, #1
	add	w24, w24, #1
	cmn	w22, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _e100_dump@GOTPAGE
Lloh3:
	ldr	x8, [x8, _e100_dump@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_e100_exec_cb
	mov	w0, #10
	bl	_msleep
	ldrsw	x8, [x23]
	add	x8, x19, x8, lsl #2
	add	x0, x8, #8
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	w2, #4
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_E100_PHY_REGS,4,2              ; @E100_PHY_REGS
	.comm	_e100_dump,4,2                  ; @e100_dump
	.no_dead_strip	_e100_get_regs
.subsections_via_symbols
