	.file	"extr_getgrouplist.c_getgrouplist.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	getgrouplist
	.type	getgrouplist, @function
getgrouplist:
.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	eax, DWORD PTR [rcx]
	mov	QWORD PTR 8[rsp], rcx
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	jle	.L19
	mov	QWORD PTR [rdx], rsi
	xor	eax, eax
	mov	r12, rdi
	mov	r13, rsi
	mov	rbp, rdx
	mov	ebx, 1
	call	setgrent@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	getgrent@PLT
	mov	r14, rax
	test	rax, rax
	je	.L20
.L10:
	mov	rdi, QWORD PTR [r14]
	cmp	rdi, r13
	je	.L4
	mov	eax, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR -8[rbp+rax*8]
	cmp	ebx, eax
	setg	sil
	cmp	rdi, rdx
	setne	cl
	add	rax, 1
	test	sil, cl
	jne	.L6
	cmp	rdi, rdx
	je	.L4
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L4
	mov	r15d, 8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+r15]
	add	r15, 8
	test	rdi, rdi
	je	.L4
.L9:
	mov	rsi, r12
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	cmp	ebx, DWORD PTR 4[rsp]
	jge	.L11
	mov	rdx, QWORD PTR [r14]
	movsx	rax, ebx
	add	ebx, 1
	mov	QWORD PTR 0[rbp+rax*8], rdx
	xor	eax, eax
	call	getgrent@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	xor	r12d, r12d
.L8:
	xor	eax, eax
	call	endgrent@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], ebx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	r12d, -1
	jmp	.L8
.L19:
	mov	DWORD PTR [rcx], 0
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	getgrouplist, .-getgrouplist
	.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_getgrouplist.c_getgrouplist.c"
	.text
	.align	2
	.global	getgrouplist
	.syntax unified
	.arm
	.fpu softvfp
	.type	getgrouplist, %function
getgrouplist:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r3]
	mov	r8, r3
	cmp	r9, #0
	movle	r3, #0
	mvnle	r10, #0
	strle	r3, [r8]
	ble	.L1
	str	r1, [r2]
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	mov	r4, #1
	bl	setgrent
.L4:
	bl	getgrent
	subs	r10, r0, #0
	beq	.L8
.L10:
	ldr	r2, [r10]
	cmp	r2, r6
	beq	.L4
	mov	ip, #0
	sub	lr, r7, #4
.L6:
	ldr	r3, [lr, #4]!
	add	ip, ip, #1
	cmp	r2, r3
	cmpne	r4, ip
	bgt	.L6
	cmp	r2, r3
	beq	.L4
	ldr	r3, [r10, #4]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
	mov	fp, #4
	b	.L9
.L7:
	ldr	r3, [r10, #4]
	ldr	r0, [r3, fp]
	add	fp, fp, #4
	cmp	r0, #0
	beq	.L4
.L9:
	mov	r1, r5
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	cmp	r4, r9
	bge	.L11
	ldr	r3, [r10]
	str	r3, [r7, r4, lsl #2]
	bl	getgrent
	subs	r10, r0, #0
	add	r4, r4, #1
	bne	.L10
.L8:
	bl	endgrent
	str	r4, [r8]
.L1:
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	endgrent
	mvn	r10, #0
	str	r4, [r8]
	b	.L1
	.size	getgrouplist, .-getgrouplist
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
