	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_connection_if_needed
_open_connection_if_needed:             ## @open_connection_if_needed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	cmpq	$1, %r14
	je	LBB0_2
## %bb.1:
	movq	_REQS_PER_CONN@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	cmpl	%r14d, %eax
	jle	LBB0_4
LBB0_2:
	movl	4(%rbx), %edi
	movl	$24, %esi
	callq	_apr_pcalloc
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_serf_bucket_allocator_create
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rdx
	movl	%eax, 16(%rdx)
	movl	$-1, (%rdx)
	movq	%rbx, 8(%rdx)
	movq	(%rcx,%r14,8), %r8
	leaq	4(%r8), %rdi
	movl	20(%rbx), %esi
	movl	4(%rbx), %r10d
	movl	16(%rbx), %edx
	movq	_svn_ra_serf__conn_setup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_svn_ra_serf__conn_closed@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	pushq	%r10
	pushq	%r8
	callq	_serf_connection_create2
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_svn_ra_serf__wrap_err          ## TAILCALL
LBB0_3:
	incl	(%rbx)
LBB0_4:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQS_PER_CONN,4,2              ## @REQS_PER_CONN
	.comm	_svn_ra_serf__conn_setup,4,2    ## @svn_ra_serf__conn_setup
	.comm	_svn_ra_serf__conn_closed,4,2   ## @svn_ra_serf__conn_closed
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_open_connection_if_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_connection_if_needed
_open_connection_if_needed:             ; @open_connection_if_needed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldrsw	x20, [x0]
	cmp	w20, #1
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REQS_PER_CONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQS_PER_CONN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w8, w1, w8
	cmp	w8, w20
	b.le	LBB0_5
LBB0_2:
	ldr	w0, [x19, #4]
	mov	w1, #24
	bl	_apr_pcalloc
	ldr	x8, [x19, #8]
	lsl	x20, x20, #3
	str	x0, [x8, x20]
	ldr	w0, [x19, #4]
	mov	x1, #0
	mov	x2, #0
	bl	_serf_bucket_allocator_create
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20]
	str	w0, [x9, #16]
	mov	w10, #-1
	str	w10, [x9]
	str	x19, [x9, #8]
	ldr	x4, [x8, x20]
	add	x0, x4, #4
Lloh3:
	adrp	x8, _svn_ra_serf__conn_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _svn_ra_serf__conn_setup@GOTPAGEOFF]
	ldp	w2, w1, [x19, #16]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _svn_ra_serf__conn_closed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _svn_ra_serf__conn_closed@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	ldr	w7, [x19, #4]
	mov	x6, x4
	bl	_serf_connection_create2
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_svn_ra_serf__wrap_err
LBB0_4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:
Lloh9:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REQS_PER_CONN,4,2              ; @REQS_PER_CONN
	.comm	_svn_ra_serf__conn_setup,4,2    ; @svn_ra_serf__conn_setup
	.comm	_svn_ra_serf__conn_closed,4,2   ; @svn_ra_serf__conn_closed
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_open_connection_if_needed
.subsections_via_symbols
