	.file	"extr_kern_prot.c_sys_setregid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sys_setregid
	.type	sys_setregid, @function
sys_setregid:
.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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r15, QWORD PTR [rsi]
	mov	r14, QWORD PTR 8[rsi]
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r15
	call	AUDIT_ARG_EGID@PLT
	mov	rdi, r14
	call	AUDIT_ARG_RGID@PLT
	xor	eax, eax
	call	crget@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	PROC_LOCK@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	crcopysafe@PLT
	mov	r12, rax
	cmp	r14, -1
	je	.L2
	cmp	QWORD PTR [rax], r14
	je	.L3
	cmp	QWORD PTR 8[rax], r14
	je	.L35
	mov	esi, DWORD PTR PRIV_CRED_SETREGID[rip]
	mov	rdi, rax
	call	priv_check_cred@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L21
	cmp	r15, -1
	je	.L13
.L22:
	mov	rax, QWORD PTR 16[r12]
	cmp	QWORD PTR [rax], r15
	jne	.L10
.L7:
	cmp	r14, -1
	je	.L15
.L13:
	cmp	r14, QWORD PTR [r12]
	je	.L33
.L16:
	mov	rdi, rbp
	mov	rsi, r14
	call	change_rgid@PLT
	mov	rdi, r13
	call	setsugid@PLT
.L33:
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR [rax]
.L17:
	cmp	QWORD PTR 8[rbp], rsi
	je	.L19
	mov	rdi, rbp
	call	change_svgid@PLT
	mov	rdi, r13
	call	setsugid@PLT
.L19:
	mov	rsi, rbp
	mov	rdi, r13
	call	proc_set_cred@PLT
	mov	rdi, r13
	call	PROC_UNLOCK@PLT
	mov	rdi, r12
	call	crfree@PLT
	xor	r8d, r8d
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r8d
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	r15, -1
	je	.L33
.L23:
	mov	rax, QWORD PTR 16[r12]
	cmp	QWORD PTR [rax], r15
	je	.L7
	cmp	QWORD PTR [r12], r15
	je	.L10
	cmp	QWORD PTR 8[r12], r15
	je	.L10
	mov	esi, DWORD PTR PRIV_CRED_SETREGID[rip]
	mov	rdi, r12
	call	priv_check_cred@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L22
.L21:
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], r8d
	call	PROC_UNLOCK@PLT
	mov	rdi, rbp
	call	crfree@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	mov	rsi, r15
	call	change_egid@PLT
	mov	rdi, r13
	call	setsugid@PLT
	cmp	r14, -1
	jne	.L13
.L15:
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR [rax]
	cmp	rsi, QWORD PTR 0[rbp]
	jne	.L17
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	r15, -1
	jne	.L23
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR [rax]
	cmp	rsi, QWORD PTR 0[rbp]
	jne	.L17
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	r15, -1
	jne	.L23
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	sys_setregid, .-sys_setregid
	.comm	PRIV_CRED_SETREGID,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_kern_prot.c_sys_setregid.c"
	.text
	.align	2
	.global	sys_setregid
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_setregid, %function
sys_setregid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r1, {r8, r9}
	mov	r0, r8
	ldr	r7, [r3]
	bl	AUDIT_ARG_EGID
	mov	r0, r9
	bl	AUDIT_ARG_RGID
	bl	crget
	mov	r4, r0
	mov	r0, r7
	bl	PROC_LOCK
	mov	r1, r4
	mov	r0, r7
	bl	crcopysafe
	cmn	r9, #1
	mov	r5, r0
	beq	.L2
	ldr	r3, [r0]
	cmp	r3, r9
	beq	.L3
	ldr	r3, [r0, #4]
	cmp	r3, r9
	beq	.L35
	ldr	r3, .L36
	ldr	r1, [r3]
	bl	priv_check_cred
	subs	r6, r0, #0
	bne	.L21
	cmn	r8, #1
	beq	.L13
.L22:
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	cmp	r3, r8
	bne	.L10
.L7:
	cmn	r9, #1
	beq	.L15
.L13:
	ldr	r3, [r5]
	cmp	r9, r3
	beq	.L33
.L16:
	mov	r1, r9
	mov	r0, r4
	bl	change_rgid
	mov	r0, r7
	bl	setsugid
.L33:
	ldr	r3, [r4, #8]
	ldr	r1, [r3]
.L17:
	ldr	r3, [r4, #4]
	cmp	r3, r1
	beq	.L19
	mov	r0, r4
	bl	change_svgid
	mov	r0, r7
	bl	setsugid
.L19:
	mov	r1, r4
	mov	r0, r7
	bl	proc_set_cred
	mov	r0, r7
	bl	PROC_UNLOCK
	mov	r0, r5
	bl	crfree
	mov	r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	cmn	r8, #1
	beq	.L33
.L23:
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L7
	ldr	r3, [r5]
	cmp	r3, r8
	beq	.L10
	ldr	r3, [r5, #4]
	cmp	r3, r8
	beq	.L10
	ldr	r3, .L36
	mov	r0, r5
	ldr	r1, [r3]
	bl	priv_check_cred
	subs	r6, r0, #0
	beq	.L22
.L21:
	mov	r0, r7
	bl	PROC_UNLOCK
	mov	r0, r4
	bl	crfree
	b	.L1
.L10:
	mov	r1, r8
	mov	r0, r4
	bl	change_egid
	mov	r0, r7
	bl	setsugid
	cmn	r9, #1
	bne	.L13
.L15:
	ldr	r2, [r4, #8]
	ldr	r3, [r4]
	ldr	r1, [r2]
	cmp	r1, r3
	bne	.L17
	b	.L19
.L2:
	cmn	r8, #1
	bne	.L23
	b	.L15
.L35:
	cmn	r8, #1
	bne	.L23
	b	.L16
.L37:
	.align	2
.L36:
	.word	PRIV_CRED_SETREGID
	.size	sys_setregid, .-sys_setregid
	.comm	PRIV_CRED_SETREGID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
