	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __liquidio_set_vf_mac
___liquidio_set_vf_mac:                 ## @__liquidio_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_GET_LIO
	movq	%rax, %r15
	movq	8(%rax), %rbx
	movq	%r12, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.3:
	cmpl	%r14d, (%rbx)
	jle	LBB0_1
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-112(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	$0, -80(%rbp)
	movq	_OCTNET_CMD_CHANGE_MACADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	leal	1(%r14), %eax
	movl	%eax, -96(%rbp)
	movl	$1, -92(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r13, -72(%rbp)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movl	$1, -88(%rbp)
	movq	_liquidio_link_ctrl_cmd_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
LBB0_6:
	movq	-112(%rbp), %rdi
	movq	$0, (%rdi)
	addq	$8, %rdi
	movq	%r12, %rsi
	callq	_ether_addr_copy
	movq	-112(%rbp), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rcx
	movl	%r14d, %edx
	movq	%rax, (%rcx,%rdx,8)
	leaq	-112(%rbp), %rsi
	callq	_octnet_send_nic_ctrl_pkt
	movq	_EIO@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovlel	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCTNET_CMD_CHANGE_MACADDR,4,2  ## @OCTNET_CMD_CHANGE_MACADDR
	.comm	_liquidio_link_ctrl_cmd_completion,4,2 ## @liquidio_link_ctrl_cmd_completion
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	___liquidio_set_vf_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __liquidio_set_vf_mac
___liquidio_set_vf_mac:                 ; @__liquidio_set_vf_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	bl	_GET_LIO
	mov	x24, x0
	ldr	x20, [x0, #8]
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
	tbnz	w19, #31, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, w19
	b.le	LBB0_6
; %bb.3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _OCTNET_CMD_CHANGE_MACADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTNET_CMD_CHANGE_MACADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	add	w9, w19, #1
	mov	w8, #1
	stp	w9, w8, [sp, #24]
	ldr	x9, [x24]
	ldr	w9, [x9]
	str	w9, [sp, #56]
	str	x23, [sp, #48]
	cbz	w22, LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _liquidio_link_ctrl_cmd_completion@GOTPAGE
Lloh4:
	ldr	x9, [x9, _liquidio_link_ctrl_cmd_completion@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w8, [sp, #32]
	str	w9, [sp, #16]
LBB0_5:
	ldr	x0, [sp, #8]
	str	xzr, [x0], #8
	mov	x1, x21
	bl	_ether_addr_copy
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9, w19, uxtw #3]
	add	x1, sp, #8
	mov	x0, x20
	bl	_octnet_send_nic_ctrl_pkt
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, le
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCTNET_CMD_CHANGE_MACADDR,4,2  ; @OCTNET_CMD_CHANGE_MACADDR
	.comm	_liquidio_link_ctrl_cmd_completion,4,2 ; @liquidio_link_ctrl_cmd_completion
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	___liquidio_set_vf_mac
.subsections_via_symbols
