	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_get_ethtool_stats
_ibmvnic_get_ethtool_stats:             ## @ibmvnic_get_ethtool_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_IBMVNIC_CRQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_REQUEST_STATISTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r14), %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	leaq	32(%r14), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ibmvnic_send_crq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r12, %rdi
	callq	_wait_for_completion
	movq	_ibmvnic_stats@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_IBMVNIC_GET_STAT
	movl	%eax, %edi
	callq	_be64_to_cpu
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cmpl	$0, 4(%r14)
	jle	LBB0_7
## %bb.5:
	movq	24(%r14), %rax
	movl	%ebx, %ebx
	addq	$8, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edx
	movl	%edx, (%r13,%rbx,4)
	movl	-4(%rax), %edx
	movl	%edx, 4(%r13,%rbx,4)
	movl	-8(%rax), %edx
	movl	%edx, 8(%r13,%rbx,4)
	addq	$3, %rbx
	incq	%rcx
	movslq	4(%r14), %rdx
	addq	$12, %rax
	cmpq	%rdx, %rcx
	jl	LBB0_6
LBB0_7:
	cmpl	$0, 8(%r14)
	jle	LBB0_10
## %bb.8:
	movq	16(%r14), %rax
	movl	%ebx, %ecx
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	movl	$8, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx), %edi
	movl	%edi, -8(%rcx,%rdx)
	movl	-4(%rax,%rdx), %edi
	movl	%edi, -4(%rcx,%rdx)
	movl	-8(%rax,%rdx), %edi
	movl	%edi, (%rcx,%rdx)
	incq	%rsi
	movslq	8(%r14), %rdi
	addq	$12, %rdx
	cmpq	%rdi, %rsi
	jl	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVNIC_CRQ_CMD,4,2            ## @IBMVNIC_CRQ_CMD
	.comm	_REQUEST_STATISTICS,4,2         ## @REQUEST_STATISTICS
	.comm	_ibmvnic_stats,8,3              ## @ibmvnic_stats
	.no_dead_strip	_ibmvnic_get_ethtool_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_get_ethtool_stats
_ibmvnic_get_ethtool_stats:             ; @ibmvnic_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_netdev_priv
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _IBMVNIC_CRQ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMVNIC_CRQ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REQUEST_STATISTICS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQUEST_STATISTICS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	x21, x19
	ldr	w0, [x21], #32
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	mov	w0, #4
	bl	_cpu_to_be32
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_init_completion
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibmvnic_send_crq
	cbnz	w0, LBB0_11
; %bb.1:
	mov	x0, x21
	bl	_wait_for_completion
Lloh6:
	adrp	x22, _ibmvnic_stats@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ibmvnic_stats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x23, x21, #2
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_IBMVNIC_GET_STAT
	bl	_be64_to_cpu
	str	w0, [x20, x23]
	add	x21, x21, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
	ldr	x10, [x19, #24]
	add	x9, x20, w21, uxtw #2
	add	x9, x9, #4
	add	x10, x10, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, #4]
	stur	w11, [x9, #-4]
	ldr	w11, [x10]
	str	w11, [x9]
	ldur	w11, [x10, #-4]
	str	w11, [x9, #4]
	add	x8, x8, #1
	ldrsw	x11, [x19, #4]
	add	w21, w21, #3
	add	x9, x9, #12
	add	x10, x10, #12
	cmp	x8, x11
	b.lt	LBB0_7
LBB0_8:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x8, #0
	ldr	x10, [x19, #16]
	add	x9, x20, w21, uxtw #2
	add	x9, x9, #4
	add	x10, x10, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	stur	w11, [x9, #-4]
	ldur	w11, [x10, #-4]
	str	w11, [x9]
	ldur	w11, [x10, #-8]
	str	w11, [x9, #4]
	add	x8, x8, #1
	ldrsw	x11, [x19, #8]
	add	x9, x9, #12
	add	x10, x10, #12
	cmp	x8, x11
	b.lt	LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVNIC_CRQ_CMD,4,2            ; @IBMVNIC_CRQ_CMD
	.comm	_REQUEST_STATISTICS,4,2         ; @REQUEST_STATISTICS
	.comm	_ibmvnic_stats,8,3              ; @ibmvnic_stats
	.no_dead_strip	_ibmvnic_get_ethtool_stats
.subsections_via_symbols
