	.file	"extr_lex.c_scan_hex_escape.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\\x needs at least 1 hex digit"
.LC1:
	.string	"\\x argument out of range"
	.text
	.p2align 4
	.globl	scan_hex_escape
	.type	scan_hex_escape, @function
scan_hex_escape:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR stream[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edi, edi
	cmp	BYTE PTR [rax], 120
	sete	dil
	call	assert@PLT
	mov	rdx, QWORD PTR stream[rip]
	mov	rcx, QWORD PTR char_to_digit[rip]
	lea	rax, 1[rdx]
	mov	QWORD PTR stream[rip], rax
	movzx	esi, BYTE PTR 1[rdx]
	mov	r12d, DWORD PTR [rcx+rsi*4]
	cmp	sil, 48
	je	.L2
	test	r12d, r12d
	je	.L18
.L2:
	lea	rdx, 1[rax]
	mov	QWORD PTR stream[rip], rdx
	movzx	eax, BYTE PTR 1[rax]
	mov	rsi, rax
	mov	eax, DWORD PTR [rcx+rax*4]
	test	eax, eax
	jne	.L6
	cmp	sil, 48
	jne	.L1
.L6:
	sal	r12d, 4
	add	r12d, eax
	cmp	r12d, 255
	jg	.L19
.L5:
	add	rdx, 1
	mov	QWORD PTR stream[rip], rdx
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	error_here@PLT
	mov	rax, QWORD PTR stream[rip]
	mov	rcx, QWORD PTR char_to_digit[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC1[rip]
	mov	r12d, 255
	call	error_here@PLT
	mov	rdx, QWORD PTR stream[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	scan_hex_escape, .-scan_hex_escape
	.comm	stream,8,8
	.comm	char_to_digit,8,8
	.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_lex.c_scan_hex_escape.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\x needs at least 1 hex digit\000"
	.align	2
.LC1:
	.ascii	"\\x argument out of range\000"
	.text
	.align	2
	.global	scan_hex_escape
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_hex_escape, %function
scan_hex_escape:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L15
	ldr	r6, .L15+4
	ldr	r3, [r4]
	ldrb	r0, [r3]	@ zero_extendqisi2
	sub	r0, r0, #120
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4]
	ldr	r1, [r6]
	add	r2, r3, #1
	str	r2, [r4]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	ldr	r5, [r1, r3, lsl #2]
	subs	r3, r3, #48
	movne	r3, #1
	cmp	r5, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L13
.L2:
	add	r3, r2, #1
	str	r3, [r4]
	ldrb	r0, [r2, #1]	@ zero_extendqisi2
	sub	r2, r0, #48
	clz	r2, r2
	ldr	r1, [r1, r0, lsl #2]
	lsr	r2, r2, #5
	cmp	r1, #0
	movne	r2, #1
	cmp	r2, #0
	beq	.L1
	add	r5, r1, r5, lsl #4
	cmp	r5, #255
	bgt	.L14
.L4:
	add	r3, r3, #1
	str	r3, [r4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, .L15+8
	bl	error_here
	mov	r5, #255
	ldr	r3, [r4]
	b	.L4
.L13:
	ldr	r0, .L15+12
	bl	error_here
	ldr	r1, [r6]
	ldr	r2, [r4]
	b	.L2
.L16:
	.align	2
.L15:
	.word	stream
	.word	char_to_digit
	.word	.LC1
	.word	.LC0
	.size	scan_hex_escape, .-scan_hex_escape
	.comm	stream,4,4
	.comm	char_to_digit,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
