	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_get_stats
_gem_get_stats:                         ## @gem_get_stats
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_MAC_FCSERR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	addl	%eax, 16(%rbx)
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MAC_AERR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	addl	%eax, 12(%rbx)
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MAC_LERR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	addl	%eax, 8(%rbx)
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MAC_ECOLL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	addl	%eax, 4(%rbx)
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	%rax, %r15
	movq	_MAC_LCOLL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl
	addl	%r15d, %eax
	addl	%eax, (%rbx)
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_FCSERR,8,3                 ## @MAC_FCSERR
	.comm	_MAC_AERR,8,3                   ## @MAC_AERR
	.comm	_MAC_LERR,8,3                   ## @MAC_LERR
	.comm	_MAC_ECOLL,8,3                  ## @MAC_ECOLL
	.comm	_MAC_LCOLL,8,3                  ## @MAC_LCOLL
	.no_dead_strip	_gem_get_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_get_stats
_gem_get_stats:                         ; @gem_get_stats
	.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, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_device_present
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _MAC_FCSERR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_FCSERR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19, #16]
	add	w8, w8, w0
	str	w8, [x19, #16]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _MAC_AERR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAC_AERR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19, #12]
	add	w8, w8, w0
	str	w8, [x19, #12]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _MAC_LERR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MAC_LERR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
Lloh6:
	adrp	x22, _MAC_ECOLL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAC_ECOLL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	str	w8, [x19, #4]
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x20]
Lloh8:
	adrp	x23, _MAC_LCOLL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MAC_LCOLL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19]
	add	w9, w0, w21
	add	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_4:
	mov	x0, x19
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_FCSERR,8,3                 ; @MAC_FCSERR
	.comm	_MAC_AERR,8,3                   ; @MAC_AERR
	.comm	_MAC_LERR,8,3                   ; @MAC_LERR
	.comm	_MAC_ECOLL,8,3                  ; @MAC_ECOLL
	.comm	_MAC_LCOLL,8,3                  ; @MAC_LCOLL
	.no_dead_strip	_gem_get_stats
.subsections_via_symbols
