	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_unbond_vlan_table         ## -- Begin function mlx4_unbond_vlan_table
	.p2align	4, 0x90
_mlx4_unbond_vlan_table:                ## @mlx4_unbond_vlan_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_mlx4_priv
	movq	(%rax), %r14
	leaq	48(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	80(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_MLX4_MAX_VLAN_NUM@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.15:
	movq	32(%rbx), %rdx
	movq	64(%r14), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rax
	cmpq	(%rsi,%rdi,8), %rax
	jne	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_16
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rcx
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	movslq	(%r8), %rax
	cmpq	%rax, %rdx
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%rbx), %rax
	movl	$0, (%rax,%rdx,4)
	movq	56(%rbx), %rax
	cmpl	$0, (%rax,%rdx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rcx,%rdx,8)
	movl	$1, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	72(%r14), %rax
	movl	$0, (%rax,%rdx,4)
	movq	88(%r14), %rax
	cmpl	$0, (%rax,%rdx,4)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	64(%r14), %rax
	movq	$0, (%rax,%rdx,8)
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_10:
	xorl	%r13d, %r13d
	testl	%esi, %esi
	je	LBB0_13
## %bb.11:
	movq	32(%rbx), %rdx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx4_set_port_vlan_table
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movl	%ebx, %r13d
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.18:
	movq	64(%r14), %rdx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_mlx4_set_port_vlan_table
	testl	%eax, %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movl	%ebx, %r13d
	jmp	LBB0_20
LBB0_14:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ## @MLX4_MAX_VLAN_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlan table is in an unexpected state when trying to unbond\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to unmirror VLAN tables for port 1(%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to unmirror VLAN tables for port 2(%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_unbond_vlan_table         ; -- Begin function mlx4_unbond_vlan_table
	.p2align	2
_mlx4_unbond_vlan_table:                ; @mlx4_unbond_vlan_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_mlx4_priv
	ldr	x22, [x0]
	mov	x0, x21
	bl	_mlx4_priv
	ldr	x23, [x0]
	add	x19, x22, #48
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x23, #80
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _MLX4_MAX_VLAN_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAX_VLAN_NUM@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	ldr	x10, [x22, #32]
	ldr	x11, [x23, #64]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	ldr	x13, [x11]
	cmp	x12, x13
	b.ne	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #8
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.4:
	mov	w24, #0
	mov	w11, #0
	ldr	x10, [x22, #32]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cbz	x12, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [x22, #40]
	lsl	x12, x9, #2
	str	wzr, [x13, x12]
	ldr	x13, [x22, #56]
	ldr	w13, [x13, x12]
	cbnz	w13, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x10, x9, lsl #3]
	mov	w11, #1
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [x23, #72]
	str	wzr, [x13, x12]
	ldr	x13, [x23, #88]
	ldr	w12, [x13, x12]
	cbnz	w12, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x23, #64]
	str	xzr, [x12, x9, lsl #3]
	mov	w24, #1
	b	LBB0_5
LBB0_11:
	mov	w22, #0
	b	LBB0_20
LBB0_12:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_13:
	cbz	w11, LBB0_17
; %bb.14:
	ldr	x2, [x22, #32]
	mov	x0, x21
	mov	w1, #1
	bl	_mlx4_set_port_vlan_table
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.15:
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
LBB0_16:
	cbnz	w24, LBB0_18
	b	LBB0_20
LBB0_17:
	mov	w22, #0
	cbz	w24, LBB0_20
LBB0_18:
	ldr	x2, [x23, #64]
	mov	x0, x21
	mov	w1, #2
	bl	_mlx4_set_port_vlan_table
	cbz	w0, LBB0_20
; %bb.19:
	mov	x23, x0
	str	x23, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
	mov	x22, x23
LBB0_20:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ; @MLX4_MAX_VLAN_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlan table is in an unexpected state when trying to unbond\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to unmirror VLAN tables for port 1(%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to unmirror VLAN tables for port 2(%d)\n"

.subsections_via_symbols
