	.file	"182951690.c"
	.intel_syntax noprefix
	.text
	.globl	getservbyname
	.type	getservbyname, @function
getservbyname:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR _serv_stayopen[rip]
	mov	edi, eax
	call	setservent@PLT
	jmp	.L2
.L9:
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	mov	r12, QWORD PTR 8[rbx]
	jmp	.L5
.L7:
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L13
	add	r12, 8
.L5:
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	jne	.L7
	jmp	.L2
.L12:
	nop
	jmp	.L4
.L13:
	nop
.L4:
	cmp	QWORD PTR -32[rbp], 0
	je	.L8
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L8
.L2:
	call	getservent@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L9
.L8:
	mov	eax, DWORD PTR _serv_stayopen[rip]
	test	eax, eax
	jne	.L10
	call	endservent@PLT
.L10:
	mov	rax, rbx
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getservbyname, .-getservbyname
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"182951690.c"
	.text
	.align	2
	.global	getservbyname
	.syntax unified
	.arm
	.fpu softvfp
	.type	getservbyname, %function
getservbyname:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r0, r3
	bl	setservent
	b	.L2
.L9:
	ldr	r3, [r5]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r4, [r5, #4]
	b	.L5
.L7:
	ldr	r3, [r4]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	add	r4, r4, #4
.L5:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L7
	b	.L2
.L12:
	nop
	b	.L4
.L13:
	nop
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r5, #12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
.L2:
	bl	getservent
	mov	r5, r0
	cmp	r5, #0
	bne	.L9
.L8:
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	bl	endservent
.L10:
	mov	r3, r5
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	_serv_stayopen
	.size	getservbyname, .-getservbyname
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
