	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_merging_uri
_test_merging_uri:                      ## @test_merging_uri
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %edx
	movl	(%rsi), %r8d
	movl	4(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_INFO
	movq	%r14, %rdi
	callq	_vc_uri_clear
	xorl	%eax, %eax
	callq	_vc_uri_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_vc_uri_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_vc_uri_parse
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vc_uri_merge
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_vc_uri_release
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_uri                      ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Base <%s>, relative <%s>, expect <%s>"

L_.str.1:                               ## @.str.1
	.asciz	"*** Failed to allocate base URI structure"

L_.str.2:                               ## @.str.2
	.asciz	"*** Failed to parse base URI structure"

L_.str.3:                               ## @.str.3
	.asciz	"*** Failed to parse relative URI structure"

L_.str.4:                               ## @.str.4
	.asciz	"*** Failed to merge base and relative URIs"

	.no_dead_strip	_test_merging_uri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_merging_uri
_test_merging_uri:                      ; @test_merging_uri
	.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	x19, x0
	ldp	w3, w2, [x1, #4]
	ldr	w4, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_LOG_INFO
	mov	x0, x19
	bl	_vc_uri_clear
	bl	_vc_uri_create
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w1, [x20, #8]
	bl	_vc_uri_parse
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_vc_uri_parse
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_vc_uri_merge
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_vc_uri_release
	ldr	w1, [x20]
	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
	b	_check_uri
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	mov	x0, #0
LBB0_10:
	bl	_LOG_ERROR
	mov	w0, #1
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Base <%s>, relative <%s>, expect <%s>"

l_.str.1:                               ; @.str.1
	.asciz	"*** Failed to allocate base URI structure"

l_.str.2:                               ; @.str.2
	.asciz	"*** Failed to parse base URI structure"

l_.str.3:                               ; @.str.3
	.asciz	"*** Failed to parse relative URI structure"

l_.str.4:                               ; @.str.4
	.asciz	"*** Failed to merge base and relative URIs"

	.no_dead_strip	_test_merging_uri
.subsections_via_symbols
