	.file	"extr_cred.c_commit_creds.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"commit_creds(%p{%d,%d})"
	.text
	.p2align 4
	.globl	commit_creds
	.type	commit_creds, @function
commit_creds:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, QWORD PTR current[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rbp, QWORD PTR 8[r12]
	lea	r14, 76[rbx]
	call	read_cred_subscribers@PLT
	mov	rdi, r14
	mov	r13d, eax
	call	atomic_read@PLT
	mov	ecx, r13d
	mov	rsi, rbx
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	kdebug@PLT
	xor	edi, edi
	cmp	QWORD PTR [r12], rbp
	setne	dil
	call	BUG_ON@PLT
	mov	rdi, r14
	call	atomic_read@PLT
	xor	edi, edi
	test	eax, eax
	setle	dil
	call	BUG_ON@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	security_commit_creds@PLT
	mov	rdi, rbx
	call	get_cred@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
.L5:
	mov	rdi, QWORD PTR 24[r12]
	test	rdi, rdi
	jne	.L20
.L4:
	mov	QWORD PTR 16[r12], 0
	xor	eax, eax
	call	smp_wmb@PLT
.L6:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 16[rbx], rax
	je	.L7
	mov	rdi, r12
	call	key_fsuid_changed@PLT
.L7:
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 24[rbx], rax
	je	.L8
	mov	rdi, r12
	call	key_fsgid_changed@PLT
.L8:
	mov	rdi, rbx
	mov	esi, 2
	call	alter_cred_subscribers@PLT
	mov	rdi, QWORD PTR 64[rbx]
	cmp	rdi, QWORD PTR 64[rbp]
	je	.L9
	call	atomic_inc@PLT
.L9:
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, rbx
	call	rcu_assign_pointer@PLT
	mov	rdi, QWORD PTR [r12]
	mov	rsi, rbx
	call	rcu_assign_pointer@PLT
	mov	rdi, QWORD PTR 64[rbp]
	cmp	QWORD PTR 64[rbx], rdi
	je	.L10
	call	atomic_dec@PLT
.L10:
	mov	esi, -2
	mov	rdi, rbp
	call	alter_cred_subscribers@PLT
	mov	rdi, r12
	call	sched_switch_user@PLT
	mov	rax, QWORD PTR 32[rbp]
	cmp	QWORD PTR 32[rbx], rax
	jne	.L11
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rbx], rax
	je	.L21
.L11:
	mov	esi, DWORD PTR PROC_EVENT_UID[rip]
	mov	rdi, r12
	call	proc_id_connector@PLT
.L12:
	mov	rax, QWORD PTR 48[rbp]
	cmp	QWORD PTR 48[rbx], rax
	jne	.L13
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rbx], rax
	je	.L22
.L13:
	mov	esi, DWORD PTR PROC_EVENT_GID[rip]
	mov	rdi, r12
	call	proc_id_connector@PLT
.L14:
	mov	rdi, rbp
	call	put_cred@PLT
	mov	rdi, rbp
	call	put_cred@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L5
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR 16[rbp], rax
	jne	.L5
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR 24[rbp], rax
	jne	.L5
	mov	esi, DWORD PTR 72[rbp]
	mov	edi, DWORD PTR 72[rbx]
	call	cap_issubset@PLT
	test	eax, eax
	je	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR suid_dumpable[rip]
	call	set_dumpable@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 56[rbp]
	cmp	QWORD PTR 56[rbx], rax
	jne	.L13
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 24[rbx], rax
	jne	.L13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR 40[rbp]
	cmp	QWORD PTR 40[rbx], rax
	jne	.L11
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L11
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	commit_creds, .-commit_creds
	.comm	suid_dumpable,4,4
	.comm	current,8,8
	.comm	PROC_EVENT_UID,4,4
	.comm	PROC_EVENT_GID,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_cred.c_commit_creds.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"commit_creds(%p{%d,%d})\000"
	.text
	.align	2
	.global	commit_creds
	.syntax unified
	.arm
	.fpu softvfp
	.type	commit_creds, %function
commit_creds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	add	r8, r0, #40
	mov	r4, r0
	mov	r0, r8
	ldr	r5, [r6, #4]
	bl	atomic_read
	mov	r7, r0
	mov	r0, r4
	bl	read_cred_subscribers
	mov	r2, r7
	mov	r3, r0
	mov	r1, r4
	ldr	r0, .L23+4
	bl	kdebug
	ldr	r0, [r6]
	subs	r0, r0, r5
	movne	r0, #1
	bl	BUG_ON
	mov	r0, r8
	bl	atomic_read
	cmp	r0, #0
	movgt	r0, #0
	movle	r0, #1
	bl	BUG_ON
	mov	r1, r5
	mov	r0, r4
	bl	security_commit_creds
	mov	r0, r4
	bl	get_cred
	ldr	r2, [r5]
	ldr	r3, [r4]
	cmp	r2, r3
	beq	.L2
.L5:
	ldr	r0, [r6, #12]
	cmp	r0, #0
	bne	.L20
.L4:
	mov	r3, #0
	str	r3, [r6, #8]
	bl	smp_wmb
.L6:
	ldr	r2, [r4, #8]
	ldr	r3, [r5, #8]
	cmp	r2, r3
	beq	.L7
	mov	r0, r6
	bl	key_fsuid_changed
.L7:
	ldr	r2, [r4, #12]
	ldr	r3, [r5, #12]
	cmp	r2, r3
	beq	.L8
	mov	r0, r6
	bl	key_fsgid_changed
.L8:
	mov	r1, #2
	mov	r0, r4
	bl	alter_cred_subscribers
	ldr	r0, [r4, #32]
	ldr	r3, [r5, #32]
	cmp	r0, r3
	beq	.L9
	bl	atomic_inc
.L9:
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	rcu_assign_pointer
	mov	r1, r4
	ldr	r0, [r6]
	bl	rcu_assign_pointer
	ldr	r0, [r5, #32]
	ldr	r3, [r4, #32]
	cmp	r3, r0
	beq	.L10
	bl	atomic_dec
.L10:
	mvn	r1, #1
	mov	r0, r5
	bl	alter_cred_subscribers
	mov	r0, r6
	bl	sched_switch_user
	ldr	r2, [r4, #16]
	ldr	r3, [r5, #16]
	cmp	r2, r3
	bne	.L11
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	beq	.L21
.L11:
	ldr	r3, .L23+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	proc_id_connector
.L12:
	ldr	r2, [r4, #24]
	ldr	r3, [r5, #24]
	cmp	r2, r3
	bne	.L13
	ldr	r2, [r4, #4]
	ldr	r3, [r5, #4]
	cmp	r2, r3
	beq	.L22
.L13:
	ldr	r3, .L23+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	proc_id_connector
.L14:
	mov	r0, r5
	bl	put_cred
	mov	r0, r5
	bl	put_cred
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, [r5, #4]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L5
	ldr	r2, [r5, #8]
	ldr	r3, [r4, #8]
	cmp	r2, r3
	bne	.L5
	ldr	r2, [r5, #12]
	ldr	r3, [r4, #12]
	cmp	r2, r3
	bne	.L5
	ldr	r1, [r5, #36]
	ldr	r0, [r4, #36]
	bl	cap_issubset
	cmp	r0, #0
	beq	.L5
	b	.L6
.L20:
	ldr	r3, .L23+16
	ldr	r1, [r3]
	bl	set_dumpable
	b	.L4
.L22:
	ldr	r2, [r4, #28]
	ldr	r3, [r5, #28]
	cmp	r2, r3
	bne	.L13
	ldr	r2, [r4, #12]
	ldr	r3, [r5, #12]
	cmp	r2, r3
	bne	.L13
	b	.L14
.L21:
	ldr	r2, [r4, #20]
	ldr	r3, [r5, #20]
	cmp	r2, r3
	bne	.L11
	ldr	r2, [r4, #8]
	ldr	r3, [r5, #8]
	cmp	r2, r3
	bne	.L11
	b	.L12
.L24:
	.align	2
.L23:
	.word	current
	.word	.LC0
	.word	PROC_EVENT_UID
	.word	PROC_EVENT_GID
	.word	suid_dumpable
	.size	commit_creds, .-commit_creds
	.comm	suid_dumpable,4,4
	.comm	current,4,4
	.comm	PROC_EVENT_UID,4,4
	.comm	PROC_EVENT_GID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
