	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_read_regs
_cas_read_regs:                         ## @cas_read_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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.1:
	movl	%r15d, %r12d
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%r14), %rsi
	movq	%rsi, %rdi
	callq	_readl
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	incq	%rbx
	addq	$16, %r13
	cmpq	%rbx, %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ethtool_register_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	testl	%esi, %esi
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	negl	%esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_cas_phy_read
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ethtool_register_table,8,3     ## @ethtool_register_table
	.no_dead_strip	_cas_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_read_regs
_cas_read_regs:                         ; @cas_read_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	w8, w21
	lsl	x21, x8, #2
Lloh0:
	adrp	x23, _ethtool_register_table@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ethtool_register_table@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	bl	_readl
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	add	x20, x20, #16
	add	x22, x22, #4
	cmp	x21, x22
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w8, [x8, x22]
	tbz	w8, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	neg	w1, w8
	mov	x0, x19
	bl	_cas_phy_read
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ethtool_register_table,8,3     ; @ethtool_register_table
	.no_dead_strip	_cas_read_regs
.subsections_via_symbols
