	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_disable_vport
_esw_disable_vport:                     ## @esw_disable_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rsi)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movl	24(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_esw_debug
	movl	$0, 8(%rbx)
	movl	28(%r14), %edi
	callq	_flush_workqueue
	movl	24(%r14), %edi
	movq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_arm_vport_context_events_cmd
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_esw_vport_change_handle_locked
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_esw_vport_disable_qos
	cmpq	%r15, (%r14)
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	24(%r14), %edi
	movq	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX5_VPORT_ADMIN_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_mlx5_modify_vport_admin_state
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_esw_vport_disable_egress_acl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_esw_vport_disable_ingress_acl
	movq	%rbx, %rdi
	callq	_esw_vport_destroy_drop_counters
LBB0_4:
	decl	20(%r14)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling vport(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
	.comm	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT,4,2 ## @MLX5_VPORT_STATE_OP_MOD_ESW_VPORT
	.comm	_MLX5_VPORT_ADMIN_STATE_DOWN,4,2 ## @MLX5_VPORT_ADMIN_STATE_DOWN
	.no_dead_strip	_esw_disable_vport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_disable_vport
_esw_disable_vport:                     ; @esw_disable_vport
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w8, [x1, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_esw_debug
	str	wzr, [x20, #8]
	ldr	w0, [x19, #28]
	bl	_flush_workqueue
	ldr	w0, [x19, #24]
	ldr	x1, [x20]
	mov	w2, #0
	bl	_arm_vport_context_events_cmd
	add	x22, x19, #16
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_esw_vport_change_handle_locked
	str	xzr, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_esw_vport_disable_qos
	ldr	x8, [x19]
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
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_4
; %bb.3:
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x8, _MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MLX5_VPORT_ADMIN_STATE_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_VPORT_ADMIN_STATE_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x2, x21
	mov	w3, #1
	bl	_mlx5_modify_vport_admin_state
	mov	x0, x19
	mov	x1, x20
	bl	_esw_vport_disable_egress_acl
	mov	x0, x19
	mov	x1, x20
	bl	_esw_vport_disable_ingress_acl
	mov	x0, x20
	bl	_esw_vport_destroy_drop_counters
LBB0_4:
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #20]
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling vport(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
	.comm	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT,4,2 ; @MLX5_VPORT_STATE_OP_MOD_ESW_VPORT
	.comm	_MLX5_VPORT_ADMIN_STATE_DOWN,4,2 ; @MLX5_VPORT_ADMIN_STATE_DOWN
	.no_dead_strip	_esw_disable_vport
.subsections_via_symbols
