	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_kloop_start_stop
_sync_kloop_start_stop:                 ## @sync_kloop_start_stop
	.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	%rdi, %rbx
	movq	_THRET_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_sync_kloop_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_sync_kloop_stop
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	-12(%rbp), %edi
	leaq	-24(%rbp), %rsi
	callq	_pthread_join
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_5:
	movq	-24(%rbp), %rcx
	movq	_THRET_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	negl	%eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THRET_FAILURE,8,3              ## @THRET_FAILURE
	.comm	_sync_kloop_worker,4,2          ## @sync_kloop_worker
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pthread_create(kloop): %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"pthread_join(kloop): %s\n"

	.comm	_THRET_SUCCESS,8,3              ## @THRET_SUCCESS
	.no_dead_strip	_sync_kloop_start_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_kloop_start_stop
_sync_kloop_start_stop:                 ; @sync_kloop_start_stop
	.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, x0
Lloh0:
	adrp	x8, _THRET_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THRET_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh3:
	adrp	x8, _sync_kloop_worker@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sync_kloop_worker@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbz	w0, LBB0_2
; %bb.1:
	bl	_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_sync_kloop_stop
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [sp, #12]
	mov	x1, sp
	bl	_pthread_join
	cbz	w0, LBB0_5
; %bb.4:
	bl	_strerror
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_5:
	ldr	x8, [sp]
Lloh10:
	adrp	x9, _THRET_SUCCESS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _THRET_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	csetm	w0, ne
LBB0_6:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_THRET_FAILURE,8,3              ; @THRET_FAILURE
	.comm	_sync_kloop_worker,4,2          ; @sync_kloop_worker
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pthread_create(kloop): %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"pthread_join(kloop): %s\n"

	.comm	_THRET_SUCCESS,8,3              ; @THRET_SUCCESS
	.no_dead_strip	_sync_kloop_start_stop
.subsections_via_symbols
