	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_query_vport_counter  ## -- Begin function mlx5_core_query_vport_counter
	.p2align	4, 0x90
_mlx5_core_query_vport_counter:         ## @mlx5_core_query_vport_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	%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	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_query_vport_counter_in@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r14d
	movq	_vport_group_manager@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_QUERY_VPORT_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.4:
	movq	_query_vport_counter_in@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_vport_number@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
LBB0_5:
	movq	_num_ports@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.6:
	movq	_query_vport_counter_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_mlx5_cmd_exec
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %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	_query_vport_counter_in,4,2     ## @query_vport_counter_in
	.comm	_vport_group_manager,4,2        ## @vport_group_manager
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_QUERY_VPORT_COUNTER,4,2 ## @MLX5_CMD_OP_QUERY_VPORT_COUNTER
	.comm	_vport_number,4,2               ## @vport_number
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_num_ports,4,2                  ## @num_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_query_vport_counter  ; -- Begin function mlx5_core_query_vport_counter
	.p2align	2
_mlx5_core_query_vport_counter:         ; @mlx5_core_query_vport_counter
	.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	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x28, _query_vport_counter_in@GOTPAGE
Lloh1:
	ldr	x28, [x28, _query_vport_counter_in@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_MLX5_ST_SZ_BYTES
	mov	x24, x0
Lloh2:
	adrp	x8, _vport_group_manager@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vport_group_manager@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MLX5_CAP_GEN
	mov	x27, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kvzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	w0, [x28]
Lloh8:
	adrp	x8, _opcode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MLX5_CMD_OP_QUERY_VPORT_COUNTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX5_CMD_OP_QUERY_VPORT_COUNTER@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_MLX5_SET
	cbz	w26, LBB0_4
; %bb.2:
	cbz	w27, LBB0_8
; %bb.3:
	ldr	w0, [x28]
	mov	x1, x23
	mov	x2, x26
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w0, [x28]
Lloh14:
	adrp	x8, _vport_number@GOTPAGE
Lloh15:
	ldr	x8, [x8, _vport_number@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	w3, w25, #1
	mov	x1, x23
	bl	_MLX5_SET
LBB0_4:
Lloh17:
	adrp	x8, _num_ports@GOTPAGE
Lloh18:
	ldr	x8, [x8, _num_ports@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MLX5_CAP_GEN
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x28]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x22
	bl	_MLX5_SET
LBB0_6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x20
	mov	x4, x19
	bl	_mlx5_cmd_exec
	mov	x19, x0
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _EPERM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x23
	bl	_kvfree
LBB0_10:
	mov	x0, x19
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_query_vport_counter_in,4,2     ; @query_vport_counter_in
	.comm	_vport_group_manager,4,2        ; @vport_group_manager
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_QUERY_VPORT_COUNTER,4,2 ; @MLX5_CMD_OP_QUERY_VPORT_COUNTER
	.comm	_vport_number,4,2               ; @vport_number
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_num_ports,4,2                  ; @num_ports
.subsections_via_symbols
