	.file	"extr_getservent.c_servent_unpack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#\n"
.LC1:
	.string	" \t"
.LC2:
	.string	",/"
	.text
	.p2align 4
	.type	servent_unpack, @function
servent_unpack:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	BYTE PTR [rdi], 35
	je	.L35
	mov	r13, rsi
	mov	r15, rdi
	xor	esi, esi
	mov	r14, rdx
	mov	rdi, r13
	mov	edx, 32
	mov	rbp, rcx
	mov	r12, r8
	call	memset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	strpbrk@PLT
	test	rax, rax
	je	.L4
	mov	BYTE PTR [rax], 0
.L4:
	mov	QWORD PTR 0[r13], r15
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	strpbrk@PLT
	test	rax, rax
	je	.L35
	mov	BYTE PTR [rax], 0
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 32
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L28:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	cmp	al, 32
	je	.L28
.L34:
	cmp	al, 9
	je	.L28
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	strpbrk@PLT
	test	rax, rax
	je	.L35
	mov	BYTE PTR [rax], 0
	mov	rdi, rbx
	mov	rsi, rsp
	mov	edx, 10
	lea	r15, 1[rax]
	call	strtol@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR [rsp]
	cmp	rax, rbx
	je	.L35
	cmp	BYTE PTR [rax], 0
	jne	.L35
	test	rdi, rdi
	js	.L35
	cmp	QWORD PTR USHRT_MAX[rip], rdi
	jl	.L35
	call	htons@PLT
	mov	QWORD PTR 8[r13], r15
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	mov	DWORD PTR 24[r13], eax
	mov	QWORD PTR 16[r13], r14
	call	strpbrk@PLT
	test	rax, rax
	je	.L18
	mov	BYTE PTR [rax], 0
	lea	rbx, -8[r14+rbp*8]
	lea	rdi, 1[rax]
	lea	rbp, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	je	.L18
.L16:
	cmp	al, 32
	je	.L19
	cmp	al, 9
	je	.L19
	cmp	rbx, r14
	jbe	.L14
	mov	QWORD PTR [r14], rdi
	mov	rsi, rbp
	lea	r13, 8[r14]
	call	strpbrk@PLT
	test	rax, rax
	je	.L9
	lea	rdi, 1[rax]
	mov	BYTE PTR [rax], 0
	mov	r14, r13
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	jne	.L16
.L18:
	mov	r13, r14
.L9:
	mov	QWORD PTR 0[r13], 0
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L37
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	add	rdi, 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR ERANGE[rip]
	mov	QWORD PTR [r14], 0
	mov	DWORD PTR [r12], eax
.L35:
	mov	eax, -1
	jmp	.L1
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	servent_unpack, .-servent_unpack
	.comm	USHRT_MAX,8,8
	.comm	ERANGE,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_getservent.c_servent_unpack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#\012\000"
	.align	2
.LC1:
	.ascii	" \011\000"
	.align	2
.LC2:
	.ascii	",/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	servent_unpack, %function
servent_unpack:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r2
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r7, r3
	ldr	r3, .L33
	sub	sp, sp, #12
	cmp	r2, #35
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r5, [sp, #40]
	beq	.L5
	mov	r9, r1
	mov	r4, r0
	mov	r2, #16
	mov	r1, #0
	mov	r0, r9
	bl	memset
	ldr	r1, .L33+4
	mov	r0, r4
	bl	strpbrk
	cmp	r0, #0
	movne	r3, #0
	ldr	r1, .L33+8
	strbne	r3, [r0]
	mov	r0, r4
	str	r4, [r9]
	bl	strpbrk
	cmp	r0, #0
	beq	.L5
	mov	r3, #0
	mov	r4, r0
	strb	r3, [r4], #1
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #9
	cmpne	r3, #32
	bne	.L6
.L7:
	ldrb	r2, [r4, #1]!	@ zero_extendqisi2
	cmp	r2, #9
	cmpne	r2, #32
	beq	.L7
.L6:
	mov	r0, r4
	ldr	r1, .L33+12
	bl	strpbrk
	subs	r8, r0, #0
	beq	.L5
	mov	r3, #0
	mov	r2, #10
	mov	r1, sp
	mov	r0, r4
	strb	r3, [r8], #1
	bl	strtol
	ldr	r2, [sp]
	cmp	r2, r4
	beq	.L5
	ldrb	r4, [r2]	@ zero_extendqisi2
	cmp	r4, #0
	movne	r4, #1
	lsreq	r4, r0, #31
	cmp	r4, #0
	bne	.L5
	ldr	r2, .L33+16
	ldr	r2, [r2]
	cmp	r2, r0
	blt	.L5
	bl	htons
	ldr	r1, .L33+8
	str	r0, [r9, #12]
	str	r8, [r9, #4]
	mov	r0, r8
	str	r6, [r9, #8]
	bl	strpbrk
	cmp	r0, #0
	beq	.L8
	sub	r7, r7, #-1073741823
	ldr	r8, .L33+8
	strb	r4, [r0], #1
	add	r7, r6, r7, lsl #2
.L9:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
.L14:
	cmp	r3, #9
	cmpne	r3, #32
	moveq	r4, #1
	movne	r4, #0
	addeq	r0, r0, #1
	beq	.L9
	cmp	r7, r6
	bls	.L12
	mov	r1, r8
	str	r0, [r6], #4
	bl	strpbrk
	cmp	r0, #0
	beq	.L8
	strb	r4, [r0], #1
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
.L8:
	mov	r3, #0
	mov	r0, r3
	str	r3, [r6]
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r3, .L33+20
	str	r4, [r6]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r5]
	b	.L1
.L5:
	mvn	r0, #0
	b	.L1
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	USHRT_MAX
	.word	ERANGE
	.size	servent_unpack, .-servent_unpack
	.comm	USHRT_MAX,4,4
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
