	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_vnic_set_mac
_nfp_abm_vnic_set_mac:                  ## @nfp_abm_vnic_set_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	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, %rax
	cmpl	%ebx, (%r14)
	jae	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_nfp_warn
	movq	(%r15), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.2:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eth_hw_addr_random             ## TAILCALL
LBB0_3:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	(%r13), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_snprintf
	movl	(%r12), %edi
	callq	_nfp_nsp_open
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_nfp_warn
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	jmp	LBB0_13
LBB0_5:
	movq	%rbx, %rdi
	callq	_nfp_nsp_has_hwinfo_lookup
	testl	%eax, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_nfp_nsp_hwinfo_lookup
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_nfp_nsp_close
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_nfp_warn
	jmp	LBB0_12
LBB0_8:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_nfp_warn
	jmp	LBB0_12
LBB0_9:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rcx
	leaq	8(%rbx), %r8
	leaq	12(%rbx), %r9
	leaq	16(%rbx), %r10
	movq	%rbx, %rax
	addq	$20, %rax
	leaq	L_.str.5(%rip), %rsi
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rdx
	pushq	%rax
	pushq	%r10
	callq	_sscanf
	addq	$16, %rsp
	cmpl	$6, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_14
LBB0_11:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	-80(%rbp), %rdx
	xorl	%eax, %eax
	callq	_nfp_warn
LBB0_12:
	movq	(%r14), %rdi
LBB0_13:
	callq	_eth_hw_addr_random
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No entry for persistent MAC address\n"

L_.str.1:                               ## @.str.1
	.asciz	"eth%u.mac.pf%u"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to access the NSP for persistent MAC address: %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"NSP doesn't support PF MAC generation\n"

L_.str.4:                               ## @.str.4
	.asciz	"Reading persistent MAC address failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"

L_.str.6:                               ## @.str.6
	.asciz	"Can't parse persistent MAC address (%s)\n"

	.no_dead_strip	_nfp_abm_vnic_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_vnic_set_mac
_nfp_abm_vnic_set_mac:                  ; @nfp_abm_vnic_set_mac
	.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, #48
	mov	x19, x2
	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]
	ldr	x13, [x0, #8]
	ldr	x12, [x13, #8]
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	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x13]
	cmp	w8, w3
	b.hs	LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_warn
	ldr	x0, [x19]
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.2:
	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
	b	_eth_hw_addr_random
LBB0_3:
	ldr	w3, [x12, w3, uxtw #2]
	ldr	w4, [x1]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #88
	mov	w1, #32
	bl	_snprintf
	ldr	w0, [x20]
	bl	_nfp_nsp_open
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w20, [x20]
	mov	x0, x22
	bl	_PTR_ERR
	str	x0, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
LBB0_5:
	bl	_nfp_warn
	add	sp, sp, #16
LBB0_6:
	ldr	x0, [x19]
	bl	_eth_hw_addr_random
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.8:
	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_9:
	mov	x0, x22
	bl	_nfp_nsp_has_hwinfo_lookup
	cbz	w0, LBB0_12
; %bb.10:
	sub	x1, x29, #88
	mov	x0, x22
	mov	w2, #32
	bl	_nfp_nsp_hwinfo_lookup
	mov	x23, x0
	mov	x0, x22
	bl	_nfp_nsp_close
	cbz	w23, LBB0_13
; %bb.11:
	ldr	w0, [x20]
	str	x23, [sp, #-16]!
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_12:
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nfp_warn
	b	LBB0_6
LBB0_13:
	add	x3, x21, #4
	add	x4, x21, #8
	add	x5, x21, #12
	add	x6, x21, #16
	add	x7, x21, #20
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x22, x29, #88
	sub	x0, x29, #88
	mov	x2, x21
	bl	_sscanf
	cmp	w0, #6
	b.ne	LBB0_15
; %bb.14:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	x1, x21
	bl	_ether_addr_copy
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ether_addr_copy
	b	LBB0_7
LBB0_15:
	ldr	w0, [x20]
	str	x22, [sp, #-16]!
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No entry for persistent MAC address\n"

l_.str.1:                               ; @.str.1
	.asciz	"eth%u.mac.pf%u"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to access the NSP for persistent MAC address: %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"NSP doesn't support PF MAC generation\n"

l_.str.4:                               ; @.str.4
	.asciz	"Reading persistent MAC address failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"

l_.str.6:                               ; @.str.6
	.asciz	"Can't parse persistent MAC address (%s)\n"

	.no_dead_strip	_nfp_abm_vnic_set_mac
.subsections_via_symbols
