	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_fw_img_is_valid
_tg3_fw_img_is_valid:                   ## @tg3_fw_img_is_valid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-20(%rbp), %rdx
	callq	_tg3_nvram_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	movl	$-67108864, %ecx                ## imm = 0xFC000000
	andl	-20(%rbp), %ecx
	cmpl	$201326592, %ecx                ## imm = 0xC000000
	jne	LBB0_3
## %bb.2:
	addl	$4, %ebx
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_tg3_nvram_read
	testq	%rax, %rax
	sete	%al
	cmpl	$0, -20(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tg3_fw_img_is_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_fw_img_is_valid
_tg3_fw_img_is_valid:                   ; @tg3_fw_img_is_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #12
	bl	_tg3_nvram_read
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	lsr	w8, w8, #26
	cmp	w8, #3
	b.ne	LBB0_3
; %bb.2:
	add	w1, w20, #4
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_nvram_read
	cmp	x0, #0
	ldr	w8, [sp, #12]
	ccmp	w8, #0, #0, eq
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tg3_fw_img_is_valid
.subsections_via_symbols
