	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_unregister_vlan         ## -- Begin function __mlx4_unregister_vlan
	.p2align	4, 0x90
___mlx4_unregister_vlan:                ## @__mlx4_unregister_vlan
	.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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	(%rax), %r12
	movq	%r13, %rdi
	callq	_mlx4_is_mf_bonded
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpq	$1, %r14
	sete	%r15b
	incq	%r15
	movq	%r13, %rdi
	callq	_mlx4_priv
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	shlq	$5, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.1:
	cmpq	$1, %r14
	jne	LBB0_4
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	40(%rax), %rdi
	callq	_mutex_lock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	jmp	LBB0_3
LBB0_5:
	movq	%r14, %rax
	shlq	$5, %rax
	leaq	(%r12,%rax), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	jmp	LBB0_6
LBB0_4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	%r14, %rax
	shlq	$5, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$8, %rdi
LBB0_3:
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mutex_lock_nested
LBB0_6:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mlx4_find_cached_vlan
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	jmp	LBB0_8
LBB0_9:
	movslq	-48(%rbp), %rcx
	movq	_MLX4_VLAN_REGULAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rcx, %rdx
LBB0_8:
	callq	_mlx4_warn
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_15:
	testl	%edx, %edx
	je	LBB0_26
LBB0_23:
	cmpq	$2, %r14
	jne	LBB0_25
## %bb.24:
	addq	$72, %rbx
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	jmp	LBB0_27
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	callq	_mutex_unlock
LBB0_26:
	shlq	$5, %r14
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
LBB0_27:
	callq	_mutex_unlock
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	shlq	$5, %r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx,%r12), %rax
	movq	(%rax,%rcx,8), %rdx
	decq	%rdx
	movq	%rdx, (%rax,%rcx,8)
	jne	LBB0_13
## %bb.12:
	movq	(%rbx,%r12), %rax
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_16
LBB0_13:
	leaq	(%rbx,%r12), %r15
	addq	$24, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mlx4_dbg
	movq	(%r15), %rcx
	movslq	-48(%rbp), %rax
	cmpq	$0, (%rcx,%rax,8)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_15
## %bb.14:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	$0, (%rcx,%rax,4)
	jmp	LBB0_15
LBB0_16:
	movq	16(%rbx,%r12), %rdx
	movq	$0, (%rdx,%rcx,8)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx4_set_port_vlan_table
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_mlx4_warn
LBB0_18:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	decl	12(%rbx,%r12)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	-48(%rbp), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rax,%rcx), %rcx
	movslq	-48(%rbp), %rax
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_23
## %bb.20:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rcx,%rdx), %rdx
	movq	$0, (%rdx,%rax,8)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mlx4_set_port_vlan_table
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_mlx4_warn
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	decl	12(%rax,%rcx)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlan 0x%x is not in the vlan table\n"

	.comm	_MLX4_VLAN_REGULAR,4,2          ## @MLX4_VLAN_REGULAR
L_.str.1:                               ## @.str.1
	.asciz	"Trying to free special vlan index %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Have %d more references for index %d, no need to modify vlan table\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fail to set vlan in port %d during unregister\n"

L_.str.4:                               ## @.str.4
	.asciz	"Fail to set vlan in duplicate port %d during unregister\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_unregister_vlan         ; -- Begin function __mlx4_unregister_vlan
	.p2align	2
___mlx4_unregister_vlan:                ; @__mlx4_unregister_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_mlx4_priv
	ldr	x24, [x0]
	mov	x0, x21
	bl	_mlx4_is_mf_bonded
	mov	x22, x0
	cmp	x19, #1
	mov	w8, #1
	cinc	x20, x8, eq
	mov	x0, x21
	bl	_mlx4_priv
	ldr	x25, [x0]
	cbz	w22, LBB0_3
; %bb.1:
	cmp	x19, #1
	b.ne	LBB0_4
; %bb.2:
	add	x0, x24, #40
	bl	_mutex_lock
	add	x8, x25, x20, lsl #5
	b	LBB0_5
LBB0_3:
	add	x8, x24, x19, lsl #5
	add	x0, x8, #8
	bl	_mutex_lock
	b	LBB0_6
LBB0_4:
	add	x8, x25, x20, lsl #5
	add	x0, x8, #8
	bl	_mutex_lock
	add	x8, x24, x19, lsl #5
LBB0_5:
	add	x0, x8, #8
Lloh0:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mutex_lock_nested
LBB0_6:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_mlx4_find_cached_vlan
	cbz	x0, LBB0_8
; %bb.7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	b	LBB0_10
LBB0_8:
	ldrsw	x3, [sp, #12]
Lloh5:
	adrp	x8, _MLX4_VLAN_REGULAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_VLAN_REGULAR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ge	LBB0_17
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x3
LBB0_10:
	bl	_mlx4_warn
LBB0_11:
	cbz	w22, LBB0_15
LBB0_12:
	cmp	x19, #2
	b.ne	LBB0_14
; %bb.13:
	add	x0, x24, #72
	bl	_mutex_unlock
	add	x8, x25, x20, lsl #5
	b	LBB0_16
LBB0_14:
	add	x8, x25, x20, lsl #5
	add	x0, x8, #8
	bl	_mutex_unlock
LBB0_15:
	add	x8, x24, x19, lsl #5
LBB0_16:
	add	x0, x8, #8
	bl	_mutex_unlock
	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
	add	sp, sp, #96
	ret
LBB0_17:
	add	x23, x25, x20, lsl #5
	add	x26, x24, x19, lsl #5
	ldr	x8, [x26, #24]!
	lsl	x9, x3, #3
	ldr	x10, [x8, x9]
	subs	x2, x10, #1
	str	x2, [x8, x9]
	b.ne	LBB0_19
; %bb.18:
	lsl	x8, x19, #5
	ldr	x8, [x24, x8]
	ldr	w8, [x8, x3, lsl #2]
	cbz	w8, LBB0_21
LBB0_19:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_mlx4_dbg
	ldr	x9, [x26]
	ldrsw	x8, [sp, #12]
	ldr	x9, [x9, x8, lsl #3]
	cbnz	x9, LBB0_11
; %bb.20:
	ldr	x9, [x23]
	str	wzr, [x9, x8, lsl #2]
	cbnz	w22, LBB0_12
	b	LBB0_15
LBB0_21:
	add	x26, x24, x19, lsl #5
	ldr	x2, [x26, #16]
	str	xzr, [x2, x3, lsl #3]
	mov	x0, x21
	mov	x1, x19
	bl	_mlx4_set_port_vlan_table
	cbz	x0, LBB0_23
; %bb.22:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_mlx4_warn
LBB0_23:
	ldr	w8, [x26, #12]
	sub	w8, w8, #1
	str	w8, [x26, #12]
	cbz	w22, LBB0_15
; %bb.24:
	ldr	x8, [x23]
	ldrsw	x9, [sp, #12]
	str	wzr, [x8, x9, lsl #2]
	add	x9, x25, x20, lsl #5
	ldr	x10, [x9, #24]
	ldrsw	x8, [sp, #12]
	ldr	x10, [x10, x8, lsl #3]
	cbnz	x10, LBB0_12
; %bb.25:
	ldr	x2, [x9, #16]
	str	xzr, [x2, x8, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_set_port_vlan_table
	cbz	x0, LBB0_27
; %bb.26:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_mlx4_warn
LBB0_27:
	add	x8, x25, x20, lsl #5
	ldr	w9, [x8, #12]
	sub	w9, w9, #1
	str	w9, [x8, #12]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlan 0x%x is not in the vlan table\n"

	.comm	_MLX4_VLAN_REGULAR,4,2          ; @MLX4_VLAN_REGULAR
l_.str.1:                               ; @.str.1
	.asciz	"Trying to free special vlan index %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Have %d more references for index %d, no need to modify vlan table\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fail to set vlan in port %d during unregister\n"

l_.str.4:                               ; @.str.4
	.asciz	"Fail to set vlan in duplicate port %d during unregister\n"

.subsections_via_symbols
