	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_poll_wol_status
_bcmgenet_poll_wol_status:              ## @bcmgenet_poll_wol_status
	.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, %r15
	movq	(%rdi), %r14
	movq	_RBUF_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_bcmgenet_rbuf_readl
	movq	_RBUF_STATUS_WOL@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.1:
	movl	$1, %ebx
	movl	$1, %edi
	callq	_mdelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rbuf_readl
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.2:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rbuf_readl
	movl	$2, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.3:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rbuf_readl
	movl	$3, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.4:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rbuf_readl
	movl	$4, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.5:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rbuf_readl
	movl	$5, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_crit
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBUF_STATUS,4,2                ## @RBUF_STATUS
	.comm	_RBUF_STATUS_WOL,4,2            ## @RBUF_STATUS_WOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"polling wol mode timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_bcmgenet_poll_wol_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_poll_wol_status
_bcmgenet_poll_wol_status:              ; @bcmgenet_poll_wol_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _RBUF_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RBUF_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_bcmgenet_rbuf_readl
Lloh2:
	adrp	x23, _RBUF_STATUS_WOL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RBUF_STATUS_WOL@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_12
LBB0_2:
	mov	w21, #1
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_12
; %bb.3:
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	w21, #2
	b	LBB0_12
LBB0_5:
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	mov	w21, #3
	b	LBB0_12
LBB0_7:
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	w21, #4
	b	LBB0_12
LBB0_9:
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w21, #5
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_crit
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RBUF_STATUS,4,2                ; @RBUF_STATUS
	.comm	_RBUF_STATUS_WOL,4,2            ; @RBUF_STATUS_WOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"polling wol mode timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_bcmgenet_poll_wol_status
.subsections_via_symbols
