	.file	"extr_bsd-setres_id.c_setresuid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"seteuid %u: %.100s"
.LC1:
	.string	"setuid %u: %.100s"
	.text
	.p2align 4
	.globl	setresuid
	.type	setresuid, @function
setresuid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	rdi, rdx
	jne	.L8
	mov	rbp, rdi
	mov	rdi, rsi
	mov	r12, rsi
	xor	r13d, r13d
	call	seteuid@PLT
	test	rax, rax
	js	.L9
.L4:
	mov	rdi, rbp
	call	setuid@PLT
	test	rax, rax
	js	.L10
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r13d, DWORD PTR errno[rip]
	mov	edi, r13d
	call	strerror@PLT
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	mov	rdx, rax
	call	error@PLT
	mov	DWORD PTR errno[rip], r13d
	mov	r13d, -1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR ENOSYS[rip]
	mov	r13d, -1
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
.L10:
	mov	r12d, DWORD PTR errno[rip]
	mov	r13d, -1
	mov	edi, r12d
	call	strerror@PLT
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	mov	rdx, rax
	call	error@PLT
	mov	DWORD PTR errno[rip], r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	setresuid, .-setresuid
	.comm	errno,4,4
	.comm	ENOSYS,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_bsd-setres_id.c_setresuid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"seteuid %u: %.100s\000"
	.align	2
.LC1:
	.ascii	"setuid %u: %.100s\000"
	.text
	.align	2
	.global	setresuid
	.syntax unified
	.arm
	.fpu softvfp
	.type	setresuid, %function
setresuid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, r2
	push	{r4, r5, r6, r7, r8, lr}
	bne	.L8
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	seteuid
	cmp	r0, #0
	movge	r6, #0
	blt	.L9
.L4:
	mov	r0, r4
	bl	setuid
	cmp	r0, #0
	blt	.L10
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r7, .L11
	mvn	r6, #0
	ldr	r8, [r7]
	mov	r0, r8
	bl	strerror
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L11+4
	bl	error
	str	r8, [r7]
	b	.L4
.L8:
	ldr	r2, .L11+8
	ldr	r3, .L11
	ldr	r2, [r2]
	mvn	r6, #0
	str	r2, [r3]
	b	.L1
.L10:
	ldr	r5, .L11
	mvn	r6, #0
	ldr	r7, [r5]
	mov	r0, r7
	bl	strerror
	mov	r1, r4
	mov	r2, r0
	ldr	r0, .L11+12
	bl	error
	str	r7, [r5]
	b	.L1
.L12:
	.align	2
.L11:
	.word	errno
	.word	.LC0
	.word	ENOSYS
	.word	.LC1
	.size	setresuid, .-setresuid
	.comm	errno,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
