	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_register_mac            ## -- Begin function __mlx4_register_mac
	.p2align	4, 0x90
___mlx4_register_mac:                   ## @__mlx4_register_mac
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,2), %r14
	addq	%r13, %r14
	shlq	$4, %r14
	addq	%r14, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mlx4_is_mf_bonded
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	cmpq	$1, %r13
	sete	%bl
	incq	%rbx
	movq	%r12, %rdi
	callq	_mlx4_priv
	movq	(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rbx,2), %rax
	shlq	$4, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mlx4_need_mf_bond
	movl	%eax, %ebx
	movl	%r15d, -100(%rbp)               ## 4-byte Spill
	testl	%r15d, %r15d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %r12
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_mlx4_dbg
	movl	%ebx, -104(%rbp)                ## 4-byte Spill
	testl	%ebx, %ebx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	cmpq	$1, %r13
	jne	LBB0_4
## %bb.2:
	leaq	80(%r15), %rdi
	callq	_mutex_lock
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	addq	$32, %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	(%r15,%r12), %rdi
	addq	$32, %rdi
	callq	_mutex_lock
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -64(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_4:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	addq	$32, %rdi
	callq	_mutex_lock
	leaq	(%r15,%r12), %rdi
	addq	$32, %rdi
LBB0_5:
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mutex_lock_nested
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.7:
	leaq	(%r15,%r12), %rax
	addq	$40, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, %rax
	addq	$40, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	xorl	%r15d, %r15d
	movl	$-1, %ebx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%edx, %r12d
	cmpq	%rax, %r15
	movl	%r13d, %ebx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_be64_to_cpu
	xorl	%r14d, %eax
	testl	%r13d, %eax
	cmovel	%r15d, %ebx
	movl	%ebx, %r13d
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_be64_to_cpu
	xorl	%r14d, %eax
	movl	%r15d, %edx
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edx
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %ebx
	movl	$-1, %edx
LBB0_11:
	cmpl	%edx, %ebx
	sete	%al
	movl	%edx, %ecx
	orl	%ebx, %ecx
	sets	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.13:
	movl	%ebx, %ecx
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	LBB0_15
## %bb.14:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ecx, %ecx
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rcx,4)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%edx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_12:
	movl	%edx, %ebx
LBB0_15:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	testl	%ebx, %ebx
	js	LBB0_16
## %bb.17:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	movl	%ebx, %eax
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_18
## %bb.19:
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	40(%r15,%r12), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_be64_to_cpu
	xorl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	andl	%r14d, %eax
	xorl	%ecx, %ecx
	movl	%eax, %edx
	negl	%edx
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	%edx, %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_20
LBB0_16:
	movl	$-1, -64(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_18:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
LBB0_20:
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.22:
	addq	%r15, %r12
	addq	$40, %r12
	movl	$-1, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	movl	%r13d, %ebx
	cmpq	%rcx, %r15
	jge	LBB0_31
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%r15,4)
	je	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_be64_to_cpu
	xorl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%r14d, %eax
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %r13d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_23 Depth=1
	testl	%ebx, %ebx
	movl	%r15d, %r13d
	cmovnsl	%ebx, %r13d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%r15,4)
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%r15d, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_30
LBB0_21:
	movl	$-1, %r13d
LBB0_31:
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	sete	%al
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	setns	%cl
	xorl	%edx, %edx
	orb	%al, %cl
	movl	$0, %ebx
	movl	-100(%rbp), %eax                ## 4-byte Reload
	cmovnel	%eax, %ebx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%edx, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_32
## %bb.40:
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
	je	LBB0_42
## %bb.41:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_42
LBB0_33:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	incl	(%rax,%r15,4)
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_34
## %bb.35:
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	40(%r13,%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_be64_to_cpu
	andl	%r14d, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %eax
	jne	LBB0_39
## %bb.36:
	movq	8(%r13,%r12), %rax
	cmpl	$0, (%rax,%r15,4)
	jne	LBB0_37
LBB0_39:
	leaq	L_.str.3(%rip), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_mlx4_warn
LBB0_37:
	movl	%r15d, %ebx
	jmp	LBB0_38
LBB0_32:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
LBB0_42:
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmovel	%r13d, %eax
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	cmovel	%r13d, %eax
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_dbg
	movq	16(%r14,%r15), %rax
	cmpq	24(%r14,%r15), %rax
	jne	LBB0_45
## %bb.43:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_44
LBB0_45:
	movq	_MLX4_MAC_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rbx
	movl	%r13d, %r12d
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	orl	%r13d, %edi
	callq	_cpu_to_be64
	movq	40(%r14,%r15), %rcx
	movslq	%r12d, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx,%rdx,8)
	movq	40(%r14,%r15), %rdx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_set_port_mac_table
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movslq	%r13d, %rdx
	leaq	(%r14,%r15), %r13
	addq	$40, %r13
	leaq	L_.str.7(%rip), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_mlx4_err
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_44
LBB0_47:
	movq	_MLX4_MAC_VALID@GOTPCREL(%rip), %rsi
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	leaq	(%r14,%r15), %rax
	addq	$16, %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, (%rcx,%rdx,4)
	movq	8(%r14,%r15), %rcx
	movl	$0, (%rcx,%rdx,4)
	incq	(%rax)
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_48
## %bb.49:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, (%rax,%rbx,4)
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r13,%r12), %rax
	movl	$1, (%rax,%rbx,4)
	movl	(%rsi), %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %edi
	callq	_cpu_to_be64
	movq	40(%r13,%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	40(%r13,%r12), %rdx
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_set_port_mac_table
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	movl	%r14d, %edx
	leaq	(%r12,%r13), %r14
	addq	$8, %r14
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rax,%rcx,4)
	movq	32(%r14), %rax
	movq	$0, (%rax,%rcx,8)
	movl	%r15d, %ebx
LBB0_38:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_54
	jmp	LBB0_57
LBB0_34:
	movl	%r15d, %ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_44:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_57
LBB0_54:
	cmpq	$2, %rax
	jne	LBB0_56
## %bb.55:
	subq	$-128, %r14
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	(%r12,%r13), %rdi
	addq	$32, %rdi
	jmp	LBB0_58
LBB0_56:
	leaq	(%r12,%r13), %rdi
	addq	$32, %rdi
	callq	_mutex_unlock
LBB0_57:
	leaq	(%r14,%r15), %rdi
	addq	$32, %rdi
LBB0_58:
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_52
LBB0_51:
	incq	16(%r13,%r12)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
LBB0_52:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_54
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registering MAC: 0x%llx for port %d %s duplicate\n"

L_.str.1:                               ## @.str.1
	.asciz	"with"

L_.str.2:                               ## @.str.2
	.asciz	"without"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_MLX4_MAX_MAC_NUM,4,2           ## @MLX4_MAX_MAC_NUM
	.comm	_MLX4_MAC_MASK,4,2              ## @MLX4_MAC_MASK
L_.str.3:                               ## @.str.3
	.asciz	"register mac: expect duplicate mac 0x%llx on port %d index %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Fail to allocate duplicate MAC table entry\n"

L_.str.5:                               ## @.str.5
	.asciz	"High Availability for virtual functions may not work as expected\n"

L_.str.6:                               ## @.str.6
	.asciz	"Free MAC index is %d\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_MLX4_MAC_VALID,4,2             ## @MLX4_MAC_VALID
L_.str.7:                               ## @.str.7
	.asciz	"Failed adding MAC: 0x%llx\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed adding duplicate mac: 0x%llx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_register_mac            ; -- Begin function __mlx4_register_mac
	.p2align	2
___mlx4_register_mac:                   ; @__mlx4_register_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, x2
	mov	x28, x1
	mov	x22, x0
	bl	_mlx4_priv
	ldr	x19, [x0]
	mov	w20, #48
	madd	x8, x28, x20, x19
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_mlx4_is_mf_bonded
	mov	x25, x0
	cmp	x28, #1
	mov	w8, #1
	cinc	x24, x8, eq
	mov	x0, x22
	bl	_mlx4_priv
	ldr	x26, [x0]
	madd	x8, x24, x20, x26
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_mlx4_need_mf_bond
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	str	w25, [sp, #56]                  ; 4-byte Folded Spill
	cmp	w25, #0
	csel	x8, x9, x8, eq
	stp	x28, x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	mov	x0, x22
	mov	x2, x23
	bl	_mlx4_dbg
Lloh6:
	adrp	x27, _MLX4_MAX_MAC_NUM@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MLX4_MAX_MAC_NUM@GOTPAGEOFF]
Lloh8:
	adrp	x20, _MLX4_MAC_MASK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MLX4_MAC_MASK@GOTPAGEOFF]
	str	w21, [sp, #84]                  ; 4-byte Folded Spill
	str	x19, [sp, #64]                  ; 8-byte Folded Spill
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	str	x26, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w21, LBB0_3
; %bb.1:
	cmp	x28, #1
	b.ne	LBB0_4
; %bb.2:
	add	x0, x19, #80
	bl	_mutex_lock
	mov	w8, #48
	madd	x8, x24, x8, x26
	b	LBB0_5
LBB0_3:
	mov	w8, #48
	madd	x8, x28, x8, x19
	add	x0, x8, #32
	bl	_mutex_lock
	mov	w26, #1
	b	LBB0_16
LBB0_4:
	mov	w21, #48
	madd	x8, x24, x21, x26
	add	x0, x8, #32
	bl	_mutex_lock
	madd	x8, x28, x21, x19
LBB0_5:
	add	x0, x8, #32
Lloh10:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_mutex_lock_nested
	ldr	w8, [x27]
	cmp	w8, #1
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
	b.lt	LBB0_8
; %bb.6:
	mov	x22, #0
	mov	w8, #48
	madd	x9, x28, x8, x19
	add	x25, x9, #40
	madd	x8, x24, x8, x26
	add	x26, x8, #40
	mov	w24, #-1
	mov	w21, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x20]
	ldr	x8, [x25]
	lsl	x28, x22, #3
	ldr	x0, [x8, x28]
	bl	_be64_to_cpu
	eor	w8, w0, w23
	tst	w8, w19
	csel	w21, w22, w21, eq
	ldr	w19, [x20]
	ldr	x8, [x26]
	ldr	x0, [x8, x28]
	bl	_be64_to_cpu
	eor	w8, w0, w23
	tst	w8, w19
	csel	w24, w22, w24, eq
	add	x22, x22, #1
	ldrsw	x8, [x27]
	cmp	x22, x8
	b.lt	LBB0_7
	b	LBB0_9
LBB0_8:
	mov	w21, #-1
	mov	w24, #-1
LBB0_9:
	cmp	w21, w24
	orr	w8, w24, w21
	ccmp	w8, #0, #8, ne
	cset	w26, lt
	tbnz	w21, #31, LBB0_15
; %bb.10:
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	tbz	w24, #31, LBB0_12
; %bb.11:
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, w21, uxtw #2]
	cmp	w8, #0
	csel	w26, w26, wzr, eq
LBB0_12:
	tbnz	w24, #31, LBB0_16
LBB0_13:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, w24, uxtw #2]
	cbz	w8, LBB0_17
; %bb.14:
	mov	w8, w24
	ldr	w19, [x20]
	mov	w9, #48
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	madd	x9, x28, x9, x10
	ldr	x9, [x9, #40]
	ldr	x0, [x9, x8, lsl #3]
	bl	_be64_to_cpu
	eor	w8, w0, w23
	tst	w8, w19
	csinv	w24, w24, wzr, eq
	csel	w26, w26, wzr, eq
	b	LBB0_17
LBB0_15:
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	tbz	w24, #31, LBB0_13
LBB0_16:
	mov	w24, #-1
LBB0_17:
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.18:
	mov	x25, #0
	mov	w9, #48
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	madd	x9, x28, x9, x10
	add	x22, x9, #40
	mov	w21, #-1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_28
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	w9, [x9, x25, lsl #2]
	cbz	w9, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w19, [x20]
	ldr	x8, [x22]
	ldr	x0, [x8, x25, lsl #3]
	bl	_be64_to_cpu
	eor	w8, w0, w23
	tst	w8, w19
	b.eq	LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x27]
	b	LBB0_19
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w21, #0
	csel	w21, w25, w21, lt
	cbz	w26, LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	tbz	w24, #31, LBB0_19
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	w9, [x9, x25, lsl #2]
	cmp	w9, #0
	csel	w24, w25, w24, eq
	b	LBB0_19
LBB0_27:
	mov	w21, #-1
LBB0_28:
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, #0
	ccmp	w24, #0, #0, ne
	cset	w9, ge
	cmp	w9, #0
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	csel	w22, w10, wzr, ne
	csel	w8, w26, wzr, ne
	tbnz	w9, #0, LBB0_37
; %bb.29:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	cbz	w10, LBB0_38
; %bb.30:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
	mov	w22, #0
	mov	w8, #0
	b	LBB0_38
LBB0_31:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	lsl	x9, x25, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_46
; %bb.32:
	ldr	w19, [x20]
	mov	w8, #48
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	madd	x8, x20, x8, x21
	ldr	x8, [x8, #40]
	ldr	x0, [x8, x25, lsl #3]
	bl	_be64_to_cpu
	and	w8, w0, w19
	cmp	w8, w23
	b.ne	LBB0_34
; %bb.33:
	mov	w8, #48
	madd	x8, x20, x8, x21
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x25, lsl #2]
	cbnz	w8, LBB0_35
LBB0_34:
	stp	x20, x25, [sp, #8]
	str	x23, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_mlx4_warn
LBB0_35:
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_48
LBB0_36:
	mov	w8, #48
	madd	x8, x28, x8, x24
	b	LBB0_51
LBB0_37:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
LBB0_38:
	cmp	w8, #0
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, ne
	csel	w25, w24, w21, ne
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_mlx4_dbg
	mov	w8, #48
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	madd	x26, x28, x8, x24
	ldp	x8, x9, [x26, #16]!
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.39:
Lloh21:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_47
LBB0_40:
Lloh24:
	adrp	x20, _MLX4_MAC_VALID@GOTPAGE
Lloh25:
	ldr	x20, [x20, _MLX4_MAC_VALID@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w0, w8, w23
	bl	_cpu_to_be64
	mov	w8, #48
	madd	x27, x28, x8, x24
	ldr	x8, [x27, #40]!
	mov	x9, x25
	sxtw	x9, w9
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	str	x0, [x8, w25, sxtw #3]
	ldr	x2, [x27]
	mov	x0, x19
	mov	x1, x28
	bl	_mlx4_set_port_mac_table
	mov	x21, x24
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_43
; %bb.41:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x2, w23
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	ldr	x8, [x27]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	str	xzr, [x8, x9, lsl #3]
	mov	x25, x24
LBB0_42:
	mov	x24, x21
	b	LBB0_47
LBB0_43:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x10, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	lsl	x8, x8, #2
	mov	w9, #1
	str	w9, [x10, x8]
	mov	w10, #48
	madd	x10, x28, x10, x21
	ldr	x10, [x10, #8]
	str	wzr, [x10, x8]
	ldr	x10, [x26]
	add	x10, x10, #1
	str	x10, [x26]
	cbz	w22, LBB0_42
; %bb.44:
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	str	wzr, [x10, x8]
	mov	w10, #48
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	madd	x22, x27, x10, x19
	mov	x26, x22
	ldr	x10, [x26, #8]!
	str	w9, [x10, x8]
	ldr	w8, [x20]
	orr	w0, w8, w23
	bl	_cpu_to_be64
	ldr	x8, [x22, #40]!
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	str	x0, [x8, x9, lsl #3]
	ldr	x2, [x22]
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x21
	mov	x1, x27
	bl	_mlx4_set_port_mac_table
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_52
; %bb.45:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_mlx4_warn
	ldr	x8, [x26]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	str	wzr, [x8, x9, lsl #2]
	ldr	x8, [x22]
	str	xzr, [x8, x9, lsl #3]
	mov	x25, x24
	b	LBB0_53
LBB0_46:
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
LBB0_47:
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_36
LBB0_48:
	cmp	x28, #2
	b.ne	LBB0_50
; %bb.49:
	add	x0, x24, #128
	bl	_mutex_unlock
	mov	w8, #48
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	madd	x8, x9, x8, x21
	b	LBB0_51
LBB0_50:
	mov	w19, #48
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	madd	x8, x8, x19, x21
	add	x0, x8, #32
	bl	_mutex_unlock
	madd	x8, x28, x19, x24
LBB0_51:
	add	x0, x8, #32
	bl	_mutex_unlock
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_52:
	mov	w8, #48
	madd	x8, x27, x8, x19
	ldr	x9, [x8, #16]
	add	x9, x9, #1
	str	x9, [x8, #16]
LBB0_53:
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	mov	x21, x19
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_48
	b	LBB0_36
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registering MAC: 0x%llx for port %d %s duplicate\n"

l_.str.1:                               ; @.str.1
	.asciz	"with"

l_.str.2:                               ; @.str.2
	.asciz	"without"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_MLX4_MAX_MAC_NUM,4,2           ; @MLX4_MAX_MAC_NUM
	.comm	_MLX4_MAC_MASK,4,2              ; @MLX4_MAC_MASK
l_.str.3:                               ; @.str.3
	.asciz	"register mac: expect duplicate mac 0x%llx on port %d index %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Fail to allocate duplicate MAC table entry\n"

l_.str.5:                               ; @.str.5
	.asciz	"High Availability for virtual functions may not work as expected\n"

l_.str.6:                               ; @.str.6
	.asciz	"Free MAC index is %d\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_MLX4_MAC_VALID,4,2             ; @MLX4_MAC_VALID
l_.str.7:                               ; @.str.7
	.asciz	"Failed adding MAC: 0x%llx\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed adding duplicate mac: 0x%llx\n"

.subsections_via_symbols
