	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_wol          ## -- Begin function qed_mcp_ov_update_wol
	.p2align	4, 0x90
_qed_mcp_ov_update_wol:                 ## @qed_mcp_ov_update_wol
	.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
	movq	%rdi, %r15
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movq	8(%rdi), %rax
	movq	_QED_WOL_SUPPORT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_DP_VERBOSE
	jmp	LBB0_4
LBB0_2:
	movl	%edx, %r14d
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.5:
	cltq
	leaq	l_switch.table.qed_mcp_ov_update_wol(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	_DRV_MSG_CODE_OV_UPDATE_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %r8
	leaq	-28(%rbp), %r9
	movq	%r15, %rdi
	callq	_qed_mcp_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_DP_ERR
LBB0_7:
	movl	%r14d, %eax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_DP_ERR
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_WOL_SUPPORT_NONE,8,3       ## @QED_WOL_SUPPORT_NONE
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't change WoL configuration when WoL isn't supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRV_MB_PARAM_WOL_DEFAULT,4,2   ## @DRV_MB_PARAM_WOL_DEFAULT
	.comm	_DRV_MB_PARAM_WOL_DISABLED,4,2  ## @DRV_MB_PARAM_WOL_DISABLED
	.comm	_DRV_MB_PARAM_WOL_ENABLED,4,2   ## @DRV_MB_PARAM_WOL_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"Invalid wol state %d\n"

	.comm	_DRV_MSG_CODE_OV_UPDATE_WOL,4,2 ## @DRV_MSG_CODE_OV_UPDATE_WOL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to send wol mode, rc = %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_mcp_ov_update_wol
l_switch.table.qed_mcp_ov_update_wol:
	.quad	_DRV_MB_PARAM_WOL_ENABLED
	.quad	_DRV_MB_PARAM_WOL_DISABLED
	.quad	_DRV_MB_PARAM_WOL_DEFAULT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_wol          ; -- Begin function qed_mcp_ov_update_wol
	.p2align	2
_qed_mcp_ov_update_wol:                 ; @qed_mcp_ov_update_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _QED_WOL_SUPPORT_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_WOL_SUPPORT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.3:
Lloh8:
	adrp	x9, l_switch.table.qed_mcp_ov_update_wol@PAGE
Lloh9:
	add	x9, x9, l_switch.table.qed_mcp_ov_update_wol@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _DRV_MSG_CODE_OV_UPDATE_WOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRV_MSG_CODE_OV_UPDATE_WOL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	bl	_qed_mcp_cmd
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DP_ERR
LBB0_5:
	mov	w8, w20
	ldr	x9, [x19]
	str	x8, [x9]
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DP_ERR
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_WOL_SUPPORT_NONE,8,3       ; @QED_WOL_SUPPORT_NONE
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't change WoL configuration when WoL isn't supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRV_MB_PARAM_WOL_DEFAULT,4,2   ; @DRV_MB_PARAM_WOL_DEFAULT
	.comm	_DRV_MB_PARAM_WOL_DISABLED,4,2  ; @DRV_MB_PARAM_WOL_DISABLED
	.comm	_DRV_MB_PARAM_WOL_ENABLED,4,2   ; @DRV_MB_PARAM_WOL_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"Invalid wol state %d\n"

	.comm	_DRV_MSG_CODE_OV_UPDATE_WOL,4,2 ; @DRV_MSG_CODE_OV_UPDATE_WOL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to send wol mode, rc = %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_mcp_ov_update_wol
l_switch.table.qed_mcp_ov_update_wol:
	.quad	_DRV_MB_PARAM_WOL_ENABLED
	.quad	_DRV_MB_PARAM_WOL_DISABLED
	.quad	_DRV_MB_PARAM_WOL_DEFAULT

.subsections_via_symbols
