	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_ethtool_gregs
_stmmac_ethtool_gregs:                  ## @stmmac_ethtool_gregs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	12(%rax), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_stmmac_dump_mac_regs
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_stmmac_dump_dma_regs
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_ETHTOOL_DMA_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	_DMA_BUS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	leaq	(%r14,%rax,4), %rsi
	movq	_NUM_DWMAC1000_DMA_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_DMA_OFFSET,8,3         ## @ETHTOOL_DMA_OFFSET
	.comm	_DMA_BUS_MODE,4,2               ## @DMA_BUS_MODE
	.comm	_NUM_DWMAC1000_DMA_REGS,4,2     ## @NUM_DWMAC1000_DMA_REGS
	.no_dead_strip	_stmmac_ethtool_gregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_ethtool_gregs
_stmmac_ethtool_gregs:                  ; @stmmac_ethtool_gregs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_netdev_priv
	mov	x20, x0
	ldr	w1, [x0, #12]
	mov	x2, x19
	bl	_stmmac_dump_mac_regs
	ldr	w1, [x20, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_stmmac_dump_dma_regs
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _ETHTOOL_DMA_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_DMA_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x19, x8, lsl #2
Lloh3:
	adrp	x8, _DMA_BUS_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_BUS_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
Lloh6:
	adrp	x9, _NUM_DWMAC1000_DMA_REGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_DWMAC1000_DMA_REGS@GOTPAGEOFF]
	add	x1, x19, w8, sxtw #2
Lloh8:
	ldr	w8, [x9]
	lsl	w2, w8, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_DMA_OFFSET,8,3         ; @ETHTOOL_DMA_OFFSET
	.comm	_DMA_BUS_MODE,4,2               ; @DMA_BUS_MODE
	.comm	_NUM_DWMAC1000_DMA_REGS,4,2     ; @NUM_DWMAC1000_DMA_REGS
	.no_dead_strip	_stmmac_ethtool_gregs
.subsections_via_symbols
