	.file	"extr_saquery.c_get_lid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to find lid for \"%s\": %s\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Invalid lid specified: \"%s\"\n"
	.text
	.p2align 4
	.type	get_lid, @function
get_lid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	test	rsi, rsi
	je	.L1
	mov	rbp, rdi
	movsx	edi, BYTE PTR [rsi]
	mov	r12, rsi
	call	isalpha@PLT
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	mov	rdx, rsp
	mov	rsi, r12
	call	get_lid_from_name@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L4
.L12:
	mov	r13, QWORD PTR [rsp]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r13
	pop	rbp
	.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
.L3:
	.cfi_restore_state
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	mov	QWORD PTR errno[rip], 0
	call	strtol@PLT
	cmp	QWORD PTR errno[rip], 0
	mov	r13, rax
	jne	.L6
	test	rax, rax
	jle	.L6
	cmp	QWORD PTR UINT16_MAX[rip], rax
	jge	.L1
.L6:
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	call	exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, eax
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	rcx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, ebp
	call	exit@PLT
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_lid, .-get_lid
	.comm	stderr,4,4
	.comm	errno,8,8
	.comm	UINT16_MAX,8,8
	.comm	EINVAL,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_saquery.c_get_lid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to find lid for \"%s\": %s\012\000"
	.align	2
.LC1:
	.ascii	"Invalid lid specified: \"%s\"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lid, %function
get_lid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L15
	sub	sp, sp, #8
	subs	r4, r1, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	moveq	r5, r4
	str	r3, [sp]
	beq	.L1
	mov	r5, r0
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	isalpha
	subs	r2, r0, #0
	beq	.L3
	mov	r0, r5
	mov	r2, sp
	mov	r1, r4
	bl	get_lid_from_name
	subs	r5, r0, #0
	bne	.L4
.L11:
	ldr	r5, [sp]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r5, .L15+4
	mov	r1, r2
	mov	r0, r4
	str	r2, [r5]
	bl	strtol
	ldr	r2, [r5]
	cmp	r0, #0
	movgt	r3, #0
	movle	r3, #1
	cmp	r2, #0
	movne	r3, #1
	cmp	r3, #0
	mov	r5, r0
	beq	.L14
.L6:
	ldr	r3, .L15+8
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L15+12
	bl	fprintf
	ldr	r3, .L15+16
	ldr	r0, [r3]
	bl	exit
	b	.L1
.L14:
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, r0
	bge	.L1
	b	.L6
.L4:
	ldr	r3, .L15+8
	ldr	r6, [r3]
	bl	strerror
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L15+24
	mov	r0, r6
	bl	fprintf
	mov	r0, r5
	bl	exit
	b	.L11
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	errno
	.word	stderr
	.word	.LC1
	.word	EINVAL
	.word	UINT16_MAX
	.word	.LC0
	.size	get_lid, .-get_lid
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	UINT16_MAX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
