	.file	"extr_kern_authorization.c_kauth_add_callback_to_scope.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kauth_add_callback_to_scope, @function
kauth_add_callback_to_scope:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR KAUTH_SCOPE_MAX_LISTENERS[rip]
	test	edx, edx
	jle	.L2
	sub	edx, 1
	mov	rax, QWORD PTR 8[rdi]
	add	rdx, 1
	sal	rdx, 4
	add	rdx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 16
	cmp	rax, rdx
	je	.L2
.L5:
	cmp	QWORD PTR [rax], 0
	jne	.L3
	mov	edx, DWORD PTR 4[rsi]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR [rsi]
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR KS_F_HAS_LISTENERS[rip]
	or	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ENOSPC[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	kauth_add_callback_to_scope, .-kauth_add_callback_to_scope
	.comm	KS_F_HAS_LISTENERS,4,4
	.comm	KAUTH_SCOPE_MAX_LISTENERS,4,4
	.comm	ENOSPC,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_authorization.c_kauth_add_callback_to_scope.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kauth_add_callback_to_scope, %function
kauth_add_callback_to_scope:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, lr}
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L2
	mov	r4, r0
	mov	r2, #0
	ldr	r3, [r0, #4]
	b	.L5
.L3:
	cmp	r2, lr
	add	r3, r3, #12
	beq	.L2
.L5:
	ldr	ip, [r3]
	add	r2, r2, #1
	cmp	ip, #0
	bne	.L3
	ldr	r0, .L9+4
	ldr	r2, [r4]
	ldr	r0, [r0]
	ldr	r5, [r1, #4]
	ldr	lr, [r1]
	orr	r2, r2, r0
	stm	r3, {r1, lr}
	str	r5, [r3, #8]
	mov	r0, ip
	str	r2, [r4]
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, pc}
.L10:
	.align	2
.L9:
	.word	KAUTH_SCOPE_MAX_LISTENERS
	.word	KS_F_HAS_LISTENERS
	.word	ENOSPC
	.size	kauth_add_callback_to_scope, .-kauth_add_callback_to_scope
	.comm	KS_F_HAS_LISTENERS,4,4
	.comm	KAUTH_SCOPE_MAX_LISTENERS,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
