	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_pma_cmd
_process_pma_cmd:                       ## @process_pma_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r13d
	leaq	-48(%rbp), %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mlx5_ib_get_native_port_mdev
	movq	%rax, %r14
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movl	$1, -48(%rbp)
LBB0_2:
	movq	8(%rbx), %rax
	movq	_IB_PMA_CLASS_PORT_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_IB_PMA_CLASS_CAP_EXT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r12), %rdi
	addq	$40, %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	movq	_IB_MAD_RESULT_REPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testq	%r14, %r14
	jne	LBB0_18
	jmp	LBB0_19
LBB0_4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_IB_PMA_PORT_COUNTERS_EXT@GOTPCREL(%rip), %rcx
	movq	(%r12), %r12
	addq	$40, %r12
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	_query_vport_counter_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	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_15
## %bb.6:
	movq	%rax, %r13
	movl	-48(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_mlx5_core_query_vport_counter
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_pma_cnt_ext_assign
	jmp	LBB0_13
LBB0_8:
	movq	_ppcnt_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	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_15
## %bb.9:
	movq	%rax, %r13
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_mlx5_core_query_ib_ppcnt
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_pma_cnt_assign
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r13, %rdi
	callq	_kvfree
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_15:
	movq	_IB_MAD_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	movq	_IB_MAD_RESULT_REPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_17:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testq	%r14, %r14
	je	LBB0_19
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_mlx5_ib_put_native_port_mdev
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PMA_CLASS_PORT_INFO,8,3     ## @IB_PMA_CLASS_PORT_INFO
	.comm	_IB_PMA_CLASS_CAP_EXT_WIDTH,4,2 ## @IB_PMA_CLASS_CAP_EXT_WIDTH
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ## @IB_MAD_RESULT_REPLY
	.comm	_IB_PMA_PORT_COUNTERS_EXT,8,3   ## @IB_PMA_PORT_COUNTERS_EXT
	.comm	_query_vport_counter_out,4,2    ## @query_vport_counter_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ## @IB_MAD_RESULT_FAILURE
	.comm	_ppcnt_reg,4,2                  ## @ppcnt_reg
	.no_dead_strip	_process_pma_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_pma_cmd
_process_pma_cmd:                       ; @process_pma_cmd
	.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	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	bl	_mlx5_ib_get_native_port_mdev
	mov	x21, x0
	mov	x23, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x23, [x20]
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_2:
	ldr	x8, [x24, #8]
Lloh0:
	adrp	x9, _IB_PMA_CLASS_PORT_INFO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_PMA_CLASS_PORT_INFO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _IB_PMA_CLASS_CAP_EXT_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PMA_CLASS_CAP_EXT_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x22]
	add	x0, x8, #40
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
Lloh6:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_MAD_RESULT_REPLY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_MAD_RESULT_REPLY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w22, w9, w8
	cbnz	x21, LBB0_12
	b	LBB0_13
LBB0_4:
Lloh12:
	adrp	x9, _IB_PMA_PORT_COUNTERS_EXT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_PMA_PORT_COUNTERS_EXT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x10, [x22]
	add	x22, x10, #40
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh15:
	adrp	x8, _query_vport_counter_out@GOTPAGE
Lloh16:
	ldr	x8, [x8, _query_vport_counter_out@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x25, x0
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_14
; %bb.6:
	mov	x24, x0
	ldr	w3, [sp, #12]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	mov	x4, x24
	mov	x5, x25
	bl	_mlx5_core_query_vport_counter
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x22
	mov	x1, x24
	bl	_pma_cnt_ext_assign
	b	LBB0_11
LBB0_8:
Lloh21:
	adrp	x8, _ppcnt_reg@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ppcnt_reg@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x25, x0
Lloh24:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x24, x0
	ldr	w1, [sp, #12]
	mov	x0, x23
	mov	x2, x24
	mov	x3, x25
	bl	_mlx5_core_query_ib_ppcnt
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x22
	mov	x1, x24
	bl	_pma_cnt_assign
LBB0_11:
	mov	x0, x24
	bl	_kvfree
Lloh27:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _IB_MAD_RESULT_REPLY@GOTPAGE
Lloh34:
	ldr	x10, [x10, _IB_MAD_RESULT_REPLY@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w23, #0
	csel	w22, w9, w8, eq
	cbz	x21, LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_ib_put_native_port_mdev
LBB0_13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
Lloh36:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
Lloh38:
	ldr	w22, [x8]
	cbnz	x21, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PMA_CLASS_PORT_INFO,8,3     ; @IB_PMA_CLASS_PORT_INFO
	.comm	_IB_PMA_CLASS_CAP_EXT_WIDTH,4,2 ; @IB_PMA_CLASS_CAP_EXT_WIDTH
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ; @IB_MAD_RESULT_REPLY
	.comm	_IB_PMA_PORT_COUNTERS_EXT,8,3   ; @IB_PMA_PORT_COUNTERS_EXT
	.comm	_query_vport_counter_out,4,2    ; @query_vport_counter_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ; @IB_MAD_RESULT_FAILURE
	.comm	_ppcnt_reg,4,2                  ; @ppcnt_reg
	.no_dead_strip	_process_pma_cmd
.subsections_via_symbols
