	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iqs5xx_fw_file_parse
_iqs5xx_fw_file_parse:                  ## @iqs5xx_fw_file_parse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsp, -216(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IQS5XX_REC_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_IQS5XX_REC_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_1
## %bb.64:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_62
LBB0_1:
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rax
	addq	$16, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpq	$2, %r12
	movl	$1, %r8d
	movq	%r12, %rdx
	cmovbq	%r8, %rdx
	movq	-88(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	andq	$-8, %rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	addq	$-8, %rdx
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %esi
	andl	$3, %esi
	andq	$-4, %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	shlq	$5, %rsi
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addq	$16, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	movq	%r12, %r15
	movq	%rdi, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_58:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r8
	movq	%r15, %rdx
	cmpl	$128, %edi
	movq	-200(%rbp), %r15                ## 8-byte Reload
	je	LBB0_59
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_41 Depth 2
                                        ##     Child Loop BB0_55 Depth 2
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	leaq	24(%rdx), %rbx
	cmpq	%rcx, %rbx
	ja	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	cmpb	$58, (%rax,%rdx)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -232(%rbp)                ## 8-byte Spill
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movq	16(%rax,%rdx), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_hex2bin
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %r13
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_get_unaligned_be16
	leaq	(%rbx,%r13,2), %r15
	movq	-88(%rbp), %rcx
	cmpq	(%rcx), %r15
	ja	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edx
	movl	48(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-232(%rbp), %r12                ## 8-byte Reload
	movq	-224(%rbp), %r14                ## 8-byte Reload
	movq	8(%r14,%r12), %rsi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hex2bin
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %r13
	addq	8(%r14,%r12), %r13
	leaq	-100(%rbp), %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_hex2bin
	testl	%eax, %eax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	jne	LBB0_65
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -208(%rbp)                  ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	cmpq	$8, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	jae	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$24, -160(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	paddd	(%rdx,%rax,4), %xmm0
	paddd	16(%rdx,%rax,4), %xmm1
	paddd	32(%rdx,%rax,4), %xmm0
	paddd	48(%rdx,%rax,4), %xmm1
	paddd	64(%rdx,%rax,4), %xmm0
	paddd	80(%rdx,%rax,4), %xmm1
	paddd	96(%rdx,%rax,4), %xmm0
	paddd	112(%rdx,%rax,4), %xmm1
	addq	$32, %rax
	addq	$-4, %rcx
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	paddd	-16(%rax,%rcx), %xmm0
	paddd	(%rax,%rcx), %xmm1
	addq	$32, %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, %rax
	cmpq	%rdi, %rsi
	je	LBB0_29
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rdx,%rax,4), %ecx
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_20
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r9d, %r9d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	jle	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %r9d
	jae	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %eax
	andl	$-8, %eax
	movd	%ecx, %xmm0
	leaq	-8(%rax), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$24, %rdx
	jae	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	jmp	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$4611686018427387900, %rdx      ## imm = 0x3FFFFFFFFFFFFFFC
	andq	%rdx, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	paddd	(%rbx,%rdx,4), %xmm0
	paddd	16(%rbx,%rdx,4), %xmm1
	paddd	32(%rbx,%rdx,4), %xmm0
	paddd	48(%rbx,%rdx,4), %xmm1
	paddd	64(%rbx,%rdx,4), %xmm0
	paddd	80(%rbx,%rdx,4), %xmm1
	paddd	96(%rbx,%rdx,4), %xmm0
	paddd	112(%rbx,%rdx,4), %xmm1
	addq	$32, %rdx
	addq	$-4, %rsi
	jne	LBB0_36
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	paddd	-16(%rdx,%rsi), %xmm0
	paddd	(%rdx,%rsi), %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r9, %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_42
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rbx,%rax,4), %ecx
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_41
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	-100(%rbp), %ecx
	je	LBB0_46
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_IQS5XX_CSTM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_44
LBB0_46:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %edi
	je	LBB0_52
## %bb.47:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.8(%rip), %rsi
	cmpl	$129, %edi
	jne	LBB0_51
## %bb.48:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_IQS5XX_CHKSM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.7(%rip), %rsi
	cmpq	%rax, %rdx
	jl	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rsi
	movq	_IQS5XX_PMAP_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdi
	shlq	$2, %rax
	subq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r9d, %edx
	movq	%r8, %rbx
	callq	_memcpy
	movq	%rbx, %r8
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r8, %rdx
	xorl	%eax, %eax
	movq	%r8, %rbx
	callq	_dev_err
	movq	%rbx, %r8
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_60
LBB0_52:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r15
	jae	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$58, (%rdx,%r15)
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=2
	incq	%r15
	cmpq	%rcx, %r15
	jb	LBB0_55
## %bb.57:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %r15
	jmp	LBB0_58
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_65:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r8, %rdx
LBB0_10:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_61
LBB0_44:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movq	%r8, %rdx
LBB0_45:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_61:
	movq	-88(%rbp), %rdi
	callq	_release_firmware
LBB0_62:
	movq	-216(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_66
## %bb.63:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_59:
	xorl	%r14d, %r14d
	jmp	LBB0_61
LBB0_60:
	negl	%r14d
	jmp	LBB0_61
LBB0_66:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IQS5XX_REC_HDR_LEN,4,2         ## @IQS5XX_REC_HDR_LEN
	.comm	_IQS5XX_REC_LEN_MAX,4,2         ## @IQS5XX_REC_LEN_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to request firmware %s: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Insufficient firmware size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Invalid start at record %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid header at record %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid data at record %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid checksum at record %u\n"

	.comm	_IQS5XX_CSTM,8,3                ## @IQS5XX_CSTM
L_.str.6:                               ## @.str.6
	.asciz	"Incorrect checksum at record %u\n"

	.comm	_IQS5XX_CHKSM,8,3               ## @IQS5XX_CHKSM
	.comm	_IQS5XX_PMAP_END,8,3            ## @IQS5XX_PMAP_END
L_.str.7:                               ## @.str.7
	.asciz	"Invalid address at record %u\n"

L_.str.8:                               ## @.str.8
	.asciz	"Invalid type at record %u\n"

	.no_dead_strip	_iqs5xx_fw_file_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iqs5xx_fw_file_parse
_iqs5xx_fw_file_parse:                  ; @iqs5xx_fw_file_parse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _IQS5XX_REC_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IQS5XX_REC_HDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	lsl	x21, x25, #2
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x7fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x8, _IQS5XX_REC_LEN_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IQS5XX_REC_LEN_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	sub	x0, x29, #96
	mov	x2, x20
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x27, x0
	stp	x24, x27, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	add	sp, sp, #16
	b	LBB0_48
LBB0_2:
	stp	x20, x25, [x29, #-144]          ; 16-byte Folded Spill
	stp	x23, x19, [x29, #-184]          ; 16-byte Folded Spill
	mov	x24, #0
	add	x11, x22, #16
	cmp	x21, #1
	csinc	x10, x21, xzr, hi
	ldur	x8, [x29, #-96]
	ldr	x9, [x8]
	stp	x11, x10, [x29, #-128]          ; 16-byte Folded Spill
	and	x11, x10, #0x3fffffff0
	add	x10, x22, #32
	stp	x10, x11, [x29, #-160]          ; 16-byte Folded Spill
	stur	x26, [x29, #-112]               ; 8-byte Folded Spill
	add	x10, x26, #32
	stur	x10, [x29, #-168]               ; 8-byte Folded Spill
	mov	w28, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	cmp	w19, #128
	b.eq	LBB0_50
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_34 Depth 2
	add	x19, x24, #24
	cmp	x19, x9
	b.hi	LBB0_37
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	add	x20, x8, x24
	ldrb	w8, [x20]
	cmp	w8, #58
	b.ne	LBB0_38
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #16]
	mov	x0, x22
	mov	x2, x21
	bl	_hex2bin
	cbnz	w0, LBB0_39
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x26, [x22]
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	bl	_get_unaligned_be16
	lsl	x23, x26, #1
	ldur	x8, [x29, #-96]
	ldr	x8, [x8]
	add	x24, x19, x23
	cmp	x24, x8
	b.hi	LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	and	x26, x26, #0xffffffff
	ldr	w19, [x22, #48]
	ldr	x1, [x20, #8]
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	mov	x2, x26
	bl	_hex2bin
	cbnz	w0, LBB0_40
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x23
	sub	x0, x29, #100
	mov	w2, #4
	bl	_hex2bin
	cbnz	w0, LBB0_41
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	cbz	w8, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x8, #16
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	mov	w8, #0
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	movi.2d	v0, #0000000000000000
	ldp	x9, x8, [x29, #-160]            ; 16-byte Folded Reload
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x8, x8, #16
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w8, s0
	ldur	x11, [x29, #-152]               ; 8-byte Folded Reload
	mov	x10, x11
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x9, x11
	b.eq	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x22, x10, lsl #2
	ldur	x11, [x29, #-120]               ; 8-byte Folded Reload
	sub	x10, x11, x10
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9], #4
	add	w8, w11, w8
	subs	x10, x10, #1
	b.ne	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	b.lt	LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #16
	b.hs	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w8
	and	x9, x26, #0xfffffff0
	movi.2d	v1, #0000000000000000
	mov	x8, x9
	ldur	x10, [x29, #-168]               ; 8-byte Folded Reload
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_22:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x8, x8, #16
	b.ne	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w8, s0
	cmp	x9, x26
	b.eq	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	add	x10, x10, x9, lsl #2
	sub	x9, x26, x9
LBB0_25:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10], #4
	add	w8, w11, w8
	subs	x9, x9, #1
	b.ne	LBB0_25
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w9, [x29, #-100]
Lloh15:
	adrp	x10, _IQS5XX_CSTM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IQS5XX_CSTM@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmn	w9, w8
	ccmp	x25, x10, #0, ne
	b.lt	LBB0_43
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #128
	b.eq	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	cmp	w19, #129
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _IQS5XX_CHKSM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IQS5XX_CHKSM@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _IQS5XX_PMAP_END@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IQS5XX_PMAP_END@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x25, x8
	ccmp	x25, x9, #0, ge
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	b.le	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x28, [sp, #-16]!
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_dev_err
	add	sp, sp, #16
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbz	w8, LBB0_32
	b	LBB0_46
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	add	x9, x9, x25, lsl #2
	sub	x0, x9, x8, lsl #2
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	mov	x2, x26
	bl	_memcpy
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-96]
	ldr	x9, [x8]
	cmp	x24, x9
	b.hs	LBB0_3
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8, #8]
LBB0_34:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10, x24]
	cmp	w11, #58
	b.eq	LBB0_3
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x24, x24, #1
	cmp	x24, x9
	b.lo	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x9
	b	LBB0_3
LBB0_37:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_dev_err
	b	LBB0_45
LBB0_38:
	str	x28, [sp, #-16]!
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_44
LBB0_39:
	mov	x27, x0
	str	x28, [sp, #-16]!
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_42
LBB0_40:
	mov	x27, x0
	str	x28, [sp, #-16]!
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_42
LBB0_41:
	mov	x27, x0
	str	x28, [sp, #-16]!
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_42:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_dev_err
	add	sp, sp, #16
	b	LBB0_47
LBB0_43:
	str	x28, [sp, #-16]!
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_44:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_dev_err
	add	sp, sp, #16
LBB0_45:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
LBB0_46:
	neg	w27, w8
LBB0_47:
	ldur	x0, [x29, #-96]
	bl	_release_firmware
	ldur	x19, [x29, #-176]               ; 8-byte Folded Reload
LBB0_48:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.49:
	mov	x0, x27
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_50:
	mov	w27, #0
	b	LBB0_47
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_IQS5XX_REC_HDR_LEN,4,2         ; @IQS5XX_REC_HDR_LEN
	.comm	_IQS5XX_REC_LEN_MAX,4,2         ; @IQS5XX_REC_LEN_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to request firmware %s: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Insufficient firmware size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Invalid start at record %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid header at record %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid data at record %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid checksum at record %u\n"

	.comm	_IQS5XX_CSTM,8,3                ; @IQS5XX_CSTM
l_.str.6:                               ; @.str.6
	.asciz	"Incorrect checksum at record %u\n"

	.comm	_IQS5XX_CHKSM,8,3               ; @IQS5XX_CHKSM
	.comm	_IQS5XX_PMAP_END,8,3            ; @IQS5XX_PMAP_END
l_.str.7:                               ; @.str.7
	.asciz	"Invalid address at record %u\n"

l_.str.8:                               ; @.str.8
	.asciz	"Invalid type at record %u\n"

	.no_dead_strip	_iqs5xx_fw_file_parse
.subsections_via_symbols
