	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quectel_ec20_detected
_quectel_ec20_detected:                 ## @quectel_ec20_detected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_interface_to_usbdev
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	12(%rax), %edi
	callq	_le16_to_cpu
	cmpl	$1478, %eax                     ## imm = 0x5C6
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$37397, %eax                    ## imm = 0x9215
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rcx
	movl	$1, %eax
	cmpl	$5, (%rcx)
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_quectel_ec20_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quectel_ec20_detected
_quectel_ec20_detected:                 ; @quectel_ec20_detected
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_interface_to_usbdev
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_le16_to_cpu
	cmp	w0, #1478
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_le16_to_cpu
	mov	w8, #37397
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #5
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_quectel_ec20_detected
.subsections_via_symbols
