	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc911x_ethtool_getregs
_smc911x_ethtool_getregs:               ## @smc911x_ethtool_getregs
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	movl	8(%rax), %eax
	movl	%eax, (%rbx)
	movq	_ID_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_E2P_CMD@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	cmpl	(%r13), %ebx
	jg	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SMC_inl
	movl	%eax, (%r14,%r12,4)
	incq	%r12
	addl	$4, %ebx
	cmpl	(%r13), %ebx
	jle	LBB0_2
LBB0_3:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WUCSR@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SMC_GET_MAC_CSR
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	incl	%r12d
	leal	1(%rbx), %eax
	cmpl	(%r13), %ebx
	movl	%eax, %ebx
	jl	LBB0_7
LBB0_4:
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r15), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SMC_GET_MII
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	$0, (%r14,%rbx,4)
	incq	%rbx
	cmpl	$32, %ebx
	jne	LBB0_5
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID_REV,4,2                     ## @ID_REV
	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_WUCSR,4,2                      ## @WUCSR
	.no_dead_strip	_smc911x_ethtool_getregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc911x_ethtool_getregs
_smc911x_ethtool_getregs:               ; @smc911x_ethtool_getregs
	.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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _ID_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ID_REV@GOTPAGEOFF]
	str	w8, [x21]
Lloh2:
	ldr	w21, [x9]
Lloh3:
	adrp	x23, _E2P_CMD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _E2P_CMD@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.le	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_4
LBB0_2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x22
	mov	x0, x19
	mov	x1, x21
	bl	_SMC_inl
	add	x22, x22, #1
	str	w0, [x20, x24, lsl #2]
	add	w21, w21, #4
	ldr	w8, [x23]
	cmp	w21, w8
	b.le	LBB0_3
LBB0_4:
Lloh5:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x23, _WUCSR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WUCSR@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.gt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x21
	bl	_SMC_GET_MAC_CSR
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	w22, w22, #1
	add	w8, w21, #1
	ldr	w9, [x23]
	cmp	w21, w9
	mov	x21, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x21, #0
	add	x20, x20, w22, uxtw #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_SMC_GET_MII
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	str	wzr, [x20, x21, lsl #2]
	add	x21, x21, #1
	cmp	w21, #32
	b.ne	LBB0_7
; %bb.8:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ID_REV,4,2                     ; @ID_REV
	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_WUCSR,4,2                      ; @WUCSR
	.no_dead_strip	_smc911x_ethtool_getregs
.subsections_via_symbols
