	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_bond_vlan_table           ## -- Begin function mlx4_bond_vlan_table
	.p2align	4, 0x90
_mlx4_bond_vlan_table:                  ## @mlx4_bond_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), %r15
	movq	%r12, %rdi
	callq	_mlx4_priv
	movq	(%rax), %r13
	leaq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	64(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_MLX4_MAX_VLAN_NUM@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	24(%r15), %rsi
	movq	48(%r13), %rdi
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.6:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_7:
	xorl	%r15d, %r15d
LBB0_26:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rcx
	leaq	32(%r15), %r10
	leaq	56(%r13), %rax
	movq	48(%r13), %rdi
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r10), %rdx
	movl	$1, (%rdx,%rbx,4)
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rsi
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rsi), %rdx
	movl	$1, (%rdx,%rbx,4)
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r9), %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rsi
	movq	(%rdi,%rbx,8), %rdx
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, (%rdi,%rbx,8)
	movl	$1, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, (%rcx,%rbx,8)
	movl	$1, %r8d
	movq	%r10, %rsi
	jmp	LBB0_11
LBB0_18:
	testl	%r8d, %r8d
	je	LBB0_21
## %bb.19:
	movq	24(%r15), %rdx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx4_set_port_vlan_table
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_21:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.22:
	movq	48(%r13), %rdx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_mlx4_set_port_vlan_table
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_27
## %bb.23:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movl	%r13d, %r15d
LBB0_24:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
LBB0_27:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ## @MLX4_MAX_VLAN_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't duplicate entry %d in vlan table\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"failed to create mirror VLAN tables\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_bond_vlan_table           ; -- Begin function mlx4_bond_vlan_table
	.p2align	2
_mlx4_bond_vlan_table:                  ; @mlx4_bond_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, #40
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x23, #64
	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_22
; %bb.1:
	mov	x10, #0
	ldr	x11, [x22, #24]
	ldr	x12, [x23, #48]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x10, #3
	ldr	x14, [x11, x13]
	ldr	x13, [x12, x13]
	cmp	x13, #0
	ccmp	x14, #0, #4, ne
	ccmp	x14, x13, #4, ne
	b.ne	LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x9, #0
	mov	w24, #0
	mov	w11, #0
	ldr	x10, [x22, #24]
	add	x12, x22, #32
	add	x13, x23, #56
	ldr	x14, [x23, #48]
	mov	w15, #1
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x16, [x12]
	str	w15, [x16, x9, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x16, x13
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x16, [x16]
	str	w15, [x16, x9, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	ldrsw	x16, [x8]
	cmp	x9, x16
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x17, x9, #3
	ldr	x16, [x10, x17]
	ldr	x17, [x14, x17]
	cbz	x16, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x17, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x16, [x14, x9, lsl #3]
	mov	w24, #1
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x17, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x17, [x10, x9, lsl #3]
	mov	w11, #1
	mov	x16, x12
	b	LBB0_7
LBB0_14:
	str	x10, [sp]
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_23
LBB0_15:
	cbz	w11, LBB0_18
; %bb.16:
	ldr	x2, [x22, #24]
	mov	x0, x21
	mov	w1, #1
	bl	_mlx4_set_port_vlan_table
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
	b	LBB0_21
LBB0_18:
	cbz	w24, LBB0_22
; %bb.19:
	ldr	x2, [x23, #48]
	mov	x0, x21
	mov	w1, #2
	bl	_mlx4_set_port_vlan_table
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.20:
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_21:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
	b	LBB0_23
LBB0_22:
	mov	w22, #0
LBB0_23:
	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
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ; @MLX4_MAX_VLAN_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't duplicate entry %d in vlan table\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"failed to create mirror VLAN tables\n"

.subsections_via_symbols
