	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_eswitch_mode_set
_liquidio_eswitch_mode_set:             ## @liquidio_eswitch_mode_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_devlink_priv
	movq	(%rax), %rbx
	movq	_LIQUIDIO_SWITCHDEV_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	cmpl	%r15d, (%rbx)
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.4:
	movl	$128, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lio_vf_rep_create              ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_lio_vf_rep_destroy
	movl	$129, (%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_LIQUIDIO_SWITCHDEV_CAP,4,2     ## @LIQUIDIO_SWITCHDEV_CAP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_liquidio_eswitch_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_eswitch_mode_set
_liquidio_eswitch_mode_set:             ; @liquidio_eswitch_mode_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_devlink_priv
	ldr	x19, [x0]
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _LIQUIDIO_SWITCHDEV_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIQUIDIO_SWITCHDEV_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	cmp	w20, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #128
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lio_vf_rep_create
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_lio_vf_rep_destroy
	mov	w0, #0
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LIQUIDIO_SWITCHDEV_CAP,4,2     ; @LIQUIDIO_SWITCHDEV_CAP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_liquidio_eswitch_mode_set
.subsections_via_symbols
