	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_master_deactivate_admin_state
_mlx4_master_deactivate_admin_state:    ## @mlx4_master_deactivate_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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_mlx4_get_active_ports
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_find_first_bit
	movl	%eax, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_bitmap_weight
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	addl	%r14d, %eax
	movslq	%r12d, %r12
	movslq	%r14d, %r13
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	leaq	(%rax,%rax), %r14
	addq	$6, %r14
	shlq	$4, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$6, %r14
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	incq	%r13
	movl	%ebx, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLX4_VF_SMI_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	8(%rcx,%r12), %rdx
	movl	%eax, 4(%rdx,%rbx,4)
	movq	(%rcx,%r12), %r15
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15,%r14,4), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r15,%r14,4), %edx
	leal	1(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___mlx4_unregister_vlan
	movq	_NO_INDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, (%r15,%r14,4)
	movq	(%rcx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r15,%r14,4), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15,%r14,4), %edx
	leal	1(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___mlx4_unregister_mac
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15,%r14,4)
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_VF_SMI_DISABLED,4,2       ## @MLX4_VF_SMI_DISABLED
	.comm	_NO_INDX,8,3                    ## @NO_INDX
	.no_dead_strip	_mlx4_master_deactivate_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_deactivate_admin_state
_mlx4_master_deactivate_admin_state:    ; @mlx4_master_deactivate_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
	mov	x21, x1
	mov	x19, x0
	bl	_mlx4_get_active_ports
	mov	x20, x0
	ldr	w1, [x19]
	bl	_find_first_bit
	mov	x22, x0
	ldr	w1, [x19]
	mov	x0, x20
	bl	_bitmap_weight
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	add	w8, w0, w22
	sxtw	x23, w21
	sxtw	x21, w22
	sxtw	x24, w8
	mov	w8, #24
	smull	x8, w22, w8
	add	x22, x8, #44
Lloh0:
	adrp	x25, _MLX4_VF_SMI_DISABLED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MLX4_VF_SMI_DISABLED@GOTPAGEOFF]
Lloh2:
	adrp	x26, _NO_INDX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NO_INDX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x22, x22, #24
	cmp	x21, x24
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	ldr	x9, [x19, #8]
	add	x9, x9, x23, lsl #4
	ldp	x28, x10, [x9]
	add	x9, x10, x21, lsl #2
	str	w8, [x9, #4]
	ldr	x8, [x26]
	add	x27, x28, x22
	ldur	x9, [x27, #-20]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x28, x22]
	add	w1, w21, #1
	mov	x0, x19
	bl	___mlx4_unregister_vlan
	ldr	x8, [x26]
	stur	x8, [x27, #-20]
	ldr	x8, [x26]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x9, [x27, #-12]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x28, x22
	ldur	w2, [x8, #-4]
	add	w1, w21, #1
	mov	x0, x19
	bl	___mlx4_unregister_mac
	ldr	x8, [x26]
	stur	x8, [x27, #-12]
	b	LBB0_2
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_VF_SMI_DISABLED,4,2       ; @MLX4_VF_SMI_DISABLED
	.comm	_NO_INDX,8,3                    ; @NO_INDX
	.no_dead_strip	_mlx4_master_deactivate_admin_state
.subsections_via_symbols
