	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_monitor_counter_supported ## -- Begin function mlx5e_monitor_counter_supported
	.p2align	4, 0x90
_mlx5e_monitor_counter_supported:       ## @mlx5e_monitor_counter_supported
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	_max_num_of_monitor_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ppcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_PCAM_REG
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_num_ppcnt_monitor_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movq	_NUM_REQ_PPCNT_COUNTER_S1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
LBB0_3:
	movq	_num_q_monitor_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movq	_NUM_REQ_Q_COUNTERS_S1@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	setge	%r14b
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_num_of_monitor_counters,4,2 ## @max_num_of_monitor_counters
	.comm	_ppcnt,4,2                      ## @ppcnt
	.comm	_num_ppcnt_monitor_counters,4,2 ## @num_ppcnt_monitor_counters
	.comm	_NUM_REQ_PPCNT_COUNTER_S1,8,3   ## @NUM_REQ_PPCNT_COUNTER_S1
	.comm	_num_q_monitor_counters,4,2     ## @num_q_monitor_counters
	.comm	_NUM_REQ_Q_COUNTERS_S1,8,3      ## @NUM_REQ_Q_COUNTERS_S1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_monitor_counter_supported ; -- Begin function mlx5e_monitor_counter_supported
	.p2align	2
_mlx5e_monitor_counter_supported:       ; @mlx5e_monitor_counter_supported
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _max_num_of_monitor_counters@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_num_of_monitor_counters@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _ppcnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ppcnt@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_PCAM_REG
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _num_ppcnt_monitor_counters@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_ppcnt_monitor_counters@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
Lloh9:
	adrp	x8, _NUM_REQ_PPCNT_COUNTER_S1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUM_REQ_PPCNT_COUNTER_S1@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _num_q_monitor_counters@GOTPAGE
Lloh13:
	ldr	x8, [x8, _num_q_monitor_counters@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
Lloh15:
	adrp	x8, _NUM_REQ_Q_COUNTERS_S1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NUM_REQ_Q_COUNTERS_S1@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ge
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_max_num_of_monitor_counters,4,2 ; @max_num_of_monitor_counters
	.comm	_ppcnt,4,2                      ; @ppcnt
	.comm	_num_ppcnt_monitor_counters,4,2 ; @num_ppcnt_monitor_counters
	.comm	_NUM_REQ_PPCNT_COUNTER_S1,8,3   ; @NUM_REQ_PPCNT_COUNTER_S1
	.comm	_num_q_monitor_counters,4,2     ; @num_q_monitor_counters
	.comm	_NUM_REQ_Q_COUNTERS_S1,8,3      ; @NUM_REQ_Q_COUNTERS_S1
.subsections_via_symbols
