	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_master_activate_admin_state
_mlx4_master_activate_admin_state:      ## @mlx4_master_activate_admin_state
	.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	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	movslq	%esi, %rax
	movl	$1, %ebx
	movl	$16, %r13d
	movq	_MLX4_VGT@GOTPCREL(%rip), %rsi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rcx
	movslq	%r8d, %rdx
	addq	$16, %r13
	cmpq	%rdx, %rbx
	movq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movq	(%rdx,%rax,8), %r14
	movq	(%rcx,%rax,8), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rdx, 8(%r14,%r13)
	movq	(%rcx,%rbx,8), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	___mlx4_register_vlan
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%r13), %ecx
	movl	8(%r14,%r13), %edx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_mlx4_dbg
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_MLX4_VGT@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r15d
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14,%r13)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_mlx4_warn
	movl	%r15d, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAX_PORTS,4,2             ## @MLX4_MAX_PORTS
	.comm	_MLX4_VGT,8,3                   ## @MLX4_VGT
	.comm	_NO_INDX,4,2                    ## @NO_INDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No vlan resorces slave %d, port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.no_dead_strip	_mlx4_master_activate_admin_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_master_activate_admin_state
_mlx4_master_activate_admin_state:      ; @mlx4_master_activate_admin_state
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _MLX4_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x26, #0
	sxtw	x9, w19
	mov	w21, #1
	lsl	x27, x9, #3
Lloh3:
	adrp	x28, _MLX4_VGT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MLX4_VGT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, w8, sxtw
	add	x21, x21, #1
	add	x26, x26, #16
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x10, x9, [x20, #8]
	ldr	x22, [x9, x27]
	ldr	x9, [x10, x27]
	lsl	x10, x21, #3
	ldr	x11, [x9, x10]
	add	x25, x22, x26
	str	x11, [x25, #24]
	ldr	x11, [x28]
	ldr	x2, [x9, x10]
	cmp	x11, x2
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x25, #16
	mov	x0, x20
	mov	x1, x21
	mov	x3, x24
	bl	___mlx4_register_vlan
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x25, #24]
	ldr	w3, [x24]
	mov	x0, x20
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, x19
	mov	x5, x21
	bl	_mlx4_dbg
Lloh7:
	adrp	x8, _MLX4_MAX_PORTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	b	LBB0_2
LBB0_6:
	mov	w23, #0
	b	LBB0_8
LBB0_7:
	mov	x23, x0
Lloh10:
	adrp	x8, _NO_INDX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NO_INDX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	x9, x22, x26
	str	w8, [x9, #16]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_mlx4_warn
LBB0_8:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAX_PORTS,4,2             ; @MLX4_MAX_PORTS
	.comm	_MLX4_VGT,8,3                   ; @MLX4_VGT
	.comm	_NO_INDX,4,2                    ; @NO_INDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No vlan resorces slave %d, port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.no_dead_strip	_mlx4_master_activate_admin_state
.subsections_via_symbols
