	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_mlx4_priv
	movq	_MLX4_VLAN_REGULAR@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_warn                      ## TAILCALL
LBB0_1:
	movq	(%rax), %r13
	leaq	(%r12,%r12,2), %r14
	leaq	(,%r14,8), %rdi
	addq	%r13, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	16(%r13,%r14,8), %rcx
	movslq	%ebx, %rax
	movq	(%rcx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	decq	%rdx
	movq	%rdx, (%rcx,%rax,8)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mlx4_dbg
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mlx4_warn
	jmp	LBB0_6
LBB0_5:
	movq	8(%r13,%r14,8), %rdx
	movq	$0, (%rdx,%rax,8)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlx4_set_port_vlan_table
	decl	4(%r13,%r14,8)
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_VLAN_REGULAR,4,2          ## @MLX4_VLAN_REGULAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to free special vlan index %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"No vlan entry for index %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Have more references for index %d,no need to modify vlan table\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:
	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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mlx4_priv
Lloh0:
	adrp	x8, _MLX4_VLAN_REGULAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_VLAN_REGULAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	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	_mlx4_warn
LBB0_2:
	ldr	x23, [x0]
	mov	w8, #24
	madd	x19, x22, x8, x23
	mov	x0, x19
	bl	_mutex_lock
	ldr	x9, [x19, #16]
	ldr	x10, [x9, w21, sxtw #3]
	cbz	x10, LBB0_5
; %bb.3:
	sxtw	x8, w21
	subs	x10, x10, #1
	str	x10, [x9, x8, lsl #3]
	b.eq	LBB0_6
; %bb.4:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx4_dbg
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx4_warn
	b	LBB0_7
LBB0_6:
	mov	w9, #24
	madd	x21, x22, x9, x23
	ldr	x2, [x21, #8]
	str	xzr, [x2, x8, lsl #3]
	mov	x0, x20
	mov	x1, x22
	bl	_mlx4_set_port_vlan_table
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	str	w8, [x21, #4]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_VLAN_REGULAR,4,2          ; @MLX4_VLAN_REGULAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to free special vlan index %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"No vlan entry for index %d\n"

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

.subsections_via_symbols
