	.file	"extr_threadsappend.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid return from sysconf(_SC_NPROCESSORS_ONLN) : errno (decimal)=%d\n"
	.align 8
.LC1:
	.string	"Must execute this binary on a multi-processor system\n"
	.align 8
.LC2:
	.string	"zfs_threadsappend: open(%s, O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777) failed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"open"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"zfs_threadsappend: thr_create(#%d) failed error=%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	je	.L2
	call	usage@PLT
.L2:
	mov	edi, DWORD PTR _SC_NPROCESSORS_ONLN[rip]
	call	sysconf@PLT
	test	rax, rax
	js	.L22
	cmp	rax, 1
	jle	.L4
.L5:
	mov	rax, QWORD PTR optind[rip]
	mov	esi, DWORD PTR O_RDWR[rip]
	or	esi, DWORD PTR O_CREAT[rip]
	or	esi, DWORD PTR O_APPEND[rip]
	lea	rdx, 1[rax]
	mov	rdi, QWORD PTR [rbx+rax*8]
	or	esi, DWORD PTR O_TRUNC[rip]
	mov	QWORD PTR optind[rip], rdx
	mov	edx, 511
	call	open@PLT
	mov	DWORD PTR outfd[rip], eax
	cmp	eax, -1
	je	.L23
.L6:
	mov	DWORD PTR 12[rsp], 0
	xor	eax, eax
	lea	rbp, 12[rsp]
	lea	rbx, 16[rsp]
	lea	r12, .LC4[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 12[rsp]
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, 1
	jg	.L24
.L8:
	cdqe
	mov	edx, DWORD PTR go[rip]
	xor	esi, esi
	mov	rcx, rbp
	lea	rdi, [rbx+rax*4]
	call	pthread_create@PLT
	test	eax, eax
	je	.L7
	mov	ecx, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r12
	lea	edx, 1[rcx]
	mov	ecx, eax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	mov	eax, DWORD PTR 12[rsp]
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, 1
	jle	.L8
.L24:
	mov	DWORD PTR 12[rsp], 0
	xor	eax, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR 12[rsp]
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, 1
	jg	.L9
.L10:
	cdqe
	xor	esi, esi
	mov	edi, DWORD PTR 16[rsp+rax*4]
	call	pthread_join@PLT
	test	rax, rax
	je	.L25
.L9:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, DWORD PTR errno[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L5
.L23:
	mov	rax, QWORD PTR optind[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, QWORD PTR [rbx+rax*8]
	xor	eax, eax
	call	fprintf@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L6
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	outfd,4,4
	.comm	optind,8,8
	.comm	go,4,4
	.comm	errno,4,4
	.comm	_SC_NPROCESSORS_ONLN,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,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_threadsappend.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid return from sysconf(_SC_NPROCESSORS_ONLN) :"
	.ascii	" errno (decimal)=%d\012\000"
	.align	2
.LC1:
	.ascii	"Must execute this binary on a multi-processor syste"
	.ascii	"m\012\000"
	.align	2
.LC2:
	.ascii	"zfs_threadsappend: open(%s, O_RDWR|O_CREAT|O_APPEND"
	.ascii	"|O_TRUNC, 0777) failed\012\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"zfs_threadsappend: thr_create(#%d) failed error=%d\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L28
	sub	sp, sp, #16
	cmp	r0, #2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	bl	usage
.L2:
	ldr	r3, .L28+4
	ldr	r0, [r3]
	bl	sysconf
	cmp	r0, #0
	blt	.L22
	cmp	r0, #1
	ble	.L23
.L5:
	ldr	r2, .L28+8
	ldr	r3, .L28+12
	ldr	r0, .L28+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L28+20
	ldr	r5, .L28+24
	ldr	r0, [r0]
	orr	r3, r3, r1
	ldr	r1, [r2]
	ldr	r2, [r5]
	orr	r3, r3, r0
	orr	r1, r3, r1
	ldr	r0, [r4, r2, lsl #2]
	add	r3, r2, #1
	ldr	r2, .L28+28
	str	r3, [r5]
	bl	open
	ldr	r3, .L28+32
	cmn	r0, #1
	str	r0, [r3]
	beq	.L24
.L6:
	mov	r3, #0
	ldr	r4, .L28+36
	mov	r0, r3
	ldr	r6, .L28+40
	ldr	r5, .L28+44
	str	r3, [sp]
	b	.L8
.L7:
	ldr	r0, [sp]
	add	r0, r0, #1
	cmp	r0, #1
	str	r0, [sp]
	bgt	.L25
.L8:
	add	r3, sp, #4
	add	r0, r3, r0, lsl #2
	mov	r1, #0
	mov	r3, sp
	ldr	r2, [r4]
	bl	pthread_create
	subs	r3, r0, #0
	beq	.L7
	ldr	r2, [sp]
	mov	r1, r5
	ldr	r0, [r6]
	add	r2, r2, #1
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L7
.L25:
	mov	r2, #0
	mov	r3, r2
	str	r2, [sp]
	b	.L10
.L26:
	ldr	r3, [sp]
	add	r3, r3, #1
	cmp	r3, #1
	str	r3, [sp]
	bgt	.L9
.L10:
	add	r2, sp, #16
	add	r3, r2, r3, lsl #2
	mov	r1, #0
	ldr	r0, [r3, #-12]
	bl	pthread_join
	cmp	r0, #0
	beq	.L26
.L9:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L28+48
	ldr	r5, .L28+40
	ldr	r2, [r3]
	ldr	r0, [r5]
	ldr	r1, .L28+52
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, [r5]
	ldr	r1, .L28+56
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L5
.L24:
	ldr	r3, .L28+40
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r2, [r4, r2, lsl #2]
	ldr	r1, .L28+60
	bl	fprintf
	ldr	r0, .L28+64
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L6
.L27:
	bl	__stack_chk_fail
.L23:
	ldr	r5, .L28+40
	b	.L4
.L29:
	.align	2
.L28:
	.word	.LC5
	.word	_SC_NPROCESSORS_ONLN
	.word	O_CREAT
	.word	O_RDWR
	.word	O_APPEND
	.word	O_TRUNC
	.word	optind
	.word	511
	.word	outfd
	.word	go
	.word	stderr
	.word	.LC4
	.word	errno
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.comm	stderr,4,4
	.comm	outfd,4,4
	.comm	optind,4,4
	.comm	go,4,4
	.comm	errno,4,4
	.comm	_SC_NPROCESSORS_ONLN,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
