	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function response_get_location
_response_get_location:                 ## @response_get_location
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_serf_bucket_response_get_headers
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_serf_bucket_headers_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	cmpb	$47, (%rax)
	jne	LBB0_5
## %bb.2:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_uri_parse
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_svn_urlpath__canonicalize
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_apr_uri_unparse
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_svn_path_is_url
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_svn_uri_canonicalize
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Location"

	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.no_dead_strip	_response_get_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function response_get_location
_response_get_location:                 ; @response_get_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	bl	_serf_bucket_response_get_headers
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_serf_bucket_headers_get
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.2:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_apr_uri_parse
Lloh2:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_svn_urlpath__canonicalize
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_apr_uri_unparse
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_svn_path_is_url
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_svn_uri_canonicalize
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Location"

	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.no_dead_strip	_response_get_location
.subsections_via_symbols
