	.file	"extr_ptrace-vsx.c_ptrace_vsx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fork() failed"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Child's exit status not captured\n"
	.text
	.p2align 4
	.globl	ptrace_vsx
	.type	ptrace_vsx, @function
ptrace_vsx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 8
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR IPC_CREAT[rip]
	mov	edi, DWORD PTR IPC_PRIVATE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	or	edx, 511
	call	shmget@PLT
	mov	ecx, DWORD PTR VEC_MAX[rip]
	mov	DWORD PTR shm_id[rip], eax
	test	ecx, ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	rand@PLT
	mov	rdx, QWORD PTR fp_load[rip]
	add	eax, ebx
	mov	DWORD PTR [rdx+rbx*4], eax
	mov	eax, DWORD PTR VEC_MAX[rip]
	add	rbx, 1
	cmp	eax, ebx
	jg	.L2
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	rand@PLT
	lea	edx, [rbx+rax*2]
	mov	rax, QWORD PTR fp_load_new[rip]
	mov	DWORD PTR [rax+rbx*4], edx
	add	rbx, 1
	cmp	DWORD PTR VEC_MAX[rip], ebx
	jg	.L6
.L5:
	call	fork@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L31
	je	.L32
	mov	edi, DWORD PTR shm_id[rip]
	xor	edx, edx
	xor	esi, esi
	call	shmat@PLT
	mov	QWORD PTR pptr[rip], rax
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR pptr[rip]
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	je	.L9
.L13:
	mov	edi, ebp
	call	trace_vsx@PLT
	test	eax, eax
	jne	.L33
	mov	rdi, QWORD PTR pptr[rip]
	mov	DWORD PTR [rdi], 1
	call	shmdt@PLT
	lea	rdi, 4[rsp]
	call	wait@PLT
	mov	esi, DWORD PTR IPC_RMID[rip]
	mov	edi, DWORD PTR shm_id[rip]
	xor	edx, edx
	mov	ebx, eax
	call	shmctl@PLT
	cmp	ebp, ebx
	je	.L11
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	eax, DWORD PTR TEST_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	vsx@PLT
	mov	eax, DWORD PTR TEST_PASS[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L34
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	esi, DWORD PTR SIGTERM[rip]
	mov	edi, ebp
	call	kill@PLT
	mov	rdi, QWORD PTR pptr[rip]
	call	shmdt@PLT
	mov	esi, DWORD PTR IPC_RMID[rip]
	mov	edi, DWORD PTR shm_id[rip]
	xor	edx, edx
	call	shmctl@PLT
	mov	eax, DWORD PTR TEST_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, DWORD PTR TEST_FAIL[rip]
	jmp	.L1
.L11:
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	rax, rax
	jne	.L35
.L12:
	mov	eax, DWORD PTR TEST_PASS[rip]
	jmp	.L1
.L35:
	mov	edi, DWORD PTR 4[rsp]
	call	WEXITSTATUS@PLT
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR TEST_FAIL[rip]
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ptrace_vsx, .-ptrace_vsx
	.comm	shm_id,4,4
	.comm	pptr,8,8
	.comm	fp_load_new,8,8
	.comm	fp_load,8,8
	.comm	VEC_MAX,4,4
	.comm	TEST_PASS,4,4
	.comm	TEST_FAIL,4,4
	.comm	SIGTERM,4,4
	.comm	IPC_RMID,4,4
	.comm	IPC_PRIVATE,4,4
	.comm	IPC_CREAT,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_ptrace-vsx.c_ptrace_vsx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fork() failed\000"
	.align	2
.LC1:
	.ascii	"Child's exit status not captured\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ptrace_vsx
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptrace_vsx, %function
ptrace_vsx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L36
	push	{r4, r5, r6, r7, lr}
	ldr	r2, [r2]
	ldr	r3, .L36+4
	mvn	r2, r2, lsr #9
	ldr	r0, [r3]
	ldr	r3, .L36+8
	sub	sp, sp, #12
	mov	r1, #8
	mvn	r2, r2, lsl #9
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	shmget
	ldr	r5, .L36+12
	ldr	r6, .L36+16
	ldr	r3, [r5]
	str	r0, [r6]
	cmp	r3, #0
	movgt	r4, #0
	ldrgt	r7, .L36+20
	ble	.L5
.L2:
	bl	rand
	ldr	r3, [r7]
	add	r0, r0, r4
	str	r0, [r3, r4, lsl #2]
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L2
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
	ldr	r7, .L36+24
.L6:
	bl	rand
	ldr	r3, [r7]
	add	r0, r4, r0, lsl #1
	str	r0, [r3, r4, lsl #2]
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L5:
	bl	fork
	subs	r5, r0, #0
	blt	.L31
	beq	.L32
	mov	r2, #0
	ldr	r0, [r6]
	mov	r1, r2
	bl	shmat
	ldr	r3, [r0, #4]
	ldr	r4, .L36+28
	cmp	r3, #0
	str	r0, [r4]
	bne	.L13
.L9:
	ldr	r3, [r4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L9
.L13:
	mov	r0, r5
	bl	trace_vsx
	subs	r7, r0, #0
	bne	.L33
	mov	r3, #1
	ldr	r0, [r4]
	str	r3, [r0]
	bl	shmdt
	mov	r0, sp
	bl	wait
	mov	r4, r0
	ldr	r3, .L36+32
	mov	r2, r7
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	shmctl
	cmp	r5, r4
	beq	.L11
	ldr	r0, .L36+36
	bl	printf
	ldr	r3, .L36+40
	ldr	r0, [r3]
	b	.L1
.L32:
	bl	vsx
	ldr	r3, .L36+44
	ldr	r0, [r3]
.L1:
	ldr	r3, .L36+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L33:
	ldr	r3, .L36+48
	mov	r0, r5
	ldr	r1, [r3]
	bl	kill
	ldr	r0, [r4]
	bl	shmdt
	ldr	r3, .L36+32
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r6]
	bl	shmctl
	ldr	r3, .L36+40
	ldr	r0, [r3]
	b	.L1
.L31:
	ldr	r0, .L36+52
	bl	perror
	ldr	r3, .L36+40
	ldr	r0, [r3]
	b	.L1
.L11:
	ldr	r0, [sp]
	bl	WIFEXITED
	cmp	r0, #0
	bne	.L35
.L12:
	ldr	r3, .L36+44
	ldr	r0, [r3]
	b	.L1
.L35:
	ldr	r0, [sp]
	bl	WEXITSTATUS
	cmp	r0, #0
	beq	.L12
	ldr	r3, .L36+40
	ldr	r0, [r3]
	b	.L1
.L34:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	IPC_CREAT
	.word	IPC_PRIVATE
	.word	.LC2
	.word	VEC_MAX
	.word	shm_id
	.word	fp_load
	.word	fp_load_new
	.word	pptr
	.word	IPC_RMID
	.word	.LC1
	.word	TEST_FAIL
	.word	TEST_PASS
	.word	SIGTERM
	.word	.LC0
	.size	ptrace_vsx, .-ptrace_vsx
	.comm	shm_id,4,4
	.comm	pptr,4,4
	.comm	fp_load_new,4,4
	.comm	fp_load,4,4
	.comm	VEC_MAX,4,4
	.comm	TEST_PASS,4,4
	.comm	TEST_FAIL,4,4
	.comm	SIGTERM,4,4
	.comm	IPC_RMID,4,4
	.comm	IPC_PRIVATE,4,4
	.comm	IPC_CREAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
