	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_update_wol
_qed_update_wol:                        ## @qed_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_QED_LEADING_HWFN
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_IS_VF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.5:
	movq	_QED_OV_WOL_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_QED_OV_WOL_ENABLED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_mcp_ov_update_wol
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_QED_OV_CLIENT_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_mcp_ov_update_current_config
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_ptt_release
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_QED_OV_WOL_ENABLED,4,2         ## @QED_OV_WOL_ENABLED
	.comm	_QED_OV_WOL_DISABLED,4,2        ## @QED_OV_WOL_DISABLED
	.comm	_QED_OV_CLIENT_DRV,4,2          ## @QED_OV_CLIENT_DRV
	.no_dead_strip	_qed_update_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_update_wol
_qed_update_wol:                        ; @qed_update_wol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_QED_LEADING_HWFN
	mov	x19, x0
	mov	x0, x20
	bl	_IS_VF
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _QED_OV_WOL_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_OV_WOL_ENABLED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _QED_OV_WOL_DISABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QED_OV_WOL_DISABLED@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_mcp_ov_update_wol
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _QED_OV_CLIENT_DRV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QED_OV_CLIENT_DRV@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_mcp_ov_update_current_config
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_QED_OV_WOL_ENABLED,4,2         ; @QED_OV_WOL_ENABLED
	.comm	_QED_OV_WOL_DISABLED,4,2        ; @QED_OV_WOL_DISABLED
	.comm	_QED_OV_CLIENT_DRV,4,2          ; @QED_OV_CLIENT_DRV
	.no_dead_strip	_qed_update_wol
.subsections_via_symbols
