	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_check_firmware_format
_mxt_check_firmware_format:             ## @mxt_check_firmware_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	8(%rsi), %r8
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r8,%rsi), %edx
	cmpb	$48, %dl
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$70, %dl
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addb	$-58, %dl
	cmpb	$7, %dl
	jb	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_3
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aborting: firmware file must be in binary format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mxt_check_firmware_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_check_firmware_format
_mxt_check_firmware_format:             ; @mxt_check_firmware_format
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x9, [x1, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w10, [x9]
	cmp	w10, #48
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w10, w10, #0xff
	sub	w11, w10, #58
	cmp	w10, #70
	ccmp	w11, #7, #0, ls
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aborting: firmware file must be in binary format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mxt_check_firmware_format
.subsections_via_symbols
