	.file	"extr_posix_spawn.c_process_spawnattr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_spawnattr, @function
process_spawnattr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SIG_DFL[rip]
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR POSIX_SPAWN_SETPGROUP[rip], eax
	jne	.L40
	test	DWORD PTR POSIX_SPAWN_SETSCHEDULER[rip], eax
	jne	.L41
.L5:
	test	DWORD PTR POSIX_SPAWN_SETSCHEDPARAM[rip], eax
	jne	.L42
	test	DWORD PTR POSIX_SPAWN_RESETIDS[rip], eax
	jne	.L43
.L9:
	test	DWORD PTR POSIX_SPAWN_SETSIGMASK[rip], eax
	jne	.L44
	test	DWORD PTR POSIX_SPAWN_SETSIGDEF[rip], eax
	je	.L14
.L13:
	mov	eax, DWORD PTR _SIG_MAXSIG[rip]
	test	eax, eax
	jle	.L14
	add	rbp, 4
	mov	ebx, 1
	mov	r12, rsp
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	add	ebx, 1
	cmp	DWORD PTR _SIG_MAXSIG[rip], ebx
	jl	.L14
.L16:
	mov	esi, ebx
	mov	rdi, rbp
	call	sigismember@PLT
	test	rax, rax
	je	.L15
	xor	edx, edx
	mov	rsi, r12
	mov	edi, ebx
	call	__sys_sigaction@PLT
	test	rax, rax
	je	.L15
.L38:
	mov	eax, DWORD PTR errno[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L45
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	xor	eax, eax
	call	getgid@PLT
	mov	edi, eax
	call	setegid@PLT
	test	rax, rax
	jne	.L38
	xor	eax, eax
	call	getuid@PLT
	mov	edi, eax
	call	seteuid@PLT
	mov	r8, rax
	mov	eax, DWORD PTR errno[rip]
	test	r8, r8
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	mov	esi, DWORD PTR 20[rdi]
	xor	edi, edi
	call	setpgid@PLT
	mov	r8, rax
	mov	eax, DWORD PTR errno[rip]
	test	r8, r8
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR POSIX_SPAWN_SETSCHEDULER[rip], eax
	je	.L5
.L41:
	mov	esi, DWORD PTR 16[rbp]
	xor	edi, edi
	lea	rdx, 12[rbp]
	call	sched_setscheduler@PLT
	test	rax, rax
	jne	.L38
	mov	eax, DWORD PTR 0[rbp]
.L46:
	test	DWORD PTR POSIX_SPAWN_RESETIDS[rip], eax
	je	.L9
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rsi, 12[rbp]
	xor	edi, edi
	call	sched_setparam@PLT
	mov	r8, rax
	mov	eax, DWORD PTR errno[rip]
	test	r8, r8
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	lea	rsi, 8[rbp]
	xor	edx, edx
	call	__sys_sigprocmask@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR POSIX_SPAWN_SETSIGDEF[rip], eax
	jne	.L13
	jmp	.L14
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	process_spawnattr, .-process_spawnattr
	.comm	errno,4,4
	.comm	_SIG_MAXSIG,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIG_DFL,4,4
	.comm	POSIX_SPAWN_SETSIGMASK,4,4
	.comm	POSIX_SPAWN_SETSIGDEF,4,4
	.comm	POSIX_SPAWN_SETSCHEDULER,4,4
	.comm	POSIX_SPAWN_SETSCHEDPARAM,4,4
	.comm	POSIX_SPAWN_SETPGROUP,4,4
	.comm	POSIX_SPAWN_RESETIDS,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_process_spawnattr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_spawnattr, %function
process_spawnattr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, #0
	ldr	r1, .L47
	ldr	r2, .L47+4
	ldr	r1, [r1]
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r1
	ldr	r1, .L47+8
	sub	sp, sp, #16
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	str	r2, [sp, #4]
	str	r0, [sp, #8]
	bne	.L40
	ldr	r2, .L47+12
	ldr	r0, [r2]
	ands	r0, r3, r0
	bne	.L41
.L5:
	ldr	r2, .L47+16
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L42
	ldr	r2, .L47+20
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L43
.L9:
	ldr	r2, .L47+24
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L44
	ldr	r2, .L47+28
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L14
.L13:
	ldr	r6, .L47+32
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L14
	mov	r4, #1
	add	r5, r5, #4
	b	.L16
.L15:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	blt	.L14
.L16:
	mov	r1, r4
	mov	r0, r5
	bl	sigismember
	cmp	r0, #0
	beq	.L15
	mov	r2, #0
	mov	r0, r4
	add	r1, sp, #4
	bl	__sys_sigaction
	cmp	r0, #0
	beq	.L15
.L38:
	ldr	r3, .L47+36
	ldr	r0, [r3]
	b	.L1
.L14:
	mov	r0, #0
.L1:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L43:
	bl	getgid
	bl	setegid
	cmp	r0, #0
	bne	.L38
	bl	getuid
	bl	seteuid
	cmp	r0, #0
	bne	.L38
	ldr	r3, [r5]
	b	.L9
.L40:
	ldr	r1, [r5, #20]
	bl	setpgid
	cmp	r0, #0
	bne	.L38
	ldr	r2, .L47+12
	ldr	r3, [r5]
	ldr	r0, [r2]
	ands	r0, r3, r0
	beq	.L5
.L41:
	mov	r0, #0
	ldr	r1, [r5, #16]
	add	r2, r5, #12
	bl	sched_setscheduler
	cmp	r0, #0
	bne	.L38
	ldr	r3, [r5]
.L46:
	ldr	r2, .L47+20
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L9
	b	.L43
.L42:
	add	r1, r5, #12
	bl	sched_setparam
	cmp	r0, #0
	bne	.L38
	ldr	r3, [r5]
	b	.L46
.L44:
	ldr	r3, .L47+40
	mov	r2, #0
	ldr	r0, [r3]
	add	r1, r5, #8
	bl	__sys_sigprocmask
	ldr	r2, .L47+28
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L13
	b	.L14
.L45:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	POSIX_SPAWN_SETPGROUP
	.word	SIG_DFL
	.word	.LC0
	.word	POSIX_SPAWN_SETSCHEDULER
	.word	POSIX_SPAWN_SETSCHEDPARAM
	.word	POSIX_SPAWN_RESETIDS
	.word	POSIX_SPAWN_SETSIGMASK
	.word	POSIX_SPAWN_SETSIGDEF
	.word	_SIG_MAXSIG
	.word	errno
	.word	SIG_SETMASK
	.size	process_spawnattr, .-process_spawnattr
	.comm	errno,4,4
	.comm	_SIG_MAXSIG,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIG_DFL,4,4
	.comm	POSIX_SPAWN_SETSIGMASK,4,4
	.comm	POSIX_SPAWN_SETSIGDEF,4,4
	.comm	POSIX_SPAWN_SETSCHEDULER,4,4
	.comm	POSIX_SPAWN_SETSCHEDPARAM,4,4
	.comm	POSIX_SPAWN_SETPGROUP,4,4
	.comm	POSIX_SPAWN_RESETIDS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
