	.file	"extr_res_mkupdate.c_findservice.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.type	findservice, @function
findservice:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rbx, rbx
	jne	.L2
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L9
.L2:
	mov	edi, DWORD PTR 24[rbx]
	mov	rsi, rbp
	call	strcasecmp@PLT
	test	rax, rax
	jne	.L5
	cmp	QWORD PTR [r12], rbx
	je	.L6
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L7
	mov	QWORD PTR 16[rax], rdx
.L7:
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 16[rax], rbx
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rbx], rax
	mov	QWORD PTR [r12], rbx
.L6:
	mov	eax, DWORD PTR [rbx]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdx, 4[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	sscanf@PLT
	mov	r8d, eax
	mov	eax, -1
	cmp	r8d, 1
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, -1
	test	eax, eax
	cmovle	eax, edx
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	findservice, .-findservice
	.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_res_mkupdate.c_findservice.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findservice, %function
findservice:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r1]
	ldr	r3, .L23
	sub	sp, sp, #8
	cmp	r4, #0
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	movne	r6, r1
	bne	.L2
	b	.L9
.L5:
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L9
.L2:
	mov	r1, r5
	ldr	r0, [r4, #12]
	bl	strcasecmp
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L6
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	str	r3, [r2, #4]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	strne	r2, [r3, #8]
	ldr	r3, [r6]
	str	r4, [r3, #8]
	ldr	r3, [r6]
	str	r3, [r4, #4]
	str	r4, [r6]
.L6:
	ldr	r0, [r4]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r5
	mov	r2, sp
	ldr	r1, .L23+4
	bl	sscanf
	cmp	r0, #1
	mvnne	r0, #0
	bne	.L1
	ldr	r0, [sp]
	cmp	r0, #0
	mvnle	r0, #0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.size	findservice, .-findservice
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
