	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_hex_line
_parse_hex_line:                        ## @parse_hex_line
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$58, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	$2, %ebx
	cmpb	$10, 1(%rdi)
	je	LBB0_17
## %bb.3:
	incq	%r14
	movl	$2, %ebx
	xorl	%r12d, %r12d
	leaq	-41(%rbp), %r15
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-41(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, -4(%rcx,%r12)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	addl	$2, %ebx
	cmpb	$10, 2(%r14)
	leaq	2(%r14), %r14
	je	LBB0_17
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_atohx
	cmpl	$5, %r12d
	ja	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	-4(%r12), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, (%rcx)
	movzbl	-41(%rbp), %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, (%rdx,%rax)
	jmp	LBB0_16
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-41(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-41(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, 2(%rcx)
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-41(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, 3(%rcx)
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$4, -41(%rbp)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$1, (%rax)
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, (%rdx,%rax)
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid firmware file\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_parse_hex_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_hex_line
_parse_hex_line:                        ; @parse_hex_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldrb	w8, [x0]
	cmp	w8, #58
	b.ne	LBB0_3
; %bb.1:
	mov	x23, x0
	ldrb	w8, [x0, #1]
	cmp	w8, #10
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #2
	b	LBB0_19
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_4:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, #0
	mov	x25, #0
	sub	x26, x2, #4
	mov	w27, #1
Lloh5:
	adrp	x28, lJTI0_0@PAGE
Lloh6:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	strb	w8, [x26, x25]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	add	x8, x23, x24
	ldrb	w8, [x8, #3]
	add	x24, x24, #2
	cmp	w8, #10
	b.eq	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x23, x24
	add	x1, x8, #1
	add	x0, sp, #15
	bl	_atohx
	cmp	w25, #5
	b.hi	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	x8, x25, #0xffffffff
	adr	x9, LBB0_9
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w10, [x19]
	ldrb	w8, [sp, #15]
	sub	w9, w25, #4
	cbz	w10, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x22, x9]
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	str	w8, [x20]
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	strb	w8, [x22, #2]
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	strb	w8, [x22, #3]
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #4
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	strb	w27, [x19]
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x21, x9]
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x19]
	b	LBB0_6
LBB0_18:
	add	w0, w24, #2
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid firmware file\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_parse_hex_line
.subsections_via_symbols
