	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	cmpl	$2, %edi
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	__SC_NPROCESSORS_ONLN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	testq	%rax, %rax
	js	LBB0_16
## %bb.3:
	cmpq	$1, %rax
	jbe	LBB0_17
## %bb.4:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
	movq	_O_CREAT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	(%rbx,%rcx,8), %rdi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_open
	movq	_outfd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.5:
	movl	$0, -36(%rbp)
	xorl	%eax, %eax
	movq	_go@GOTPCREL(%rip), %r14
	leaq	-36(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	leaq	-32(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	(%r14), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-36(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -36(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.12:
	movl	$0, -36(%rbp)
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cltq
	movl	-32(%rbp,%rax,4), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	testq	%rax, %rax
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-36(%rbp), %ecx
	leal	1(%rcx), %eax
	movl	%eax, -36(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_13
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.10:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_main.cold.1
	jmp	LBB0_9
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	-36(%rbp), %edx
	incl	%edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_optind@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi,%rcx,8), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_NPROCESSORS_ONLN,4,2       ## @_SC_NPROCESSORS_ONLN
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid return from sysconf(_SC_NPROCESSORS_ONLN) : errno (decimal)=%d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Must execute this binary on a multi-processor system\n"

	.comm	_optind,8,3                     ## @optind
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_outfd,4,2                      ## @outfd
L_.str.2:                               ## @.str.2
	.asciz	"zfs_threadsappend: open(%s, O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777) failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"open"

	.comm	_go,4,2                         ## @go
L_.str.4:                               ## @.str.4
	.asciz	"zfs_threadsappend: thr_create(#%d) failed error=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
Lloh3:
	adrp	x8, __SC_NPROCESSORS_ONLN@GOTPAGE
Lloh4:
	ldr	x8, [x8, __SC_NPROCESSORS_ONLN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_sysconf
	tbnz	x0, #63, LBB0_15
; %bb.3:
	cmp	x0, #1
	b.ls	LBB0_16
; %bb.4:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x10, x9, #1
	str	x10, [x8]
	ldr	x0, [x19, x9, lsl #3]
Lloh8:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #511
	bl	_open
Lloh20:
	adrp	x8, _outfd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _outfd@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.5:
	mov	w8, #0
	str	wzr, [sp, #28]
	add	x19, sp, #32
Lloh23:
	adrp	x20, _go@GOTPAGE
Lloh24:
	ldr	x20, [x20, _go@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w8, sxtw #2
	ldr	w2, [x20]
	add	x3, sp, #28
	mov	x1, #0
	bl	_pthread_create
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #28]
	add	w8, w9, #1
	str	w8, [sp, #28]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.8:
	mov	w8, #0
	str	wzr, [sp, #28]
	add	x19, sp, #32
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, w8, sxtw #2]
	mov	x1, #0
	bl	_pthread_join
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [sp, #28]
	add	w8, w9, #1
	str	w8, [sp, #28]
	cmp	w9, #1
	b.lt	LBB0_9
LBB0_11:
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]
	add	w9, w9, #1
	stp	x9, x0, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
LBB0_14:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_15:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_16:
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_17:
	mov	x0, x19
	bl	_main.cold.1
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh46:
	adrp	x8, _stderr@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _optind@GOTPAGE
Lloh50:
	ldr	x9, [x9, _optind@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	ldr	x9, [x0, x9, lsl #3]
	str	x9, [sp]
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_fprintf
Lloh54:
	adrp	x0, l_.str.3@PAGE
Lloh55:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_NPROCESSORS_ONLN,4,2       ; @_SC_NPROCESSORS_ONLN
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid return from sysconf(_SC_NPROCESSORS_ONLN) : errno (decimal)=%d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Must execute this binary on a multi-processor system\n"

	.comm	_optind,8,3                     ; @optind
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_outfd,4,2                      ; @outfd
l_.str.2:                               ; @.str.2
	.asciz	"zfs_threadsappend: open(%s, O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777) failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"open"

	.comm	_go,4,2                         ; @go
l_.str.4:                               ; @.str.4
	.asciz	"zfs_threadsappend: thr_create(#%d) failed error=%d\n"

.subsections_via_symbols
