	.file	"extr_utils.c_xdigit2bin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xdigit2bin, @function
xdigit2bin:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	r8d, dil
	cmp	r8d, esi
	je	.L10
	test	dil, dil
	je	.L10
	cmp	dil, 58
	je	.L15
	cmp	dil, 46
	je	.L16
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, r8d
	mov	ebx, esi
	call	hex_to_bin@PLT
	mov	edx, eax
	test	eax, eax
	jns	.L17
	mov	eax, DWORD PTR IN6PTON_DELIM[rip]
	cmp	ebx, -1
	cmovne	eax, DWORD PTR IN6PTON_UNKNOWN[rip]
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	mov	eax, DWORD PTR IN6PTON_DELIM[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR IN6PTON_XDIGIT[rip]
	or	eax, edx
	cmp	edx, 9
	jg	.L1
	or	eax, DWORD PTR IN6PTON_DIGIT[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore 3
	mov	eax, DWORD PTR IN6PTON_COLON_MASK[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR IN6PTON_DOT[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	xdigit2bin, .-xdigit2bin
	.comm	IN6PTON_XDIGIT,4,4
	.comm	IN6PTON_UNKNOWN,4,4
	.comm	IN6PTON_DOT,4,4
	.comm	IN6PTON_DIGIT,4,4
	.comm	IN6PTON_DELIM,4,4
	.comm	IN6PTON_COLON_MASK,4,4
	.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_utils.c_xdigit2bin.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xdigit2bin, %function
xdigit2bin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	cmpne	r0, r1
	beq	.L13
	cmp	r0, #58
	beq	.L14
	cmp	r0, #46
	beq	.L15
	push	{r4, lr}
	mov	r4, r1
	bl	hex_to_bin
	cmp	r0, #0
	bge	.L16
	cmn	r4, #1
	ldreq	r3, .L17
	ldrne	r3, .L17+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	ldr	r3, .L17
	ldr	r0, [r3]
	bx	lr
.L16:
	ldr	r3, .L17+8
	cmp	r0, #9
	ldr	r3, [r3]
	orr	r0, r0, r3
	ldrle	r3, .L17+12
	ldrle	r3, [r3]
	orrle	r0, r0, r3
	pop	{r4, pc}
.L14:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	bx	lr
.L15:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	bx	lr
.L18:
	.align	2
.L17:
	.word	IN6PTON_DELIM
	.word	IN6PTON_UNKNOWN
	.word	IN6PTON_XDIGIT
	.word	IN6PTON_DIGIT
	.word	IN6PTON_COLON_MASK
	.word	IN6PTON_DOT
	.size	xdigit2bin, .-xdigit2bin
	.comm	IN6PTON_XDIGIT,4,4
	.comm	IN6PTON_UNKNOWN,4,4
	.comm	IN6PTON_DOT,4,4
	.comm	IN6PTON_DIGIT,4,4
	.comm	IN6PTON_DELIM,4,4
	.comm	IN6PTON_COLON_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
