	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_validate_flash
_ql_validate_flash:                     ## @ql_validate_flash
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	addq	$4, %rdi
	movq	%rdx, %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_2
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rbx,4), %edi
	callq	_le16_to_cpu
	addl	%eax, %r12d
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_5
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.7:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_2
LBB0_9:
	xorl	%r12d, %r12d
LBB0_2:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid flash signature.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid flash checksum, csum = 0x%.04x.\n"

	.no_dead_strip	_ql_validate_flash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_validate_flash
_ql_validate_flash:                     ; @ql_validate_flash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	add	x0, x0, #4
	mov	x1, x2
	mov	w2, #4
	bl	_strncmp
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_netif_err
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w19, #0
	mov	w21, w21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x22, lsl #2
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	add	w19, w0, w19
	add	x22, x22, #1
	cmp	w21, w22
	b.ne	LBB0_6
; %bb.7:
	cbz	w19, LBB0_3
; %bb.8:
Lloh5:
	adrp	x8, _ifup@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
	str	x19, [sp]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
	mov	w19, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid flash signature.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid flash checksum, csum = 0x%.04x.\n"

	.no_dead_strip	_ql_validate_flash
.subsections_via_symbols
