	.file	"extr_test_freezer.c_test_cgfreezer_ptrace.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cg_test_ptrace"
	.text
	.p2align 4
	.type	test_cgfreezer_ptrace, @function
test_cgfreezer_ptrace:
.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
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR KSFT_FAIL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	cg_name@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L2
	mov	rdi, rax
	call	cg_create@PLT
	test	rax, rax
	je	.L11
.L3:
	mov	rdi, rbp
	call	cg_destroy@PLT
.L2:
	mov	rdi, rbp
	call	free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR child_fn[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	cg_run_nowait@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L3
	mov	esi, 1
	mov	rdi, rbp
	call	cg_wait_for_proc_count@PLT
	test	rax, rax
	jne	.L3
	mov	esi, 1
	mov	rdi, rbp
	call	cg_freeze_wait@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR PTRACE_SEIZE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, r13d
	call	ptrace@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR PTRACE_INTERRUPT[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, r13d
	call	ptrace@PLT
	test	rax, rax
	jne	.L3
	xor	esi, esi
	xor	edx, edx
	mov	edi, r13d
	call	waitpid@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	cg_check_frozen@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR PTRACE_GETSIGINFO[rip]
	xor	edx, edx
	lea	rcx, 4[rsp]
	mov	esi, r13d
	call	ptrace@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR PTRACE_DETACH[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, r13d
	call	ptrace@PLT
	test	rax, rax
	jne	.L3
	mov	esi, 1
	mov	rdi, rbp
	call	cg_check_frozen@PLT
	test	rax, rax
	cmove	r12d, DWORD PTR KSFT_PASS[rip]
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_cgfreezer_ptrace, .-test_cgfreezer_ptrace
	.comm	child_fn,4,4
	.comm	PTRACE_SEIZE,4,4
	.comm	PTRACE_INTERRUPT,4,4
	.comm	PTRACE_GETSIGINFO,4,4
	.comm	PTRACE_DETACH,4,4
	.comm	KSFT_PASS,4,4
	.comm	KSFT_FAIL,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_test_freezer.c_test_cgfreezer_ptrace.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cg_test_ptrace\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_cgfreezer_ptrace, %function
test_cgfreezer_ptrace:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	ldr	r2, .L13+4
	sub	sp, sp, #8
	ldr	r1, .L13+8
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r5, [r3]
	bl	cg_name
	subs	r4, r0, #0
	beq	.L2
	bl	cg_create
	subs	r2, r0, #0
	beq	.L11
.L3:
	mov	r0, r4
	bl	cg_destroy
.L2:
	mov	r0, r4
	bl	free
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	cg_run_nowait
	subs	r6, r0, #0
	blt	.L3
	mov	r1, #1
	mov	r0, r4
	bl	cg_wait_for_proc_count
	cmp	r0, #0
	bne	.L3
	mov	r1, #1
	mov	r0, r4
	bl	cg_freeze_wait
	subs	r3, r0, #0
	bne	.L3
	ldr	r2, .L13+16
	mov	r1, r6
	ldr	r0, [r2]
	mov	r2, r3
	bl	ptrace
	subs	r3, r0, #0
	bne	.L3
	ldr	r2, .L13+20
	mov	r1, r6
	ldr	r0, [r2]
	mov	r2, r3
	bl	ptrace
	subs	r2, r0, #0
	bne	.L3
	mov	r1, r2
	mov	r0, r6
	bl	waitpid
	mov	r1, #1
	mov	r0, r4
	bl	cg_check_frozen
	subs	r2, r0, #0
	bne	.L3
	ldr	r3, .L13+24
	mov	r1, r6
	ldr	r0, [r3]
	mov	r3, sp
	bl	ptrace
	subs	r3, r0, #0
	bne	.L3
	ldr	r2, .L13+28
	mov	r1, r6
	ldr	r0, [r2]
	mov	r2, r3
	bl	ptrace
	cmp	r0, #0
	bne	.L3
	mov	r1, #1
	mov	r0, r4
	bl	cg_check_frozen
	cmp	r0, #0
	ldreq	r3, .L13+32
	ldreq	r5, [r3]
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	KSFT_FAIL
	.word	.LC1
	.word	.LC0
	.word	child_fn
	.word	PTRACE_SEIZE
	.word	PTRACE_INTERRUPT
	.word	PTRACE_GETSIGINFO
	.word	PTRACE_DETACH
	.word	KSFT_PASS
	.size	test_cgfreezer_ptrace, .-test_cgfreezer_ptrace
	.comm	child_fn,4,4
	.comm	PTRACE_SEIZE,4,4
	.comm	PTRACE_INTERRUPT,4,4
	.comm	PTRACE_GETSIGINFO,4,4
	.comm	PTRACE_DETACH,4,4
	.comm	KSFT_PASS,4,4
	.comm	KSFT_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
