	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_load_57766_firmware
_tg3_load_57766_firmware:               ## @tg3_load_57766_firmware
	.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
	movq	%rdi, %rbx
	movq	_NO_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_tg3_validate_rxcpu_state
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %r14
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movq	_TG3_57766_FW_BASE_ADDR@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_tg3_rxcpu_pause
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_tg3_load_firmware_cpu
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tg3_rxcpu_resume               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_NVRAM,4,2                   ## @NO_NVRAM
	.comm	_TG3_57766_FW_BASE_ADDR,8,3     ## @TG3_57766_FW_BASE_ADDR
	.no_dead_strip	_tg3_load_57766_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_load_57766_firmware
_tg3_load_57766_firmware:               ; @tg3_load_57766_firmware
	.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
Lloh0:
	adrp	x8, _NO_NVRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_NVRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tg3_validate_rxcpu_state
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.4:
	ldr	x20, [x8]
	ldr	w0, [x20]
	bl	_be32_to_cpu
Lloh3:
	adrp	x21, _TG3_57766_FW_BASE_ADDR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TG3_57766_FW_BASE_ADDR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:
	mov	x0, x19
	bl	_tg3_rxcpu_pause
	cbnz	x0, LBB0_2
; %bb.6:
	ldr	x2, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	x4, x20
	bl	_tg3_load_firmware_cpu
	mov	x0, x19
	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	_tg3_rxcpu_resume
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_NVRAM,4,2                   ; @NO_NVRAM
	.comm	_TG3_57766_FW_BASE_ADDR,8,3     ; @TG3_57766_FW_BASE_ADDR
	.no_dead_strip	_tg3_load_57766_firmware
.subsections_via_symbols
