	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_set_vf_link_state
_liquidio_set_vf_link_state:            ## @liquidio_set_vf_link_state
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_GET_LIO
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	8(%rax), %r15
	cmpl	%ebx, (%r15)
	jle	LBB0_2
## %bb.3:
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	xorl	%r12d, %r12d
	cmpl	%r14d, (%rax,%rcx,4)
	je	LBB0_10
## %bb.4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_OCTNET_CMD_SET_VF_LINKSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	incl	%ebx
	movl	%ebx, -72(%rbp)
	movl	%r14d, -68(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	%r15, %rdi
	leaq	-88(%rbp), %rsi
	callq	_octnet_send_nic_ctrl_pkt
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	jle	LBB0_7
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rax,%rcx,4)
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCTNET_CMD_SET_VF_LINKSTATE,4,2 ## @OCTNET_CMD_SET_VF_LINKSTATE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_liquidio_set_vf_link_state
.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_link_state
_liquidio_set_vf_link_state:            ; @liquidio_set_vf_link_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	bl	_GET_LIO
	tbnz	w20, #31, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh2:
	adrp	x8, _OCTNET_CMD_SET_VF_LINKSTATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OCTNET_CMD_SET_VF_LINKSTATE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	w8, w20, #1
	stp	w8, w19, [sp, #24]
	str	xzr, [sp, #32]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_octnet_send_nic_ctrl_pkt
	cbz	w0, LBB0_10
; %bb.8:
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.9:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	mov	w8, w20
	ldr	x9, [x21, #8]
	str	w19, [x9, x8, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCTNET_CMD_SET_VF_LINKSTATE,4,2 ; @OCTNET_CMD_SET_VF_LINKSTATE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_liquidio_set_vf_link_state
.subsections_via_symbols
