	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_eswitch_query_vport_drop_stats
_mlx5_eswitch_query_vport_drop_stats:   ## @mlx5_eswitch_query_vport_drop_stats
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	$0, -40(%rbp)
	cmpl	$0, 24(%rsi)
	je	LBB0_13
## %bb.1:
	movq	(%rax), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_mlx5_fc_query
LBB0_4:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_mlx5_fc_query
LBB0_6:
	movq	_receive_discard_vport_down@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_transmit_discard_vport_down@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mlx5_query_vport_down_stats
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-56(%rbp), %eax
	addl	%eax, 4(%r14)
LBB0_11:
	movq	_transmit_discard_vport_down@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	-48(%rbp), %eax
	addl	%eax, (%r14)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
	.comm	_receive_discard_vport_down,4,2 ## @receive_discard_vport_down
	.comm	_transmit_discard_vport_down,4,2 ## @transmit_discard_vport_down
	.no_dead_strip	_mlx5_eswitch_query_vport_drop_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_eswitch_query_vport_drop_stats
_mlx5_eswitch_query_vport_drop_stats:   ; @mlx5_eswitch_query_vport_drop_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	str	xzr, [sp, #8]
	ldr	w9, [x1, #24]
	cbz	w9, LBB0_13
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MLX5_ESWITCH_LEGACY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_ESWITCH_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x1, [x1, #16]
	cbz	x1, LBB0_4
; %bb.3:
	add	x2, x19, #4
	add	x3, sp, #8
	mov	x0, x20
	bl	_mlx5_fc_query
LBB0_4:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_6
; %bb.5:
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_mlx5_fc_query
LBB0_6:
Lloh3:
	adrp	x22, _receive_discard_vport_down@GOTPAGE
Lloh4:
	ldr	x22, [x22, _receive_discard_vport_down@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbnz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _transmit_discard_vport_down@GOTPAGE
Lloh6:
	ldr	x8, [x8, _transmit_discard_vport_down@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_14
LBB0_8:
	ldr	w1, [x21]
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #1
	bl	_mlx5_query_vport_down_stats
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [sp, #24]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
LBB0_11:
Lloh8:
	adrp	x8, _transmit_discard_vport_down@GOTPAGE
Lloh9:
	ldr	x8, [x8, _transmit_discard_vport_down@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_14
; %bb.12:
	mov	w0, #0
	ldr	w8, [sp, #16]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
	.comm	_receive_discard_vport_down,4,2 ; @receive_discard_vport_down
	.comm	_transmit_discard_vport_down,4,2 ; @transmit_discard_vport_down
	.no_dead_strip	_mlx5_eswitch_query_vport_drop_stats
.subsections_via_symbols
