	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_mac                ## -- Begin function mlx4_set_vf_mac
	.p2align	4, 0x90
_mlx4_set_vf_mac:                       ## @mlx4_set_vf_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_mlx4_get_slave_indx
	testl	%eax, %eax
	js	LBB0_2
## %bb.8:
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx4_slaves_closest_port
	movq	(%r12), %rdx
	movl	%eax, %r12d
	movl	%r14d, %ecx
	movq	(%rdx,%rcx,8), %r14
	movslq	%eax, %rbx
	shlq	$4, %rbx
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mlx4_info
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	%r15, %rdi
	callq	_mlx4_mac_to_u64
	movl	%eax, (%r14,%rbx)
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mlx4_info
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC invalidation is not allowed when spoofchk is on\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"default mac on vf %d port %d to %llX will take effect only after vf restart\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_mac                ; -- Begin function mlx4_set_vf_mac
	.p2align	2
_mlx4_set_vf_mac:                       ; @mlx4_set_vf_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_mlx4_priv
	mov	x23, x0
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_get_slave_indx
	tbnz	w0, #31, LBB0_2
; %bb.7:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_mlx4_slaves_closest_port
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x23, [x8, w24, uxtw #3]
	add	x8, x23, w0, sxtw #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	sxtw	x22, w22
	mov	x0, x21
	bl	_mlx4_mac_to_u64
                                        ; kill: def $w0 killed $w0 def $x0
	lsl	x8, x22, #4
	str	w0, [x23, x8]
	stp	x22, x0, [sp, #8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC invalidation is not allowed when spoofchk is on\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"default mac on vf %d port %d to %llX will take effect only after vf restart\n"

.subsections_via_symbols
