	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_rmp_cmd
_arm_rmp_cmd:                           ## @arm_rmp_cmd
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_modify_rmp_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r13d
	movq	_modify_rmp_out@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r13d, %edi
	callq	_kvzalloc
	movq	%rax, %r14
	movl	(%r12), %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_kvzalloc
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	_modify_rmp_in@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r13, %rsi
	callq	_MLX5_ADDR_OF
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	_rmp_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_RMPC_STATE_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	(%rbx), %rdi
	movq	_rmpn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_modify_rmp_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_uid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	%r15, %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movq	_rmp_bitmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_RMPC_STATE_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r13, %rsi
	callq	_MLX5_SET
	movq	_modify_rmp_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_MODIFY_RMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_mlx5_cmd_exec
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_kvfree
	movq	%r12, %rdi
	callq	_kvfree
	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_rmp_in,8,3              ## @modify_rmp_in
	.comm	_modify_rmp_out,8,3             ## @modify_rmp_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ctx,8,3                        ## @ctx
	.comm	_rmp_state,4,2                  ## @rmp_state
	.comm	_MLX5_RMPC_STATE_RDY,4,2        ## @MLX5_RMPC_STATE_RDY
	.comm	_rmpn,4,2                       ## @rmpn
	.comm	_uid,4,2                        ## @uid
	.comm	_rmp_bitmask,8,3                ## @rmp_bitmask
	.comm	_state,4,2                      ## @state
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_MODIFY_RMP,4,2     ## @MLX5_CMD_OP_MODIFY_RMP
	.no_dead_strip	_arm_rmp_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_rmp_cmd
_arm_rmp_cmd:                           ; @arm_rmp_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x20, _modify_rmp_in@GOTPAGE
Lloh1:
	ldr	x20, [x20, _modify_rmp_in@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_MLX5_ST_SZ_BYTES
	mov	x22, x0
Lloh2:
	adrp	x8, _modify_rmp_out@GOTPAGE
Lloh3:
	ldr	x8, [x8, _modify_rmp_out@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x23, x0
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_kvzalloc
	mov	x19, x0
	ldr	w1, [x21]
	mov	x0, x23
	bl	_kvzalloc
	mov	x21, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	ldr	x0, [x20]
Lloh10:
	adrp	x8, _ctx@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	mov	x26, x0
	ldr	x0, [x20]
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	mov	x27, x0
	mov	x0, x26
	mov	x1, x26
	bl	_MLX5_ADDR_OF
	mov	x28, x0
	ldr	x0, [x20]
Lloh13:
	adrp	x8, _rmp_state@GOTPAGE
Lloh14:
	ldr	x8, [x8, _rmp_state@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _MLX5_RMPC_STATE_RDY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5_RMPC_STATE_RDY@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_MLX5_SET
	ldr	x0, [x20]
Lloh19:
	adrp	x8, _rmpn@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rmpn@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w3, [x25]
	mov	x1, x19
	bl	_MLX5_SET
	ldr	x0, [x20]
Lloh22:
	adrp	x8, _uid@GOTPAGE
Lloh23:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w3, [x25, #4]
	mov	x1, x19
	bl	_MLX5_SET
	mov	x0, x28
	mov	x1, x28
	mov	x2, x24
	mov	x3, x24
	bl	_MLX5_SET
Lloh25:
	adrp	x8, _rmp_bitmask@GOTPAGE
Lloh26:
	ldr	x8, [x8, _rmp_bitmask@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	mov	x1, x27
	mov	x2, x24
	mov	w3, #1
	bl	_MLX5_SET
Lloh28:
	adrp	x8, _state@GOTPAGE
Lloh29:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _MLX5_RMPC_STATE_RDY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MLX5_RMPC_STATE_RDY@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x26
	bl	_MLX5_SET
	ldr	x0, [x20]
Lloh34:
	adrp	x8, _opcode@GOTPAGE
Lloh35:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _MLX5_CMD_OP_MODIFY_RMP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MLX5_CMD_OP_MODIFY_RMP@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_MLX5_SET
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_mlx5_cmd_exec
	mov	x20, x0
LBB0_3:
	mov	x0, x19
	bl	_kvfree
	mov	x0, x21
	bl	_kvfree
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_modify_rmp_in,8,3              ; @modify_rmp_in
	.comm	_modify_rmp_out,8,3             ; @modify_rmp_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ctx,8,3                        ; @ctx
	.comm	_rmp_state,4,2                  ; @rmp_state
	.comm	_MLX5_RMPC_STATE_RDY,4,2        ; @MLX5_RMPC_STATE_RDY
	.comm	_rmpn,4,2                       ; @rmpn
	.comm	_uid,4,2                        ; @uid
	.comm	_rmp_bitmask,8,3                ; @rmp_bitmask
	.comm	_state,4,2                      ; @state
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_MODIFY_RMP,4,2     ; @MLX5_CMD_OP_MODIFY_RMP
	.no_dead_strip	_arm_rmp_cmd
.subsections_via_symbols
