	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_thread_main@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-16(%rbp), %rdi
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	leaq	-12(%rbp), %rdi
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movl	$1, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	-16(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	-12(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	-24(%rbp), %ecx
	movl	$2, %eax
	testl	%ecx, %ecx
	js	LBB0_6
## %bb.4:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	js	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	setne	%al
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_main,4,2                ## @thread_main
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pthread_create failed: %s.\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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _thread_main@GOTPAGE
Lloh1:
	ldr	x19, [x19, _thread_main@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x0, sp, #4
	add	x3, sp, #12
	mov	x1, #0
	bl	_pthread_create
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w2, [x19]
	mov	x0, sp
	add	x3, sp, #8
	mov	x1, #0
	bl	_pthread_create
	cbz	w0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w0, [sp, #4]
	mov	x1, #0
	bl	_pthread_join
	ldr	w0, [sp]
	mov	x1, #0
	bl	_pthread_join
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_6
; %bb.5:
	ldr	w9, [sp, #8]
	mov	w10, #2
	mov	w11, #3
	cmp	w8, w9
	csel	w8, wzr, w11, eq
	tst	w9, #0x80000000
	csel	w0, w10, w8, ne
	b	LBB0_3
LBB0_6:
	mov	w0, #2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_main,4,2                ; @thread_main
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pthread_create failed: %s.\n"

.subsections_via_symbols
