	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function waitable_counter__wait_for
_waitable_counter__wait_for:            ## @waitable_counter__wait_for
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%rdi), %edi
	callq	_svn_mutex__lock
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	%r14d, (%r13)
	jne	LBB0_1
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_3
LBB0_1:
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	callq	_svn_thread_cond__wait
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_3:
	movl	4(%r13), %edi
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_svn_mutex__unlock
	movl	%eax, %edi
	callq	_SVN_ERR
	testq	%r12, %r12
	je	LBB0_4
LBB0_9:
	movq	(%r15), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	callq	_svn_thread_cond__wait
	movl	%eax, %edi
	callq	_SVN_ERR
	xorl	%ebx, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r13), %edi
	movq	(%r15), %rsi
	callq	_svn_mutex__unlock
	movl	%eax, %edi
	callq	_SVN_ERR
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	callq	_svn_mutex__lock
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	%r14d, (%r13)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_waitable_counter__wait_for
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function waitable_counter__wait_for
_waitable_counter__wait_for:            ; @waitable_counter__wait_for
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x0, #4]
	bl	_svn_mutex__lock
	bl	_SVN_ERR
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	b	LBB0_3
LBB0_2:
	ldp	w1, w0, [x20, #4]
	bl	_svn_thread_cond__wait
	bl	_SVN_ERR
LBB0_3:
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x21, _SVN_NO_ERROR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SVN_NO_ERROR@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_svn_mutex__unlock
	bl	_SVN_ERR
	cbz	x22, LBB0_5
LBB0_4:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x22, _TRUE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	w1, w0, [x20, #4]
	bl	_svn_thread_cond__wait
	bl	_SVN_ERR
	mov	x23, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #4]
	ldr	x1, [x21]
	bl	_svn_mutex__unlock
	bl	_SVN_ERR
	cbnz	x23, LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	bl	_svn_mutex__lock
	bl	_SVN_ERR
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x22]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_waitable_counter__wait_for
.subsections_via_symbols
