	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thrd_join                      ## -- Begin function thrd_join
	.p2align	4, 0x90
_thrd_join:                             ## @thrd_join
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_pthread_join
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_thrd_error@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_thrd_success@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	-16(%rbp), %ecx
	movl	%ecx, (%rbx)
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thrd_error,4,2                 ## @thrd_error
	.comm	_thrd_success,4,2               ## @thrd_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thrd_join                      ; -- Begin function thrd_join
	.p2align	2
_thrd_join:                             ; @thrd_join
	.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
	mov	x19, x1
	add	x1, sp, #8
	bl	_pthread_join
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _thrd_error@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thrd_error@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	w8, [x19]
LBB0_4:
Lloh2:
	adrp	x8, _thrd_success@GOTPAGE
Lloh3:
	ldr	x8, [x8, _thrd_success@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_thrd_error,4,2                 ; @thrd_error
	.comm	_thrd_success,4,2               ; @thrd_success
.subsections_via_symbols
