	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_unload_req             ## -- Begin function qed_mcp_unload_req
	.p2align	4, 0x90
_qed_mcp_unload_req:                    ## @qed_mcp_unload_req
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.qed_mcp_unload_req(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DP_NOTICE
	movq	_DRV_MB_PARAM_UNLOAD_WOL_MCP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_DRV_MSG_CODE_UNLOAD_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%ebx, -44(%rbp)
	movq	_QED_MB_FLAG_CAN_SLEEP@GOTPCREL(%rip), %rax
	movq	_QED_MB_FLAG_AVOID_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_qed_mcp_cmd_and_union
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_UNLOAD_WOL_DISABLED,4,2 ## @DRV_MB_PARAM_UNLOAD_WOL_DISABLED
	.comm	_DRV_MB_PARAM_UNLOAD_WOL_ENABLED,4,2 ## @DRV_MB_PARAM_UNLOAD_WOL_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown WoL configuration %02x\n"

	.comm	_DRV_MB_PARAM_UNLOAD_WOL_MCP,4,2 ## @DRV_MB_PARAM_UNLOAD_WOL_MCP
	.comm	_DRV_MSG_CODE_UNLOAD_REQ,4,2    ## @DRV_MSG_CODE_UNLOAD_REQ
	.comm	_QED_MB_FLAG_CAN_SLEEP,4,2      ## @QED_MB_FLAG_CAN_SLEEP
	.comm	_QED_MB_FLAG_AVOID_BLOCK,4,2    ## @QED_MB_FLAG_AVOID_BLOCK
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_mcp_unload_req
l_switch.table.qed_mcp_unload_req:
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_ENABLED
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_DISABLED
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_MCP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_unload_req             ; -- Begin function qed_mcp_unload_req
	.p2align	2
_qed_mcp_unload_req:                    ; @qed_mcp_unload_req
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w2, [x8]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.qed_mcp_unload_req@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qed_mcp_unload_req@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_NOTICE
Lloh4:
	adrp	x8, _DRV_MB_PARAM_UNLOAD_WOL_MCP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRV_MB_PARAM_UNLOAD_WOL_MCP@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x8, _DRV_MSG_CODE_UNLOAD_REQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_MSG_CODE_UNLOAD_REQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _QED_MB_FLAG_CAN_SLEEP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MB_FLAG_CAN_SLEEP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _QED_MB_FLAG_AVOID_BLOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QED_MB_FLAG_AVOID_BLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w21, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_cmd_and_union
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_UNLOAD_WOL_DISABLED,4,2 ; @DRV_MB_PARAM_UNLOAD_WOL_DISABLED
	.comm	_DRV_MB_PARAM_UNLOAD_WOL_ENABLED,4,2 ; @DRV_MB_PARAM_UNLOAD_WOL_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown WoL configuration %02x\n"

	.comm	_DRV_MB_PARAM_UNLOAD_WOL_MCP,4,2 ; @DRV_MB_PARAM_UNLOAD_WOL_MCP
	.comm	_DRV_MSG_CODE_UNLOAD_REQ,4,2    ; @DRV_MSG_CODE_UNLOAD_REQ
	.comm	_QED_MB_FLAG_CAN_SLEEP,4,2      ; @QED_MB_FLAG_CAN_SLEEP
	.comm	_QED_MB_FLAG_AVOID_BLOCK,4,2    ; @QED_MB_FLAG_AVOID_BLOCK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_mcp_unload_req
l_switch.table.qed_mcp_unload_req:
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_ENABLED
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_DISABLED
	.quad	_DRV_MB_PARAM_UNLOAD_WOL_MCP

.subsections_via_symbols
