	.file	"extr_hal_com.c_GetHexValueFromString.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GetHexValueFromString(): Invalid input arguments! szStr: %p, pu4bVal: %p, pu4bMove: %p\n"
	.text
	.p2align 4
	.globl	GetHexValueFromString
	.type	GetHexValueFromString, @function
GetHexValueFromString:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	test	rsi, rsi
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	sete	dl
	test	r12, r12
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sete	al
	or	dl, al
	jne	.L12
	test	rdi, rdi
	je	.L12
	mov	DWORD PTR [r12], 0
	mov	DWORD PTR [rsi], 0
	movsx	edi, BYTE PTR [rdi]
	test	dil, dil
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	rbp, 1
	add	DWORD PTR [r12], 1
	movsx	edi, BYTE PTR 0[rbp]
	test	dil, dil
	je	.L6
.L5:
	cmp	dil, 32
	je	.L7
	cmp	dil, 9
	je	.L7
	cmp	dil, 48
	jne	.L20
	movzx	eax, BYTE PTR 1[rbp]
	and	eax, -33
	cmp	al, 88
	jne	.L20
	add	DWORD PTR [r12], 2
	add	rbp, 2
	movsx	edi, BYTE PTR 0[rbp]
.L6:
	call	IsHexDigit@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	sal	DWORD PTR 0[r13], 4
	movsx	edi, BYTE PTR 0[rbp]
	add	rbp, 1
	call	MapCharToHexDigit@PLT
	add	DWORD PTR 0[r13], eax
	add	DWORD PTR [r12], 1
	movsx	edi, BYTE PTR 0[rbp]
	call	IsHexDigit@PLT
	test	rax, rax
	jne	.L10
	mov	eax, 1
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movsx	edi, BYTE PTR 0[rbp]
	call	IsHexDigit@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L10
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rcx, r12
	mov	rdx, r13
	lea	rdi, .LC0[rip]
	mov	rsi, rbp
	call	DBG_871X@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetHexValueFromString, .-GetHexValueFromString
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hal_com.c_GetHexValueFromString.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GetHexValueFromString(): Invalid input arguments! s"
	.ascii	"zStr: %p, pu4bVal: %p, pu4bMove: %p\012\000"
	.text
	.align	2
	.global	GetHexValueFromString
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetHexValueFromString, %function
GetHexValueFromString:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r2
	cmp	r1, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	r0, #0
	moveq	ip, #1
	cmp	ip, #0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r5, r2
	mov	r4, r0
	bne	.L21
	str	ip, [r2]
	str	ip, [r1]
	ldrb	r0, [r0]	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L4
	b	.L5
.L6:
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L5
.L4:
	cmp	r0, #9
	cmpne	r0, #32
	beq	.L6
	cmp	r0, #48
	bne	.L19
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	and	r3, r3, #223
	cmp	r3, #88
	bne	.L19
	ldr	r3, [r5]
	add	r4, r4, #2
	add	r3, r3, #2
	str	r3, [r5]
	ldrb	r0, [r4]	@ zero_extendqisi2
.L5:
	bl	IsHexDigit
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
.L9:
	ldr	r3, [r6]
	lsl	r3, r3, #4
	str	r3, [r6]
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	MapCharToHexDigit
	ldr	r3, [r6]
	add	r3, r3, r0
	str	r3, [r6]
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	bl	IsHexDigit
	cmp	r0, #0
	bne	.L9
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L19:
	ldrb	r0, [r4]	@ zero_extendqisi2
	b	.L5
.L21:
	mov	r3, r2
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L22
	bl	DBG_871X
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.size	GetHexValueFromString, .-GetHexValueFromString
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
