	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_validate_rxcpu_state
_tg3_validate_rxcpu_state:              ## @tg3_validate_rxcpu_state
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_RX_CPU_HWBKPT@GOTPCREL(%rip), %r15
	movq	_TG3_SBROM_IN_SERVICE_LOOP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_tr32
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_TG3_57766_FW_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_read_indirect_reg32
	testb	%al, %al
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	movq	_EEXIST@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CPU_HWBKPT,4,2              ## @RX_CPU_HWBKPT
	.comm	_TG3_SBROM_IN_SERVICE_LOOP,8,3  ## @TG3_SBROM_IN_SERVICE_LOOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Boot code not ready for service patches\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TG3_57766_FW_HANDSHAKE,4,2     ## @TG3_57766_FW_HANDSHAKE
L_.str.1:                               ## @.str.1
	.asciz	"Other patches exist. Not downloading EEE patch\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	_tg3_validate_rxcpu_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_validate_rxcpu_state
_tg3_validate_rxcpu_state:              ; @tg3_validate_rxcpu_state
	.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	x19, x0
	mov	w20, #1000
Lloh0:
	adrp	x21, _RX_CPU_HWBKPT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_CPU_HWBKPT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _TG3_SBROM_IN_SERVICE_LOOP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TG3_SBROM_IN_SERVICE_LOOP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_tr32
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _TG3_57766_FW_HANDSHAKE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TG3_57766_FW_HANDSHAKE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_read_indirect_reg32
	tst	w0, #0xff
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
Lloh13:
	adrp	x8, _EEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CPU_HWBKPT,4,2              ; @RX_CPU_HWBKPT
	.comm	_TG3_SBROM_IN_SERVICE_LOOP,8,3  ; @TG3_SBROM_IN_SERVICE_LOOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Boot code not ready for service patches\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TG3_57766_FW_HANDSHAKE,4,2     ; @TG3_57766_FW_HANDSHAKE
l_.str.1:                               ; @.str.1
	.asciz	"Other patches exist. Not downloading EEE patch\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	_tg3_validate_rxcpu_state
.subsections_via_symbols
