	.file	"extr_pw_user.c_pw_gidpolicy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pw_gidpolicy, @function
pw_gidpolicy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, r8d
	call	SETGRENT@PLT
	test	rbp, rbp
	je	.L2
	mov	rdi, rbp
	call	GETGRNAM@PLT
	test	rax, rax
	je	.L22
.L20:
	mov	r12d, DWORD PTR [rax]
.L4:
	xor	eax, eax
	call	ENDGRENT@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	GETGRNAM@PLT
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L20
	cmp	QWORD PTR [rdx], 0
	je	.L20
.L5:
	mov	edi, r14d
	call	GETGRGID@PLT
	test	rax, rax
	je	.L7
	test	ebx, ebx
	jne	.L8
.L9:
	mov	esi, 1
	mov	rdi, r13
	call	pw_groupnext@PLT
	mov	r14d, eax
.L11:
	push	0
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	mov	edx, r14d
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 64
	mov	r8d, -1
	mov	rsi, r12
	mov	rdi, r13
	call	groupadd@PLT
	mov	rdi, r12
	call	GETGRNAM@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	jne	.L20
	mov	r12d, -1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR GID_MAX[rip]
	mov	rdi, rbp
	call	pw_checkid@PLT
	mov	edi, eax
	call	GETGRGID@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L7:
	test	ebx, ebx
	je	.L10
.L8:
	mov	esi, 1
	mov	rdi, r13
	call	pw_groupnext@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	r14d, -1
	jne	.L11
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	pw_gidpolicy, .-pw_gidpolicy
	.comm	GID_MAX,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_pw_user.c_pw_gidpolicy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pw_gidpolicy, %function
pw_gidpolicy:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	sub	sp, sp, #20
	mov	r7, r0
	mov	r5, r2
	mov	r6, r3
	bl	SETGRENT
	cmp	r4, #0
	beq	.L2
	mov	r0, r4
	bl	GETGRNAM
	cmp	r0, #0
	beq	.L22
.L20:
	ldr	r4, [r0]
.L4:
	bl	ENDGRENT
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r5
	bl	GETGRNAM
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
.L5:
	mov	r0, r6
	bl	GETGRGID
	cmp	r0, #0
	ldr	r3, [sp, #40]
	beq	.L7
	cmp	r3, #0
	bne	.L8
.L9:
	mov	r1, #1
	mov	r0, r7
	bl	pw_groupnext
	mov	r6, r0
.L11:
	mov	r3, #0
	mvn	r4, #0
	mov	r2, r6
	mov	r1, r5
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	mov	r0, r7
	str	r4, [sp]
	bl	groupadd
	mov	r0, r5
	bl	GETGRNAM
	cmp	r0, #0
	bne	.L20
	b	.L4
.L22:
	ldr	r3, .L23
	mov	r0, r4
	ldr	r1, [r3]
	bl	pw_checkid
	bl	GETGRGID
	b	.L20
.L7:
	cmp	r3, #0
	beq	.L10
.L8:
	mov	r0, r7
	mov	r1, #1
	bl	pw_groupnext
	mov	r4, r0
	b	.L4
.L10:
	cmn	r6, #1
	bne	.L11
	b	.L9
.L24:
	.align	2
.L23:
	.word	GID_MAX
	.size	pw_gidpolicy, .-pw_gidpolicy
	.comm	GID_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
