	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_msg_pf_set_vf_primary_mac_addr
_enetc_msg_pf_set_vf_primary_mac_addr:  ## @enetc_msg_pf_set_vf_primary_mac_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %r8d
	movq	%rdi, %rax
	movslq	%esi, %rsi
	movq	8(%rdi), %rdx
	movq	(%rdx,%rsi,8), %rdx
	movq	8(%rdx), %rdi
	movq	_ENETC_MSG_CMD_MNG_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_1
## %bb.2:
	movq	(%rax), %rdi
	movq	16(%rax), %rax
	movq	_ENETC_VF_FLAG_PF_SET_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_4
## %bb.3:
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %edx
	callq	_dev_warn
	jmp	LBB0_5
LBB0_1:
	movq	_ENETC_MSG_CMD_STATUS_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	(%rdx), %rdx
	incl	%r8d
	movl	%r8d, %esi
	callq	_enetc_pf_set_primary_mac_addr
LBB0_5:
	movq	_ENETC_MSG_CMD_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_MSG_CMD_MNG_ADD,8,3      ## @ENETC_MSG_CMD_MNG_ADD
	.comm	_ENETC_MSG_CMD_STATUS_FAIL,8,3  ## @ENETC_MSG_CMD_STATUS_FAIL
	.comm	_ENETC_VF_FLAG_PF_SET_MAC,4,2   ## @ENETC_VF_FLAG_PF_SET_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to override PF set mac addr for VF%d\n"

	.comm	_ENETC_MSG_CMD_STATUS_OK,8,3    ## @ENETC_MSG_CMD_STATUS_OK
	.no_dead_strip	_enetc_msg_pf_set_vf_primary_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_msg_pf_set_vf_primary_mac_addr
_enetc_msg_pf_set_vf_primary_mac_addr:  ; @enetc_msg_pf_set_vf_primary_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x10, [x0, #8]
	ldr	x10, [x10, w1, sxtw #3]
	ldr	x11, [x10, #8]
Lloh0:
	adrp	x12, _ENETC_MSG_CMD_MNG_ADD@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ENETC_MSG_CMD_MNG_ADD@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.1:
	mov	x9, x1
	mov	x8, x0
	sxtw	x11, w9
	ldr	x0, [x0]
	ldr	x8, [x8, #16]
	ldr	w8, [x8, x11, lsl #2]
Lloh3:
	adrp	x11, _ENETC_VF_FLAG_PF_SET_MAC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ENETC_VF_FLAG_PF_SET_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x0, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x9
	bl	_dev_warn
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ENETC_MSG_CMD_STATUS_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENETC_MSG_CMD_STATUS_FAIL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x2, [x10]
	add	w1, w9, #1
	bl	_enetc_pf_set_primary_mac_addr
LBB0_5:
Lloh10:
	adrp	x8, _ENETC_MSG_CMD_STATUS_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENETC_MSG_CMD_STATUS_OK@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_MSG_CMD_MNG_ADD,8,3      ; @ENETC_MSG_CMD_MNG_ADD
	.comm	_ENETC_MSG_CMD_STATUS_FAIL,8,3  ; @ENETC_MSG_CMD_STATUS_FAIL
	.comm	_ENETC_VF_FLAG_PF_SET_MAC,4,2   ; @ENETC_VF_FLAG_PF_SET_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to override PF set mac addr for VF%d\n"

	.comm	_ENETC_MSG_CMD_STATUS_OK,8,3    ; @ENETC_MSG_CMD_STATUS_OK
	.no_dead_strip	_enetc_msg_pf_set_vf_primary_mac_addr
.subsections_via_symbols
