	.file	"extr_nsc.c_load_byte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	load_byte, @function
load_byte:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	BYTE PTR [rsi], 0
	cmp	dil, 1
	je	.L25
	xor	eax, eax
	cmp	dil, 2
	je	.L26
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rdx]
	movzx	edx, BYTE PTR [rdi]
	test	dl, dl
	js	.L7
	mov	r9, QWORD PTR inverse[rip]
	mov	edx, DWORD PTR [r9+rdx*4]
	cmp	edx, 255
	je	.L7
	movzx	esi, BYTE PTR [r8]
	test	sil, sil
	jne	.L10
	movzx	esi, BYTE PTR 1[rdi]
	test	sil, sil
	js	.L7
	mov	edi, DWORD PTR [r9+rsi*4]
	cmp	edi, 255
	je	.L7
	sal	edx, 2
	lea	esi, 15[rdi]
	test	edi, edi
	cmovns	esi, edi
	sar	esi, 4
	or	edx, esi
	mov	BYTE PTR 0[rbp], dl
	mov	rdx, QWORD PTR [rbx]
	movzx	esi, BYTE PTR 1[rdx]
	mov	rdx, QWORD PTR inverse[rip]
	mov	edx, DWORD PTR [rdx+rsi*4]
	sal	edx, 4
	mov	BYTE PTR [rcx], dl
	mov	BYTE PTR [r8], 4
	add	QWORD PTR [rbx], 2
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdx]
	movzx	edi, BYTE PTR [rax]
	call	isxdigit@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR [rbx]
	movzx	edi, BYTE PTR [rax]
	call	isdigit@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rbx]
	je	.L27
	movzx	eax, BYTE PTR [rax]
	sal	eax, 4
	mov	BYTE PTR 0[rbp], al
.L6:
	mov	rax, QWORD PTR [rbx]
	lea	rdx, 1[rax]
	mov	QWORD PTR [rbx], rdx
	movzx	edi, BYTE PTR 1[rax]
	call	isxdigit@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR [rbx]
	movzx	edi, BYTE PTR [rax]
	call	isdigit@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rbx]
	je	.L28
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	or	BYTE PTR 0[rbp], al
.L9:
	add	QWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	sil, 2
	je	.L29
	cmp	sil, 4
	jne	.L1
	test	edx, edx
	lea	esi, 3[rdx]
	cmovs	edx, esi
	sar	edx, 2
	or	dl, BYTE PTR [rcx]
	mov	BYTE PTR 0[rbp], dl
	mov	rdx, QWORD PTR [rbx]
	movzx	esi, BYTE PTR [rdx]
	mov	rdx, QWORD PTR inverse[rip]
	mov	edx, DWORD PTR [rdx+rsi*4]
	sal	edx, 6
	mov	BYTE PTR [rcx], dl
	mov	BYTE PTR [r8], 2
	add	QWORD PTR [rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	movzx	edi, BYTE PTR [rax]
	call	toupper@PLT
	sub	eax, 7
	sal	eax, 4
	mov	BYTE PTR 0[rbp], al
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	movzx	edi, BYTE PTR [rax]
	call	toupper@PLT
	sub	eax, 55
	or	BYTE PTR 0[rbp], al
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	or	dl, BYTE PTR [rcx]
	mov	BYTE PTR 0[rbp], dl
	mov	BYTE PTR [rcx], 0
	mov	BYTE PTR [r8], 0
	add	QWORD PTR [rbx], 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	load_byte, .-load_byte
	.comm	inverse,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_nsc.c_load_byte.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_byte, %function
load_byte:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r1, #0
	cmp	r0, #1
	mov	r4, r2
	strb	r1, [r5]
	beq	.L25
	cmp	r0, #2
	mov	ip, r0
	beq	.L26
.L13:
	mov	r0, r1
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r7, [r2]
	ldrb	r2, [r7]	@ zero_extendqisi2
	tst	r2, #128
	bne	.L7
	ldr	r6, .L30
	ldr	r8, [r6]
	ldr	lr, [r8, r2, lsl #2]
	cmp	lr, #255
	beq	.L7
	ldr	r2, [sp, #24]
	ldrb	r0, [r2]	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L10
	ldrb	r2, [r7, #1]	@ zero_extendqisi2
	tst	r2, #128
	bne	.L7
	ldr	r2, [r8, r2, lsl #2]
	cmp	r2, #255
	beq	.L7
	add	r1, r2, #15
	cmp	r2, #0
	movlt	r2, r1
	mov	r1, #4
	asr	r2, r2, r1
	orr	r2, r2, lr, lsl #2
	strb	r2, [r5]
	ldr	ip, [r4]
	ldr	r2, [r6]
	ldrb	ip, [ip, #1]	@ zero_extendqisi2
	ldr	r2, [r2, ip, lsl #2]
	lsl	r2, r2, r1
	strb	r2, [r3]
	ldr	r3, [sp, #24]
	strb	r1, [r3]
	ldr	r3, [r4]
	add	r3, r3, #2
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r3, [r2]
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r4]
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L27
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	strb	r3, [r5]
.L6:
	ldr	r3, [r4]
	add	r2, r3, #1
	str	r2, [r4]
	ldrb	r0, [r3, #1]	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r4]
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L28
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [r5]	@ zero_extendqisi2
	sub	r3, r3, #48
	orr	r3, r3, r2
	strb	r3, [r5]
.L9:
	ldr	r3, [r4]
	mov	r0, #0
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	cmp	r0, #2
	beq	.L29
	cmp	r0, #4
	bne	.L13
	cmp	lr, #0
	add	r2, lr, #3
	movge	r2, lr
	ldrb	lr, [r3]	@ zero_extendqisi2
	mov	r0, r1
	orr	r2, lr, r2, asr #2
	strb	r2, [r5]
	ldr	r1, [r4]
	ldr	r2, [r6]
	ldrb	r1, [r1]	@ zero_extendqisi2
	ldr	r2, [r2, r1, lsl #2]
	lsl	r2, r2, #6
	strb	r2, [r3]
	ldr	r3, [sp, #24]
	strb	ip, [r3]
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	toupper
	sub	r0, r0, #7
	lsl	r0, r0, #4
	strb	r0, [r5]
	b	.L6
.L28:
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	toupper
	ldrb	r3, [r5]	@ zero_extendqisi2
	sub	r0, r0, #55
	orr	r3, r3, r0
	strb	r3, [r5]
	b	.L9
.L7:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	ldrb	r2, [r3]	@ zero_extendqisi2
	mov	r0, r1
	orr	r2, r2, lr
	strb	r2, [r5]
	strb	r1, [r3]
	ldr	r3, [sp, #24]
	strb	r1, [r3]
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L31:
	.align	2
.L30:
	.word	inverse
	.size	load_byte, .-load_byte
	.comm	inverse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
