	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_eswitch      ## -- Begin function qed_mcp_ov_update_eswitch
	.p2align	4, 0x90
_qed_mcp_ov_update_eswitch:             ## @qed_mcp_ov_update_eswitch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r14
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.qed_mcp_ov_update_eswitch(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	_DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	movq	%r14, %rdi
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DP_ERR
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_NONE,4,2 ## @DRV_MB_PARAM_ESWITCH_MODE_NONE
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_VEB,4,2 ## @DRV_MB_PARAM_ESWITCH_MODE_VEB
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_VEPA,4,2 ## @DRV_MB_PARAM_ESWITCH_MODE_VEPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid eswitch mode %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE,4,2 ## @DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send eswitch mode, rc = %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_mcp_ov_update_eswitch
l_switch.table.qed_mcp_ov_update_eswitch:
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_VEPA
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_VEB
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_NONE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_eswitch      ; -- Begin function qed_mcp_ov_update_eswitch
	.p2align	2
_qed_mcp_ov_update_eswitch:             ; @qed_mcp_ov_update_eswitch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.qed_mcp_ov_update_eswitch@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qed_mcp_ov_update_eswitch@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w3, [x8]
Lloh2:
	adrp	x8, _DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	bl	_qed_mcp_cmd
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DP_ERR
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_NONE,4,2 ; @DRV_MB_PARAM_ESWITCH_MODE_NONE
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_VEB,4,2 ; @DRV_MB_PARAM_ESWITCH_MODE_VEB
	.comm	_DRV_MB_PARAM_ESWITCH_MODE_VEPA,4,2 ; @DRV_MB_PARAM_ESWITCH_MODE_VEPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid eswitch mode %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE,4,2 ; @DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send eswitch mode, rc = %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_mcp_ov_update_eswitch
l_switch.table.qed_mcp_ov_update_eswitch:
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_VEPA
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_VEB
	.quad	_DRV_MB_PARAM_ESWITCH_MODE_NONE

.subsections_via_symbols
