	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_read_counters
_mlx5_ib_read_counters:                 ## @mlx5_ib_read_counters
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_to_mcounters
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	20(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jle	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	36(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	32(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	*8(%rbx)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	cmpl	$0, 16(%rbx)
	jle	LBB0_9
## %bb.7:
	movq	24(%rbx), %rax
	movq	-48(%rbp), %r8
	movq	8(%r12), %rdx
	addq	$8, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax), %rdi
	movq	(%rax), %rcx
	movl	(%r8,%rcx,8), %ecx
	addl	%ecx, (%rdx,%rdi,4)
	incq	%rsi
	movslq	16(%rbx), %rcx
	addq	$16, %rax
	cmpq	%rcx, %rsi
	jl	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5_ib_read_counters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_read_counters
_mlx5_ib_read_counters:                 ; @mlx5_ib_read_counters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_to_mcounters
	mov	x20, x0
	stp	xzr, xzr, [sp]
	add	x19, x0, #20
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	w0, [x20, #36]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [sp]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x20, #32]
	ldr	w9, [x22, #16]
	stp	w9, w8, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	w0, [x21]
	mov	x1, sp
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	ldr	x11, [x20, #24]
	ldr	x9, [sp]
	ldr	x10, [x22, #8]
	add	x11, x11, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x12, [x11, #-8]
	ldr	x12, [x9, x12, lsl #3]
	lsl	x13, x13, #2
	ldr	w14, [x10, x13]
	add	w12, w14, w12
	str	w12, [x10, x13]
	add	x8, x8, #1
	ldrsw	x12, [x20, #16]
	add	x11, x11, #16
	cmp	x8, x12
	b.lt	LBB0_6
LBB0_7:
	ldr	x0, [sp]
	bl	_kfree
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5_ib_read_counters
.subsections_via_symbols
