	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_wol_power_down_cfg    ## -- Begin function bcmgenet_wol_power_down_cfg
	.p2align	4, 0x90
_bcmgenet_wol_power_down_cfg:           ## @bcmgenet_wol_power_down_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_GENET_POWER_WOL_MAGIC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_UMAC_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movq	_CMD_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
	movl	$10, %edi
	callq	_mdelay
	movq	_UMAC_MPD_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movq	_MPD_EN@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_umac_writel
	movq	%rbx, %rdi
	callq	_bcmgenet_poll_wol_status
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_wol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	callq	_netif_dbg
	movq	_UMAC_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movl	$1, (%rbx)
	movq	_CMD_CRC_FWD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CMD_RX_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_umac_writel
	movq	8(%rbx), %rax
	movq	_GENET_HAS_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_EXT_EXT_PWR_MGMT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_ext_readl
	movq	_EXT_ENERGY_DET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_ext_writel
	jmp	LBB0_6
LBB0_1:
	movl	%esi, %r8d
	movq	_wol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"unsupported mode: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_CMD_RX_EN,4,2                  ## @CMD_RX_EN
	.comm	_UMAC_MPD_CTRL,4,2              ## @UMAC_MPD_CTRL
	.comm	_MPD_EN,4,2                     ## @MPD_EN
L_.str.1:                               ## @.str.1
	.asciz	"MPD WOL-ready status set after %d msec\n"

	.comm	_CMD_CRC_FWD,4,2                ## @CMD_CRC_FWD
	.comm	_GENET_HAS_EXT,4,2              ## @GENET_HAS_EXT
	.comm	_EXT_EXT_PWR_MGMT,4,2           ## @EXT_EXT_PWR_MGMT
	.comm	_EXT_ENERGY_DET_MASK,4,2        ## @EXT_ENERGY_DET_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_wol_power_down_cfg    ; -- Begin function bcmgenet_wol_power_down_cfg
	.p2align	2
_bcmgenet_wol_power_down_cfg:           ; @bcmgenet_wol_power_down_cfg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #16]
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_5
; %bb.1:
Lloh3:
	adrp	x22, _UMAC_CMD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UMAC_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
Lloh5:
	adrp	x23, _CMD_RX_EN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CMD_RX_EN@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
	mov	w0, #10
	bl	_mdelay
Lloh7:
	adrp	x24, _UMAC_MPD_CTRL@GOTPAGE
Lloh8:
	ldr	x24, [x24, _UMAC_MPD_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
Lloh9:
	adrp	x25, _MPD_EN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MPD_EN@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w1, w8, w0
	ldr	w2, [x24]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
	mov	x0, x19
	bl	_bcmgenet_poll_wol_status
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh11:
	adrp	x8, _wol@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wol@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x4, x21
	bl	_netif_dbg
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
	mov	w8, #1
Lloh16:
	adrp	x9, _CMD_CRC_FWD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CMD_CRC_FWD@GOTPAGEOFF]
	str	w8, [x19]
Lloh18:
	ldr	w8, [x9]
	orr	w8, w8, w0
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _GENET_HAS_EXT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GENET_HAS_EXT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh22:
	adrp	x20, _EXT_EXT_PWR_MGMT@GOTPAGE
Lloh23:
	ldr	x20, [x20, _EXT_EXT_PWR_MGMT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcmgenet_ext_readl
Lloh24:
	adrp	x8, _EXT_ENERGY_DET_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXT_ENERGY_DET_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bcmgenet_ext_writel
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	x4, x1
Lloh27:
	adrp	x8, _wol@GOTPAGE
Lloh28:
	ldr	x8, [x8, _wol@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_bcmgenet_umac_readl
	ldr	w8, [x25]
	bic	w1, w0, w8
	ldr	w2, [x24]
	mov	x0, x19
	bl	_bcmgenet_umac_writel
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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	"unsupported mode: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_CMD_RX_EN,4,2                  ; @CMD_RX_EN
	.comm	_UMAC_MPD_CTRL,4,2              ; @UMAC_MPD_CTRL
	.comm	_MPD_EN,4,2                     ; @MPD_EN
l_.str.1:                               ; @.str.1
	.asciz	"MPD WOL-ready status set after %d msec\n"

	.comm	_CMD_CRC_FWD,4,2                ; @CMD_CRC_FWD
	.comm	_GENET_HAS_EXT,4,2              ; @GENET_HAS_EXT
	.comm	_EXT_EXT_PWR_MGMT,4,2           ; @EXT_EXT_PWR_MGMT
	.comm	_EXT_ENERGY_DET_MASK,4,2        ; @EXT_ENERGY_DET_MASK
.subsections_via_symbols
