	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modify_raw_packet_qp_rq
_modify_raw_packet_qp_rq:               ## @modify_raw_packet_qp_rq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_modify_rq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_modify_rq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_rq_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	_modify_rq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_uid@GOTPCREL(%rip), %rax
	movq	%r13, %r14
	movl	%r15d, %r13d
	movl	(%rax), %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_mpd
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r13d, %r15d
	movq	%r14, %rbx
	callq	_MLX5_SET
	movq	_modify_rq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	callq	_MLX5_SET
	movq	_MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	movq	_modify_rq_counter_set_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_modify_rq_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_modify_bitmask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET64
	movq	_counter_set_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r13), %ecx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	leaq	4(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info_once
LBB0_6:
	movl	(%rbx), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx5_core_modify_rq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, (%r14)
LBB0_8:
	movq	%r12, %rdi
	callq	_kvfree
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modify_rq_in,8,3               ## @modify_rq_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rq_state,4,2                   ## @rq_state
	.comm	_uid,4,2                        ## @uid
	.comm	_ctx,4,2                        ## @ctx
	.comm	_state,4,2                      ## @state
	.comm	_MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID,4,2 ## @MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID
	.comm	_modify_rq_counter_set_id,4,2   ## @modify_rq_counter_set_id
	.comm	_modify_bitmask,4,2             ## @modify_bitmask
	.comm	_MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID,4,2 ## @MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID
	.comm	_counter_set_id,4,2             ## @counter_set_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RAW PACKET QP counters are not supported on current FW\n"

	.no_dead_strip	_modify_raw_packet_qp_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modify_raw_packet_qp_rq
_modify_raw_packet_qp_rq:               ; @modify_raw_packet_qp_rq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x28, _modify_rq_in@GOTPAGE
Lloh1:
	ldr	x28, [x28, _modify_rq_in@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_MLX5_ST_SZ_BYTES
	mov	x23, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x0, [x28]
Lloh5:
	adrp	x8, _rq_state@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rq_state@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x1, x21
	bl	_MLX5_SET
	ldr	x26, [x28]
Lloh8:
	adrp	x8, _uid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x8]
	mov	x0, x25
	bl	_to_mpd
	ldr	w3, [x0]
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	bl	_MLX5_SET
	ldr	x0, [x28]
Lloh11:
	adrp	x8, _ctx@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_MLX5_ADDR_OF
	mov	x25, x0
Lloh14:
	adrp	x8, _state@GOTPAGE
Lloh15:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x0
	mov	x3, x19
	bl	_MLX5_SET
	ldr	w8, [x24]
Lloh17:
	adrp	x9, _MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w0, [x22]
Lloh20:
	adrp	x8, _modify_rq_counter_set_id@GOTPAGE
Lloh21:
	ldr	x8, [x8, _modify_rq_counter_set_id@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x28]
Lloh23:
	adrp	x8, _modify_bitmask@GOTPAGE
Lloh24:
	ldr	x8, [x8, _modify_bitmask@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x1, x21
	bl	_MLX5_SET64
Lloh29:
	adrp	x8, _counter_set_id@GOTPAGE
Lloh30:
	ldr	x8, [x8, _counter_set_id@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w3, [x24, #4]
	mov	x0, x25
	mov	x1, x25
	bl	_MLX5_SET
	b	LBB0_6
LBB0_4:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_5:
	add	x0, x22, #4
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info_once
LBB0_6:
	ldr	w0, [x22]
	ldr	w1, [x20, #4]
	mov	x2, x21
	mov	x3, x23
	bl	_mlx5_core_modify_rq
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:
	str	w19, [x20]
LBB0_8:
	mov	x0, x21
	bl	_kvfree
LBB0_9:
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_modify_rq_in,8,3               ; @modify_rq_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rq_state,4,2                   ; @rq_state
	.comm	_uid,4,2                        ; @uid
	.comm	_ctx,4,2                        ; @ctx
	.comm	_state,4,2                      ; @state
	.comm	_MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID,4,2 ; @MLX5_RAW_QP_MOD_SET_RQ_Q_CTR_ID
	.comm	_modify_rq_counter_set_id,4,2   ; @modify_rq_counter_set_id
	.comm	_modify_bitmask,4,2             ; @modify_bitmask
	.comm	_MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID,4,2 ; @MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID
	.comm	_counter_set_id,4,2             ; @counter_set_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RAW PACKET QP counters are not supported on current FW\n"

	.no_dead_strip	_modify_raw_packet_qp_rq
.subsections_via_symbols
