	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_get_regs
_lan78xx_get_regs:                      ## @lan78xx_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, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_lan78xx_regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_lan78xx_read_reg
	incq	%r13
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_phy_read
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	leaq	(%rcx,%r13,4), %r12
	addq	$4, %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r14), %rbx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_phy_read
	movl	%eax, (%r12,%r14,4)
	movq	%rbx, %r14
	cmpl	$31, %ebx
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lan78xx_regs,8,3               ## @lan78xx_regs
	.no_dead_strip	_lan78xx_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_get_regs
_lan78xx_get_regs:                      ; @lan78xx_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	x20, x2
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x24, _lan78xx_regs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _lan78xx_regs@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x22, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	mov	x2, x22
	bl	_lan78xx_read_reg
	add	x23, x23, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x22, x22, #4
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
; %bb.3:
	ldr	w0, [x19]
	cbnz	w0, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x23, #0
	ldr	w0, [x19]
	cbz	w0, LBB0_7
LBB0_5:
	mov	w1, #0
	bl	_phy_read
	mov	x22, #0
	add	x21, x20, x23, lsl #2
	str	w0, [x21], #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x22, #1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_phy_read
	str	w0, [x21, x22, lsl #2]
	mov	x22, x20
	cmp	w20, #31
	b.ne	LBB0_6
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lan78xx_regs,8,3               ; @lan78xx_regs
	.no_dead_strip	_lan78xx_get_regs
.subsections_via_symbols
