	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_thread_join                ## -- Begin function isc_thread_join
	.p2align	4, 0x90
_isc_thread_join:                       ## @isc_thread_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitForSingleObject
	movq	_WAIT_OBJECT_0@GOTPCREL(%rip), %rcx
	movq	_ISC_R_UNEXPECTED@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	leaq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetExitCodeThread
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
LBB0_4:
	movl	%r15d, %edi
	callq	_CloseHandle
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_WAIT_OBJECT_0,8,3              ## @WAIT_OBJECT_0
	.comm	_ISC_R_UNEXPECTED,4,2           ## @ISC_R_UNEXPECTED
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_thread_join                ; -- Begin function isc_thread_join
	.p2align	2
_isc_thread_join:                       ; @isc_thread_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WaitForSingleObject
Lloh3:
	adrp	x8, _WAIT_OBJECT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAIT_OBJECT_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_GetExitCodeThread
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_CloseHandle
Lloh6:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ISC_R_UNEXPECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISC_R_UNEXPECTED@GOTPAGEOFF]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_WAIT_OBJECT_0,8,3              ; @WAIT_OBJECT_0
	.comm	_ISC_R_UNEXPECTED,4,2           ; @ISC_R_UNEXPECTED
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
