	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_mac_set_wol_event
_pch_gbe_mac_set_wol_event:             ## @pch_gbe_mac_set_wol_event
	.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, %r14d
	movq	%rdi, %rbx
	callq	_pch_gbe_hw_to_adapter
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	addq	$20, %rdi
	callq	_ioread32
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_netdev_dbg
	movq	(%rbx), %rsi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	addq	$20, %rsi
	movq	%rsi, %rdi
	callq	_ioread32
	movq	(%rbx), %rsi
	addq	$16, %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movq	_PCH_GBE_WLA_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pch_gbe_wait_clr_bit
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	_PCH_GBE_WLC_WOL_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movl	%r14d, %edi
	callq	_iowrite32
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movl	$2, %edi
	callq	_iowrite32
	movq	_PCH_GBE_INT_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	$8, %rsi
	jmp	LBB0_3
LBB0_2:
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	(%rbx), %rsi
	xorl	%edi, %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wu_evt : 0x%08x  ADDR_MASK reg : 0x%08x\n"

	.comm	_PCH_GBE_WLA_BUSY,4,2           ## @PCH_GBE_WLA_BUSY
	.comm	_PCH_GBE_WLC_WOL_MODE,4,2       ## @PCH_GBE_WLC_WOL_MODE
	.comm	_PCH_GBE_INT_ENABLE_MASK,4,2    ## @PCH_GBE_INT_ENABLE_MASK
	.no_dead_strip	_pch_gbe_mac_set_wol_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_mac_set_wol_event
_pch_gbe_mac_set_wol_event:             ; @pch_gbe_mac_set_wol_event
	.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	x20, x1
	mov	x19, x0
	bl	_pch_gbe_hw_to_adapter
	ldr	w21, [x0]
	ldr	x8, [x19]
	add	x0, x8, #20
	bl	_ioread32
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netdev_dbg
	ldr	x8, [x19]
	cbz	w20, LBB0_2
; %bb.1:
	add	x0, x8, #20
	bl	_ioread32
	ldr	x8, [x19]
	add	x1, x8, #16
	bl	_iowrite32
	ldr	x8, [x19]
	add	x0, x8, #16
Lloh2:
	adrp	x8, _PCH_GBE_WLA_BUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_GBE_WLA_BUSY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_pch_gbe_wait_clr_bit
	ldr	x1, [x19]
	mov	w0, #0
	bl	_iowrite32
Lloh5:
	adrp	x8, _PCH_GBE_WLC_WOL_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCH_GBE_WLC_WOL_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_iowrite32
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	w0, #2
	bl	_iowrite32
Lloh8:
	adrp	x8, _PCH_GBE_INT_ENABLE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCH_GBE_INT_ENABLE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x1, x8, #8
	b	LBB0_3
LBB0_2:
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite32
	ldr	x1, [x19]
	mov	w0, #0
LBB0_3:
	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
	b	_iowrite32
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wu_evt : 0x%08x  ADDR_MASK reg : 0x%08x\n"

	.comm	_PCH_GBE_WLA_BUSY,4,2           ; @PCH_GBE_WLA_BUSY
	.comm	_PCH_GBE_WLC_WOL_MODE,4,2       ; @PCH_GBE_WLC_WOL_MODE
	.comm	_PCH_GBE_INT_ENABLE_MASK,4,2    ; @PCH_GBE_INT_ENABLE_MASK
	.no_dead_strip	_pch_gbe_mac_set_wol_event
.subsections_via_symbols
