	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_enable_vport
_esw_enable_vport:                      ## @esw_enable_vport
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r15
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %edi
	callq	_WARN_ON
	movl	20(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_esw_debug
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_esw_vport_create_drop_counters
LBB0_3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_esw_apply_vport_conf
	movl	20(%rbx), %edx
	movl	24(%rbx), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_esw_vport_enable_qos
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	20(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_esw_warn
LBB0_5:
	movl	%r13d, 12(%rbx)
	movl	$1, 8(%rbx)
	cmpq	%r15, 8(%r12)
	jne	LBB0_6
LBB0_8:
	movl	$1, 16(%rbx)
	jmp	LBB0_9
LBB0_6:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.7:
	movl	20(%r12), %edi
	callq	_mlx5_core_is_ecpf
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_esw_vport_change_handle_locked
	incl	24(%r12)
	movl	20(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_esw_debug
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling VPORT(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
L_.str.1:                               ## @.str.1
	.asciz	"Failed to attach vport %d to eswitch rate limiter"

L_.str.2:                               ## @.str.2
	.asciz	"Enabled VPORT(%d)\n"

	.no_dead_strip	_esw_enable_vport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_enable_vport
_esw_enable_vport:                      ; @esw_enable_vport
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x1]
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x22, #8]
	bl	_WARN_ON
	ldr	w0, [x21, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_esw_debug
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _MLX5_ESWITCH_LEGACY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_ESWITCH_LEGACY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_esw_vport_create_drop_counters
LBB0_3:
	mov	x0, x21
	mov	x1, x22
	bl	_esw_apply_vport_conf
	ldp	w2, w3, [x22, #20]
	mov	x0, x21
	mov	x1, x22
	bl	_esw_vport_enable_qos
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x21, #20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_esw_warn
LBB0_5:
	mov	w24, #1
	stp	w24, w23, [x22, #8]
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ne	LBB0_7
LBB0_6:
	str	w24, [x22, #16]
	b	LBB0_9
LBB0_7:
	cbnz	x20, LBB0_9
; %bb.8:
	ldr	w0, [x21, #20]
	bl	_mlx5_core_is_ecpf
	cbnz	x0, LBB0_6
LBB0_9:
	mov	x0, x22
	bl	_esw_vport_change_handle_locked
	ldp	w0, w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_esw_debug
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling VPORT(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
l_.str.1:                               ; @.str.1
	.asciz	"Failed to attach vport %d to eswitch rate limiter"

l_.str.2:                               ; @.str.2
	.asciz	"Enabled VPORT(%d)\n"

	.no_dead_strip	_esw_enable_vport
.subsections_via_symbols
