	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_get_hw_stats
_mlx5_ib_get_hw_stats:                  ## @mlx5_ib_get_hw_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, %rbx
	movq	%rsi, %r15
	callq	_to_mdev
	movq	%rax, %r12
	leaq	-1(%rbx), %rsi
	movq	%rax, %rdi
	callq	_get_counters
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r14d
	addl	(%rax), %r14d
	movl	24(%rax), %ecx
	addl	8(%rax), %r14d
	movl	(%r12), %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_mlx5_ib_query_q_counters
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	(%r12), %edi
	movq	_rx_icrc_encapsulated_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_PCAM_FEATURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_mlx5_ib_query_ext_ppcnt_counters
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_5:
	movl	(%r12), %edi
	movq	_cc_query_allowed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx5_ib_get_native_port_mdev
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	movslq	(%r13), %rcx
	movq	(%r15), %rsi
	addq	%rcx, %rsi
	movl	4(%r13), %edx
	addq	16(%r13), %rcx
	callq	_mlx5_lag_query_cong_counters
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx5_ib_put_native_port_mdev
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_8:
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rx_icrc_encapsulated_counter,4,2 ## @rx_icrc_encapsulated_counter
	.comm	_cc_query_allowed,4,2           ## @cc_query_allowed
	.no_dead_strip	_mlx5_ib_get_hw_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_get_hw_stats
_mlx5_ib_get_hw_stats:                  ; @mlx5_ib_get_hw_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	bl	_to_mdev
	mov	x20, x0
	sub	x1, x19, #1
	bl	_get_counters
	cbz	x21, LBB0_8
; %bb.1:
	mov	x22, x0
	ldp	w24, w25, [x0]
	ldr	w26, [x0, #8]
	ldr	w0, [x20]
	ldr	w3, [x22, #24]
	mov	x1, x22
	mov	x2, x21
	bl	_mlx5_ib_query_q_counters
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _rx_icrc_encapsulated_counter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rx_icrc_encapsulated_counter@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_PCAM_FEATURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mlx5_ib_query_ext_ppcnt_counters
	mov	x23, x0
	cbnz	w0, LBB0_9
LBB0_4:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _cc_query_allowed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cc_query_allowed@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
; %bb.5:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_ib_get_native_port_mdev
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	ldr	x8, [x21]
	ldp	w9, w2, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x1, x8, x9
	ldr	x8, [x22, #16]
	add	x3, x8, x9
	bl	_mlx5_lag_query_cong_counters
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_ib_put_native_port_mdev
	cbnz	w23, LBB0_9
LBB0_7:
	add	w8, w25, w24
	add	w23, w8, w26
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rx_icrc_encapsulated_counter,4,2 ; @rx_icrc_encapsulated_counter
	.comm	_cc_query_allowed,4,2           ; @cc_query_allowed
	.no_dead_strip	_mlx5_ib_get_hw_stats
.subsections_via_symbols
