	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_mlx4_get_active_ports
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_find_first_bit
	movl	%eax, %r12d
	movl	(%r15), %esi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_bitmap_weight
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addl	%r12d, %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rcx
	cltq
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	imulq	$56, %rcx, %r12
	addq	$56, %r12
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	4(,%rcx,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$56, %r12
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addq	%r14, %rax
	incq	%rax
	incq	%r14
	cmpq	-120(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	8(%rcx,%rax), %rsi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	addq	%rbx, %rsi
	movl	(%rsi,%r14,4), %esi
	movq	8(%rdx,%rax), %rdi
	addq	%rbx, %rdi
	movl	%esi, (%rdi,%r14,4)
	movq	(%rdx,%rax), %r13
	movq	(%rcx,%rax), %rbx
	movq	(%rbx,%r12), %r15
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx,%r12), %rdx
	movups	(%rbx,%r12), %xmm0
	movups	%xmm0, 8(%r13,%r12)
	movl	48(%rbx,%r12), %eax
	movl	%eax, 52(%r13,%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	44(%rbx,%r12), %eax
	movl	%eax, 48(%r13,%r12)
	movl	16(%rbx,%r12), %eax
	movl	%eax, 24(%r13,%r12)
	movq	24(%rbx,%r12), %rax
	movq	%rax, 40(%r13,%r12)
	movl	40(%rbx,%r12), %ecx
	movl	%ecx, 36(%r13,%r12)
	movl	36(%rbx,%r12), %ecx
	movl	%ecx, 32(%r13,%r12)
	movl	32(%rbx,%r12), %ecx
	movl	%ecx, 28(%r13,%r12)
	movq	_MLX4_VGT@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	movq	-112(%rbp), %r15                ## 8-byte Reload
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r13), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	incq	%rsi
	movq	%r15, %rdi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___mlx4_register_vlan
	movq	%r15, %rsi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13,%r12), %ecx
	movl	16(%r13,%r12), %edx
	movq	%rsi, %r15
	movq	%rsi, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_mlx4_dbg
	movq	24(%rbx,%r12), %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx,%r12), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	incq	%rbx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	___mlx4_register_mac
	movq	%r15, %rdi
	movl	%eax, %r15d
	movl	%eax, 4(%r13,%r12)
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13,%r12), %edx
	movq	%rdi, %r13
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_mlx4_dbg
	movq	%r13, %r15
	jmp	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx,%r12), %rdx
	jmp	LBB0_7
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %ecx
	incl	%ecx
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13,%r12)
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx4_warn
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %r14d
	incl	%r14d
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13,%r12)
	movq	_MLX4_VGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13,%r12)
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movq	%rsi, %rbx
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 8(%r13,%r12)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_mlx4_warn
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.comm	_MLX4_VGT,8,3                   ## @MLX4_VGT
	.comm	_NO_INDX,8,3                    ## @NO_INDX
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No vlan resources slave %d, port %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"No mac resources slave %d, port %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"alloc mac %llx 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:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	bl	_mlx4_get_active_ports
	mov	x21, x0
	ldr	w1, [x20]
	bl	_find_first_bit
	mov	x22, x0
	ldr	w1, [x20]
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	mov	x0, x21
	bl	_bitmap_weight
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.1:
	sxtw	x10, w19
	add	w8, w0, w22
	sxtw	x9, w22
	sxtw	x8, w8
	stp	x19, x8, [sp, #24]              ; 16-byte Folded Spill
	mov	w8, #56
	smull	x8, w22, w8
	add	x24, x8, #108
	add	x27, x9, #1
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	lsl	x28, x10, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	add	x24, x24, #56
	add	x8, x27, #1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x27, x9
	mov	x27, x8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x9, [x20, #8]
	add	x8, x8, x28
	lsl	x10, x27, #2
	ldp	x21, x11, [x8]
	ldr	w8, [x11, x10]
	add	x9, x9, x28
	ldp	x19, x11, [x9]
	str	w8, [x11, x10]
	add	x23, x21, x24
	ldur	x25, [x23, #-52]
Lloh0:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x25, x0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x23, #-52]
	add	x9, x19, x24
	stur	x8, [x9, #-44]
	ldur	x2, [x23, #-44]
	stur	x2, [x9, #-36]
	ldur	w8, [x23, #-4]
	str	w8, [x9]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x24
	add	x23, x19, x24
	ldp	w9, w8, [x21, #-12]
	stur	w8, [x23, #-4]
	ldur	w8, [x21, #-36]
	stur	w8, [x23, #-28]
	ldur	x8, [x21, #-28]
	stur	x8, [x23, #-12]
	stur	w9, [x23, #-16]
	ldur	d0, [x21, #-20]
	stur	d0, [x23, #-24]
Lloh3:
	adrp	x9, _MLX4_VGT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_VGT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x2
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x3, x23, #52
	add	w26, w22, #1
	mov	x0, x20
	mov	x1, x26
	bl	___mlx4_register_vlan
	cbnz	w0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x19, x24
	ldur	w2, [x8, #-36]
	ldur	w3, [x23, #-52]
	mov	x0, x20
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x26
	bl	_mlx4_dbg
	ldur	x8, [x21, #-28]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w2, [x21, #-36]
	add	w26, w22, #1
	mov	x0, x20
	mov	x1, x26
	bl	___mlx4_register_mac
	mov	x25, x0
	add	x8, x19, x24
	stur	w0, [x8, #-48]
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w2, [x23, #-28]
	mov	x0, x20
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x25
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x26
	bl	_mlx4_dbg
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, x24
	ldur	x2, [x8, #-44]
	b	LBB0_7
LBB0_14:
	mov	w25, #0
	b	LBB0_18
LBB0_15:
Lloh10:
	adrp	x9, _NO_INDX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NO_INDX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	stur	w9, [x8, #-48]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
	mov	x25, x0
Lloh15:
	adrp	x8, _NO_INDX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NO_INDX@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x19, x19, x24
	stur	w8, [x19, #-52]
Lloh18:
	adrp	x8, _MLX4_VGT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX4_VGT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stur	x8, [x19, #-36]
Lloh21:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_htons
	stur	x0, [x19, #-44]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
LBB0_17:
	mov	x0, x20
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x26
	bl	_mlx4_warn
LBB0_18:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.comm	_MLX4_VGT,8,3                   ; @MLX4_VGT
	.comm	_NO_INDX,8,3                    ; @NO_INDX
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No vlan resources slave %d, port %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"No mac resources slave %d, port %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"alloc mac %llx idx  %d slave %d port %d\n"

	.no_dead_strip	_mlx4_master_activate_admin_state
.subsections_via_symbols
