	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_relative_url
_resolve_relative_url:                  ## @resolve_relative_url
	.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	%rsi, %r14
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_get_default_remote
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%r12d, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	8(%r14), %r15
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_strbuf_addf
	movq	%rbx, %rdi
	callq	_free
	movl	-40(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_git_config_get_string
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_xgetcwd
	movq	%rax, -48(%rbp)
LBB0_4:
	cmpl	$3, %r12d
	jne	LBB0_5
## %bb.6:
	movq	16(%r14), %rdx
	jmp	LBB0_7
LBB0_5:
	xorl	%edx, %edx
LBB0_7:
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_relative_url
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resolve-relative-url only accepts one or two arguments"

L_.str.1:                               ## @.str.1
	.asciz	"remote.%s.url"

	.no_dead_strip	_resolve_relative_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_relative_url
_resolve_relative_url:                  ; @resolve_relative_url
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_get_default_remote
	mov	x22, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	and	w8, w20, #0xfffffffe
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	x21, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	mov	x2, x22
	bl	_strbuf_addf
	mov	x0, x22
	bl	_free
	ldr	w0, [sp]
	add	x1, sp, #8
	bl	_git_config_get_string
	cbz	x0, LBB0_4
; %bb.3:
	bl	_xgetcwd
	str	x0, [sp, #8]
LBB0_4:
	cmp	w20, #3
	b.ne	LBB0_6
; %bb.5:
	ldr	x2, [x19, #16]
	b	LBB0_7
LBB0_6:
	mov	x2, #0
LBB0_7:
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_relative_url
	mov	x19, x0
	bl	_puts
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #8]
	bl	_free
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resolve-relative-url only accepts one or two arguments"

l_.str.1:                               ; @.str.1
	.asciz	"remote.%s.url"

	.no_dead_strip	_resolve_relative_url
.subsections_via_symbols
