	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_flashverify                ## -- Begin function usb_flashverify
	.p2align	4, 0x90
_usb_flashverify:                       ## @usb_flashverify
	.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	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	___usbgecko_exi_wait
	movl	%ebx, %edi
	callq	___flashsoftwareid_entry
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	___flashreadcommand
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	___flashreadcommand
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpl	$191, -32(%rbp)
	jne	LBB0_6
## %bb.4:
	cmpl	$215, -28(%rbp)
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	___flashsoftwareid_exit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_6:
	movl	%ebx, %edi
	callq	_EXI_Unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_flashverify                ; -- Begin function usb_flashverify
	.p2align	2
_usb_flashverify:                       ; @usb_flashverify
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	___usbgecko_exi_wait
	mov	x0, x19
	bl	___flashsoftwareid_entry
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, sp
	mov	x2, sp
	mov	x0, x19
	mov	w1, #0
	bl	___flashreadcommand
	cbz	x0, LBB0_6
; %bb.2:
	add	x2, x20, #4
	mov	x0, x19
	mov	w1, #1
	bl	___flashreadcommand
	mov	w20, #0
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [sp]
	cmp	w8, #191
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [sp, #4]
	cmp	w8, #215
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	___flashsoftwareid_exit
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_EXI_Unlock
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
