	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_wol_power_up_cfg      ## -- Begin function bcmgenet_wol_power_up_cfg
	.p2align	4, 0x90
_bcmgenet_wol_power_up_cfg:             ## @bcmgenet_wol_power_up_cfg
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GENET_POWER_WOL_MAGIC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_UMAC_MPD_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movq	_MPD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_umac_writel
	movq	_UMAC_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movq	_CMD_CRC_FWD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
	movq	$0, (%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%esi, %r8d
	movq	_wol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GENET_POWER_WOL_MAGIC,4,2      ## @GENET_POWER_WOL_MAGIC
	.comm	_wol,4,2                        ## @wol
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid mode: %d\n"

	.comm	_UMAC_MPD_CTRL,4,2              ## @UMAC_MPD_CTRL
	.comm	_MPD_EN,4,2                     ## @MPD_EN
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_CMD_CRC_FWD,4,2                ## @CMD_CRC_FWD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_wol_power_up_cfg      ; -- Begin function bcmgenet_wol_power_up_cfg
	.p2align	2
_bcmgenet_wol_power_up_cfg:             ; @bcmgenet_wol_power_up_cfg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _GENET_POWER_WOL_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENET_POWER_WOL_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x20, _UMAC_MPD_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _UMAC_MPD_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
Lloh5:
	adrp	x8, _MPD_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPD_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
Lloh8:
	adrp	x20, _UMAC_CMD@GOTPAGE
Lloh9:
	ldr	x20, [x20, _UMAC_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
Lloh10:
	adrp	x8, _CMD_CRC_FWD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_CRC_FWD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
	str	xzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x4, x1
Lloh13:
	adrp	x8, _wol@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wol@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	ldr	w2, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GENET_POWER_WOL_MAGIC,4,2      ; @GENET_POWER_WOL_MAGIC
	.comm	_wol,4,2                        ; @wol
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid mode: %d\n"

	.comm	_UMAC_MPD_CTRL,4,2              ; @UMAC_MPD_CTRL
	.comm	_MPD_EN,4,2                     ; @MPD_EN
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_CMD_CRC_FWD,4,2                ; @CMD_CRC_FWD
.subsections_via_symbols
