	.file	"extr_....kernsubr_syscall.c_syscallret.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"fork() did not clear TDP_FORKING upon completion"
	.text
	.p2align 4
	.type	syscallret, @function
syscallret:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	xor	edi, edi
	test	DWORD PTR TDP_FORKING[rip], eax
	sete	dil
	call	KASSERT@PLT
	cmp	QWORD PTR trap_enotcap[rip], 0
	mov	r12, QWORD PTR 32[rbp]
	jne	.L2
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR P2_TRAPCAP[rip], eax
	jne	.L2
.L3:
	mov	esi, DWORD PTR 20[rbp]
	mov	rdi, rbp
	call	userret@PLT
	mov	eax, DWORD PTR 4[r12]
	test	DWORD PTR P_TRACED[rip], eax
	jne	.L26
	mov	edx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR S_SCX[rip]
	mov	rdi, r12
	call	STOPEVENT@PLT
	mov	eax, DWORD PTR TDB_EXEC[rip]
	or	eax, DWORD PTR TDB_FORK[rip]
	test	DWORD PTR 4[rbp], eax
	jne	.L9
.L10:
	mov	edi, DWORD PTR 0[rbp]
	and	edi, DWORD PTR TDP_RFPPWAIT[rip]
	call	__predict_false@PLT
	test	rax, rax
	jne	.L27
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	IN_CAPABILITY_MODE@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR 16[rbp]
	cmp	eax, DWORD PTR ENOTCAPABLE[rip]
	je	.L5
	cmp	eax, DWORD PTR ECAPMODE[rip]
	jne	.L3
.L5:
	lea	r13, 12[rsp]
	mov	rdi, r13
	call	ksiginfo_init_trap@PLT
	mov	eax, DWORD PTR SIGTRAP[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR TRAP_CAP[rip]
	mov	DWORD PTR 12[rsp], eax
	call	trapsignal@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	PROC_LOCK@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR TDB_EXEC[rip]
	mov	edx, DWORD PTR TDB_FORK[rip]
.L11:
	or	eax, edx
	or	eax, DWORD PTR TDB_SCX[rip]
	mov	rdi, r12
	not	eax
	and	eax, ecx
	mov	DWORD PTR 4[rbp], eax
	call	PROC_UNLOCK@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r12
	call	PROC_LOCK@PLT
	mov	eax, DWORD PTR TDB_SCX[rip]
	or	DWORD PTR 4[rbp], eax
	mov	rdi, r12
	call	PROC_UNLOCK@PLT
	mov	edx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR S_SCX[rip]
	mov	rdi, r12
	call	STOPEVENT@PLT
	mov	rdi, r12
	call	PROC_LOCK@PLT
	mov	edx, DWORD PTR TDB_FORK[rip]
	mov	eax, DWORD PTR TDB_EXEC[rip]
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, edx
	or	esi, eax
	test	esi, ecx
	jne	.L7
	mov	esi, DWORD PTR 8[r12]
	test	DWORD PTR PTRACE_SCX[rip], esi
	je	.L11
.L7:
	mov	esi, DWORD PTR SIGTRAP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	ptracestop@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR TDB_EXEC[rip]
	mov	edx, DWORD PTR TDB_FORK[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	fork_rfppwait@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	syscallret, .-syscallret
	.comm	trap_enotcap,8,8
	.comm	TRAP_CAP,4,4
	.comm	TDP_RFPPWAIT,4,4
	.comm	TDP_FORKING,4,4
	.comm	TDB_SCX,4,4
	.comm	TDB_FORK,4,4
	.comm	TDB_EXEC,4,4
	.comm	S_SCX,4,4
	.comm	SIGTRAP,4,4
	.comm	P_TRACED,4,4
	.comm	PTRACE_SCX,4,4
	.comm	P2_TRAPCAP,4,4
	.comm	KTR_SYSRET,4,4
	.comm	ENOTCAPABLE,4,4
	.comm	ECAPMODE,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_....kernsubr_syscall.c_syscallret.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fork() did not clear TDP_FORKING upon completion\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	syscallret, %function
syscallret:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L29
	ldr	r2, [r0]
	ldr	r3, [r3]
	sub	sp, sp, #16
	tst	r2, r3
	ldr	r3, .L29+4
	moveq	r0, #1
	movne	r0, #0
	ldr	r1, .L29+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	KASSERT
	ldr	r3, .L29+12
	ldr	r5, [r4, #24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L29+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
.L3:
	mov	r0, r4
	ldr	r1, [r4, #16]
	bl	userret
	ldr	r3, .L29+20
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L26
	ldr	r3, .L29+24
	ldr	r7, .L29+28
	ldr	r6, .L29+32
	ldr	r1, [r3]
	ldr	r2, [r4, #20]
	mov	r0, r5
	bl	STOPEVENT
	ldr	r3, [r7]
	ldr	r1, [r6]
	ldr	r2, [r4, #4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L9
.L10:
	ldr	r3, .L29+36
	ldr	r0, [r4]
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	__predict_false
	cmp	r0, #0
	bne	.L27
.L1:
	ldr	r3, .L29+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	IN_CAPABILITY_MODE
	cmp	r0, #0
	beq	.L3
	ldr	r2, .L29+40
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	ldr	r2, .L29+44
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
.L5:
	mov	r0, sp
	bl	ksiginfo_init_trap
	ldr	r2, .L29+48
	ldr	r3, .L29+52
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, [r4, #12]
	str	r0, [sp, #8]
	mov	r1, sp
	mov	r0, r4
	stm	sp, {r2, r3}
	bl	trapsignal
	b	.L3
.L9:
	mov	r0, r5
	bl	PROC_LOCK
	ldr	r1, [r7]
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	ldr	r8, .L29+56
	orr	r3, r3, r1
.L11:
	ldr	r1, [r8]
	mov	r0, r5
	orr	r3, r3, r1
	bic	r3, r2, r3
	str	r3, [r4, #4]
	bl	PROC_UNLOCK
	b	.L10
.L26:
	ldr	r8, .L29+56
	mov	r0, r5
	bl	PROC_LOCK
	ldr	r2, [r8]
	ldr	r3, [r4, #4]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r4, #4]
	bl	PROC_UNLOCK
	ldr	r3, .L29+24
	ldr	r2, [r4, #20]
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r6, .L29+32
	ldr	r7, .L29+28
	bl	STOPEVENT
	mov	r0, r5
	bl	PROC_LOCK
	ldr	r3, [r6]
	ldr	r1, [r7]
	ldr	r2, [r4, #4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L7
	ldr	r1, .L29+60
	ldr	r0, [r5, #8]
	ldr	r1, [r1]
	tst	r0, r1
	beq	.L11
.L7:
	ldr	r3, .L29+48
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	ptracestop
	ldr	r1, [r7]
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	orr	r3, r3, r1
	b	.L11
.L27:
	mov	r0, r4
	bl	fork_rfppwait
	b	.L1
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	TDP_FORKING
	.word	.LC1
	.word	.LC0
	.word	trap_enotcap
	.word	P2_TRAPCAP
	.word	P_TRACED
	.word	S_SCX
	.word	TDB_EXEC
	.word	TDB_FORK
	.word	TDP_RFPPWAIT
	.word	ENOTCAPABLE
	.word	ECAPMODE
	.word	SIGTRAP
	.word	TRAP_CAP
	.word	TDB_SCX
	.word	PTRACE_SCX
	.size	syscallret, .-syscallret
	.comm	trap_enotcap,4,4
	.comm	TRAP_CAP,4,4
	.comm	TDP_RFPPWAIT,4,4
	.comm	TDP_FORKING,4,4
	.comm	TDB_SCX,4,4
	.comm	TDB_FORK,4,4
	.comm	TDB_EXEC,4,4
	.comm	S_SCX,4,4
	.comm	SIGTRAP,4,4
	.comm	P_TRACED,4,4
	.comm	PTRACE_SCX,4,4
	.comm	P2_TRAPCAP,4,4
	.comm	KTR_SYSRET,4,4
	.comm	ENOTCAPABLE,4,4
	.comm	ECAPMODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
