	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_remote_ls_ctx
_handle_remote_ls_ctx:                  ## @handle_remote_ls_ctx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	16(%rbx), %r12
	movq	_DAV_PROPFIND_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movq	8(%rbx), %rdi
	movq	_DAV_PROPFIND_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_20:
	movq	8(%rbx), %rdi
	movq	_DAV_PROPFIND_COLLECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_24
## %bb.21:
	movq	_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_24
LBB0_22:
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	8(%r12), %rdi
	callq	_FREE_AND_NULL
	movl	$0, (%r12)
	jmp	LBB0_24
LBB0_2:
	movq	%r12, %rax
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.3:
	movq	_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rcx
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.4:
	leaq	8(%rcx), %rsi
	callq	_str_end_url_with_slash
	movq	%r12, %rcx
	movq	_PROCESS_DIRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_6
## %bb.5:
	movq	%rcx, %rdi
	callq	*16(%r12)
	movq	%r12, %rcx
LBB0_6:
	movq	8(%rcx), %rdi
	movl	28(%rcx), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.7:
	movq	%r12, %rax
	movl	4(%r12), %esi
	movq	_RECURSIVE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_24
## %bb.8:
	movq	8(%r12), %rdi
	movq	16(%r12), %rdx
	movl	24(%r12), %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_remote_ls                      ## TAILCALL
LBB0_12:
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_20
## %bb.13:
	cmpb	$104, (%r14)
	jne	LBB0_16
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	addq	$2, %rax
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_24
LBB0_16:
	movq	_repo@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_18
## %bb.17:
	movq	(%rax), %rbx
LBB0_18:
	movl	16(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.25:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_9:
	movq	_PROCESS_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx)
	je	LBB0_24
## %bb.10:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*16(%rdi)                       ## TAILCALL
LBB0_19:
	movq	(%r15), %rax
	movslq	16(%rax), %rax
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_xstrdup
	movq	%rax, 8(%r12)
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAV_PROPFIND_RESP,4,2          ## @DAV_PROPFIND_RESP
	.comm	_IS_DIR,4,2                     ## @IS_DIR
	.comm	_PROCESS_DIRS,4,2               ## @PROCESS_DIRS
	.comm	_RECURSIVE,4,2                  ## @RECURSIVE
	.comm	_PROCESS_FILES,4,2              ## @PROCESS_FILES
	.comm	_DAV_PROPFIND_NAME,4,2          ## @DAV_PROPFIND_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"//"

	.comm	_repo,8,3                       ## @repo
L_.str.1:                               ## @.str.1
	.asciz	"Parsed path '%s' does not match url: '%s'"

	.comm	_DAV_PROPFIND_COLLECTION,4,2    ## @DAV_PROPFIND_COLLECTION
	.no_dead_strip	_handle_remote_ls_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_remote_ls_ctx
_handle_remote_ls_ctx:                  ; @handle_remote_ls_ctx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldp	x0, x19, [x0, #8]
Lloh0:
	adrp	x8, _DAV_PROPFIND_RESP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAV_PROPFIND_RESP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	w20, LBB0_5
; %bb.1:
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x0, [x21, #8]
Lloh3:
	adrp	x8, _DAV_PROPFIND_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAV_PROPFIND_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_14
LBB0_3:
	ldr	x0, [x21, #8]
Lloh6:
	adrp	x8, _DAV_PROPFIND_COLLECTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DAV_PROPFIND_COLLECTION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_23
; %bb.4:
Lloh9:
	adrp	x8, _IS_DIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IS_DIR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_23
LBB0_5:
	cbnz	x0, LBB0_23
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_FREE_AND_NULL
	str	wzr, [x19]
	b	LBB0_23
LBB0_7:
	mov	x1, x19
	ldr	x0, [x1, #8]!
	cbz	x0, LBB0_2
; %bb.8:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _IS_DIR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IS_DIR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.9:
	bl	_str_end_url_with_slash
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _PROCESS_DIRS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PROCESS_DIRS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #28]
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.12:
	ldr	w1, [x19, #4]
Lloh18:
	adrp	x8, _RECURSIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RECURSIVE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_23
; %bb.13:
	ldp	x0, x2, [x19, #8]
	ldr	w3, [x19, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_remote_ls
LBB0_14:
	ldr	x20, [x21]
	cbz	x20, LBB0_3
; %bb.15:
	ldrb	w8, [x20]
	cmp	w8, #104
	b.ne	LBB0_18
; %bb.16:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_23
; %bb.17:
	add	x0, x0, #2
	mov	w1, #47
	bl	_strchr
	mov	x20, x0
	cbz	x0, LBB0_23
LBB0_18:
Lloh23:
	adrp	x22, _repo@GOTPAGE
Lloh24:
	ldr	x22, [x22, _repo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	x9, x10, [x8]
	cmp	x10, #0
	csel	x21, x9, x10, eq
	ldr	w2, [x8, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_22
; %bb.19:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_error
LBB0_20:
	ldr	w8, [x19, #4]
Lloh27:
	adrp	x9, _PROCESS_FILES@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PROCESS_FILES@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.21:
	ldr	x1, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
LBB0_22:
	ldr	x8, [x22]
	ldrsw	x8, [x8, #16]
	add	x0, x20, x8
	bl	_xstrdup
	str	x0, [x19, #8]
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DAV_PROPFIND_RESP,4,2          ; @DAV_PROPFIND_RESP
	.comm	_IS_DIR,4,2                     ; @IS_DIR
	.comm	_PROCESS_DIRS,4,2               ; @PROCESS_DIRS
	.comm	_RECURSIVE,4,2                  ; @RECURSIVE
	.comm	_PROCESS_FILES,4,2              ; @PROCESS_FILES
	.comm	_DAV_PROPFIND_NAME,4,2          ; @DAV_PROPFIND_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"//"

	.comm	_repo,8,3                       ; @repo
l_.str.1:                               ; @.str.1
	.asciz	"Parsed path '%s' does not match url: '%s'"

	.comm	_DAV_PROPFIND_COLLECTION,4,2    ; @DAV_PROPFIND_COLLECTION
	.no_dead_strip	_handle_remote_ls_ctx
.subsections_via_symbols
