	.file	"extr_domain.c_tomoyo_write_aggregator.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tomoyo_write_aggregator
	.type	tomoyo_write_aggregator, @function
tomoyo_write_aggregator:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	xmm0, xmm0
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 16[rdi], 0
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 16[rsp], 0
	je	.L2
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
.L3:
	mov	rdi, r13
	call	tomoyo_read_token@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	tomoyo_read_token@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	tomoyo_correct_word@PLT
	test	eax, eax
	jne	.L4
.L6:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	call	tomoyo_correct_path@PLT
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	call	tomoyo_get_name@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	tomoyo_get_name@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L7
	test	rdi, rdi
	je	.L7
	cmp	QWORD PTR [rax], 0
	jne	.L7
	mov	rax, QWORD PTR 0[r13]
	mov	ecx, DWORD PTR tomoyo_same_aggregator[rip]
	lea	rdi, 16[rsp]
	mov	esi, 24
	mov	rdx, QWORD PTR TOMOYO_ID_AGGREGATOR[rip]
	mov	rax, QWORD PTR [rax]
	lea	rax, [rax+rdx*4]
	mov	rdx, r13
	mov	QWORD PTR 8[r13], rax
	call	tomoyo_update_policy@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
.L7:
	call	tomoyo_put_name@PLT
	mov	rdi, QWORD PTR [rsp]
	call	tomoyo_put_name@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tomoyo_write_aggregator, .-tomoyo_write_aggregator
	.comm	tomoyo_same_aggregator,4,4
	.comm	TOMOYO_ID_AGGREGATOR,8,8
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,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_domain.c_tomoyo_write_aggregator.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tomoyo_write_aggregator
	.syntax unified
	.arm
	.fpu softvfp
	.type	tomoyo_write_aggregator, %function
tomoyo_write_aggregator:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, [r0, #8]
	sub	sp, sp, #20
	cmp	r2, r3
	ldr	r2, .L15
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	ldrne	r3, .L15+4
	ldreq	r3, .L15+8
	ldr	r4, [r3]
	bl	tomoyo_read_token
	mov	r6, r0
	mov	r0, r5
	bl	tomoyo_read_token
	mov	r7, r0
	mov	r0, r6
	bl	tomoyo_correct_word
	cmp	r0, #0
	rsb	r4, r4, #0
	bne	.L4
.L6:
	ldr	r3, .L15+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r0, r7
	bl	tomoyo_correct_path
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	bl	tomoyo_get_name
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #4]
	bl	tomoyo_get_name
	mov	r3, r0
	ldr	r0, [sp, #4]
	str	r3, [sp]
	cmp	r0, #0
	cmpne	r3, #0
	beq	.L7
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [r5]
	ldr	r2, .L15+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L15+20
	add	r3, r3, r2, lsl #2
	str	r3, [r5, #4]
	mov	r2, r5
	ldr	r3, [r1]
	add	r0, sp, #8
	mov	r1, #12
	bl	tomoyo_update_policy
	mov	r4, r0
	ldr	r0, [sp, #4]
.L7:
	bl	tomoyo_put_name
	ldr	r0, [sp]
	bl	tomoyo_put_name
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	ENOENT
	.word	ENOMEM
	.word	EINVAL
	.word	TOMOYO_ID_AGGREGATOR
	.word	tomoyo_same_aggregator
	.size	tomoyo_write_aggregator, .-tomoyo_write_aggregator
	.comm	tomoyo_same_aggregator,4,4
	.comm	TOMOYO_ID_AGGREGATOR,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
