	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlx5_ib_qp_set_counter
___mlx5_ib_qp_set_counter:              ## @__mlx5_ib_qp_set_counter
	.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, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_mqp
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	_rts2rts_qp_counters_set_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	(%r15), %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	8(%r14), %rsi
	decq	%rsi
	movq	%r12, %rdi
	callq	_mlx5_ib_get_counters_id
	movl	%eax, %ebx
LBB0_5:
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	callq	_cpu_to_be32
	shll	$24, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, -40(%rbp)
	movl	(%r12), %edi
	movq	_MLX5_CMD_OP_RTS2RTS_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX5_QP_OPTPAR_COUNTER_SET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r14, %r8
	callq	_mlx5_core_qp_modify
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rts2rts_qp_counters_set_id,4,2 ## @rts2rts_qp_counters_set_id
	.comm	_MLX5_CMD_OP_RTS2RTS_QP,4,2     ## @MLX5_CMD_OP_RTS2RTS_QP
	.comm	_MLX5_QP_OPTPAR_COUNTER_SET_ID,4,2 ## @MLX5_QP_OPTPAR_COUNTER_SET_ID
	.no_dead_strip	___mlx5_ib_qp_set_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlx5_ib_qp_set_counter
___mlx5_ib_qp_set_counter:              ; @__mlx5_ib_qp_set_counter
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x20, x0
	mov	x0, x19
	bl	_to_mqp
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _rts2rts_qp_counters_set_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rts2rts_qp_counters_set_id@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w21, [x21]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	sub	x1, x8, #1
	mov	x0, x20
	bl	_mlx5_ib_get_counters_id
	mov	x21, x0
LBB0_4:
	mov	w0, #16777215
	bl	_cpu_to_be32
	lsl	w0, w21, #24
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _MLX5_CMD_OP_RTS2RTS_QP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_CMD_OP_RTS2RTS_QP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MLX5_QP_OPTPAR_COUNTER_SET_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_QP_OPTPAR_COUNTER_SET_ID@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, x19
	bl	_mlx5_core_qp_modify
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_rts2rts_qp_counters_set_id,4,2 ; @rts2rts_qp_counters_set_id
	.comm	_MLX5_CMD_OP_RTS2RTS_QP,4,2     ; @MLX5_CMD_OP_RTS2RTS_QP
	.comm	_MLX5_QP_OPTPAR_COUNTER_SET_ID,4,2 ; @MLX5_QP_OPTPAR_COUNTER_SET_ID
	.no_dead_strip	___mlx5_ib_qp_set_counter
.subsections_via_symbols
