	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_spoofchk           ## -- Begin function mlx4_set_vf_spoofchk
	.p2align	4, 0x90
_mlx4_set_vf_spoofchk:                  ## @mlx4_set_vf_spoofchk
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_mlx4_priv
	movq	%rax, %r13
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rdi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MLX4_DEV_CAP_FLAG2_FSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mlx4_get_slave_indx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mlx4_slaves_closest_port
	movq	(%r13), %rcx
	movl	%r14d, %edx
	movq	(%rcx,%rdx,8), %r14
	movslq	%eax, %r15
	movl	4(%r14,%r15,8), %esi
	movq	%r12, %rdi
	callq	_mlx4_u64_to_mac
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	%r13d, (%r14,%r15,8)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_info
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MLX4_DEV_CAP_FLAG2_FSM,4,2     ## @MLX4_DEV_CAP_FLAG2_FSM
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal MAC with spoofchk\n"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_spoofchk           ; -- Begin function mlx4_set_vf_spoofchk
	.p2align	2
_mlx4_set_vf_spoofchk:                  ; @mlx4_set_vf_spoofchk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_mlx4_priv
	mov	x23, x0
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x20
	bl	_mlx4_is_master
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_FSM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_FSM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x24
	bl	_mlx4_get_slave_indx
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_mlx4_slaves_closest_port
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x23, [x8, w24, uxtw #3]
	add	x8, x23, w0, sxtw #3
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_mlx4_u64_to_mac
	cbz	w19, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_11
LBB0_5:
	mov	w0, #0
	sxtw	x8, w21
	lsl	x8, x8, #3
	str	w19, [x23, x8]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_info
Lloh20:
	adrp	x8, _EPERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MLX4_DEV_CAP_FLAG2_FSM,4,2     ; @MLX4_DEV_CAP_FLAG2_FSM
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal MAC with spoofchk\n"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
