	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_kloop_conflict
_sync_kloop_conflict:                   ## @sync_kloop_conflict
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_THRET_FAILURE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -48(%rbp)
	leaq	-72(%rbp), %rsi
	callq	_push_csb_option
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	%r14, %rdi
	callq	_port_register_hwall
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.2:
	movq	%r14, %rdi
	callq	_clear_options
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_4:
	movq	%r15, (%r14)
	movq	_sync_kloop_worker@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_pthread_create
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	movl	(%r15), %edx
	leaq	-52(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_pthread_create
	orl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %r15
	movq	%r15, %rsi
	callq	_clock_gettime
	addl	$2, -40(%rbp)
	leaq	-36(%rbp), %rdi
	movq	%r15, %rsi
	callq	_sem_timedwait
	orl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	movq	%r14, %rdi
	callq	_sync_kloop_stop
	orl	%eax, %ebx
	movl	-56(%rbp), %edi
	leaq	-64(%rbp), %rsi
	callq	_pthread_join
	orl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movl	-52(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_pthread_join
	orl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	leaq	-36(%rbp), %rdi
	callq	_sem_destroy
	movq	$0, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.15:
	movq	-64(%rbp), %rax
	movq	_THRET_SUCCESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_18
## %bb.16:
	movq	(%r12), %rsi
	movq	-48(%rbp), %rdx
	jmp	LBB0_17
LBB0_18:
	movq	-48(%rbp), %rdx
	movq	(%r12), %rsi
	cmpq	%rsi, %rdx
	je	LBB0_19
LBB0_17:
	xorq	%rsi, %rax
	xorq	%rcx, %rdx
	xorl	%ebx, %ebx
	orq	%rax, %rdx
	setne	%bl
	negl	%ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_THRET_FAILURE,8,3              ## @THRET_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sem_init() failed: %s\n"

	.comm	_sync_kloop_worker,4,2          ## @sync_kloop_worker
L_.str.1:                               ## @.str.1
	.asciz	"pthread_create(kloop1): %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"pthread_create(kloop2): %s\n"

	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
L_.str.3:                               ## @.str.3
	.asciz	"sem_timedwait() failed: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"pthread_join(kloop1): %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"pthread_join(kloop2): %s %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_kloop_conflict
_sync_kloop_conflict:                   ; @sync_kloop_conflict
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x22, _THRET_FAILURE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _THRET_FAILURE@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	x8, x8, [sp, #32]
	sub	x1, x29, #40
	bl	_push_csb_option
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_port_register_hwall
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.2:
	mov	x0, x19
	bl	_clear_options
	add	x21, sp, #20
	add	x0, sp, #20
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	bl	_strerror
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_19
LBB0_4:
	str	x21, [x19]
Lloh4:
	adrp	x21, _sync_kloop_worker@GOTPAGE
Lloh5:
	ldr	x21, [x21, _sync_kloop_worker@GOTPAGEOFF]
	ldr	w2, [x21]
	sub	x0, x29, #44
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_6:
	ldr	w2, [x21]
	add	x0, sp, #48
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	orr	w20, w0, w20
	cbz	w0, LBB0_8
; %bb.7:
	bl	_strerror
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_8:
Lloh10:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_clock_gettime
	ldr	w8, [sp, #24]
	add	w8, w8, #2
	str	w8, [sp, #24]
	add	x0, sp, #20
	add	x1, sp, #24
	bl	_sem_timedwait
	orr	w20, w20, w0
	cbz	w0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_10:
	mov	x0, x19
	bl	_sync_kloop_stop
	orr	w20, w20, w0
	ldur	w0, [x29, #-44]
	add	x1, sp, #40
	bl	_pthread_join
	orr	w20, w20, w0
	cbz	w0, LBB0_12
; %bb.11:
	bl	_strerror
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_12:
	ldr	w0, [sp, #48]
	add	x1, sp, #32
	bl	_pthread_join
	orr	w20, w20, w0
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
	bl	_strerror
	mov	x1, x0
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_14:
	add	x0, sp, #20
	bl	_sem_destroy
	str	xzr, [x19]
	cbnz	w20, LBB0_19
; %bb.15:
	ldr	x8, [sp, #40]
Lloh22:
	adrp	x9, _THRET_SUCCESS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _THRET_SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
	ldr	x11, [x22]
	ldr	x10, [sp, #32]
	b	LBB0_18
LBB0_17:
	ldr	x10, [sp, #32]
	ldr	x11, [x22]
	cmp	x10, x11
	b.eq	LBB0_20
LBB0_18:
	cmp	x8, x11
	ccmp	x10, x9, #0, eq
	cset	w8, ne
	sbfx	w20, w8, #0, #1
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	mov	w20, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_THRET_FAILURE,8,3              ; @THRET_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sem_init() failed: %s\n"

	.comm	_sync_kloop_worker,4,2          ; @sync_kloop_worker
l_.str.1:                               ; @.str.1
	.asciz	"pthread_create(kloop1): %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"pthread_create(kloop2): %s\n"

	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
l_.str.3:                               ; @.str.3
	.asciz	"sem_timedwait() failed: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"pthread_join(kloop1): %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"pthread_join(kloop2): %s %d\n"

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