	.file	"extr_posix_spawn.c_posix_spawnattr_set_persona_groups_np.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	posix_spawnattr_set_persona_groups_np
	.type	posix_spawnattr_set_persona_groups_np, @function
posix_spawnattr_set_persona_groups_np:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L2
	test	rdx, rdx
	je	.L2
	cmp	DWORD PTR NGROUPS[rip], esi
	jl	.L2
	test	esi, esi
	js	.L2
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR [rdi]
	mov	r8d, DWORD PTR POSIX_SPAWN_PERSONA_FLAGS_OVERRIDE[rip]
	or	r8d, DWORD PTR POSIX_SPAWN_PERSONA_FLAGS_VERIFY[rip]
	test	r8d, eax
	je	.L2
	mov	DWORD PTR 4[rdi], esi
	test	esi, esi
	je	.L5
	mov	r9, QWORD PTR 16[rdi]
	lea	r8d, -1[rsi]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [r9+rax*4], esi
	mov	rsi, rax
	add	rax, 1
	cmp	r8, rsi
	jne	.L6
	mov	eax, DWORD PTR [rdi]
.L5:
	or	eax, DWORD PTR POSIX_SPAWN_PERSONA_GROUPS[rip]
	mov	DWORD PTR 8[rdi], ecx
	mov	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	posix_spawnattr_set_persona_groups_np, .-posix_spawnattr_set_persona_groups_np
	.comm	POSIX_SPAWN_PERSONA_GROUPS,4,4
	.comm	POSIX_SPAWN_PERSONA_FLAGS_VERIFY,4,4
	.comm	POSIX_SPAWN_PERSONA_FLAGS_OVERRIDE,4,4
	.comm	NGROUPS,4,4
	.comm	EINVAL,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_posix_spawn.c_posix_spawnattr_set_persona_groups_np.c"
	.text
	.align	2
	.global	posix_spawnattr_set_persona_groups_np
	.syntax unified
	.arm
	.fpu softvfp
	.type	posix_spawnattr_set_persona_groups_np, %function
posix_spawnattr_set_persona_groups_np:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	beq	.L24
	ldr	ip, [r0]
	cmp	ip, #0
	beq	.L24
	cmp	r2, #0
	beq	.L24
	ldr	r0, .L29
	ldr	r0, [r0]
	cmp	r0, r1
	movge	r0, #0
	movlt	r0, #1
	orrs	r0, r0, r1, lsr #31
	beq	.L28
.L24:
	ldr	r3, .L29+4
	ldr	r0, [r3]
	bx	lr
.L28:
	push	{r4, lr}
	ldr	lr, [ip]
	cmp	lr, #0
	beq	.L2
	ldr	ip, .L29+8
	ldr	r0, .L29+12
	ldr	r4, [ip]
	ldr	r0, [r0]
	ldr	ip, [lr]
	orr	r0, r0, r4
	tst	r0, ip
	beq	.L2
	cmp	r1, #0
	str	r1, [lr, #4]
	beq	.L5
	ldr	r0, [lr, #12]
	add	r1, r2, r1, lsl #2
	sub	r1, r1, #4
	sub	r2, r2, #4
	sub	r0, r0, #4
.L6:
	ldr	ip, [r2, #4]!
	cmp	r2, r1
	str	ip, [r0, #4]!
	bne	.L6
	ldr	ip, [lr]
.L5:
	ldr	r2, .L29+16
	str	r3, [lr, #8]
	ldr	r3, [r2]
	mov	r0, #0
	orr	ip, r3, ip
	str	ip, [lr]
	pop	{r4, pc}
.L2:
	ldr	r3, .L29+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L30:
	.align	2
.L29:
	.word	NGROUPS
	.word	EINVAL
	.word	POSIX_SPAWN_PERSONA_FLAGS_VERIFY
	.word	POSIX_SPAWN_PERSONA_FLAGS_OVERRIDE
	.word	POSIX_SPAWN_PERSONA_GROUPS
	.size	posix_spawnattr_set_persona_groups_np, .-posix_spawnattr_set_persona_groups_np
	.comm	POSIX_SPAWN_PERSONA_GROUPS,4,4
	.comm	POSIX_SPAWN_PERSONA_FLAGS_VERIFY,4,4
	.comm	POSIX_SPAWN_PERSONA_FLAGS_OVERRIDE,4,4
	.comm	NGROUPS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
