	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_branch_get_upstream            ## -- Begin function branch_get_upstream
	.p2align	4, 0x90
_branch_get_upstream:                   ## @branch_get_upstream
	.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	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	12(%rbx), %edi
	callq	_ref_exists
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_error_buf                      ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	__
	movl	8(%rbx), %edx
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %edx
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_error_buf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD does not point to a branch"

L_.str.1:                               ## @.str.1
	.asciz	"no such branch: '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"no upstream configured for branch '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"upstream branch '%s' not stored as a remote-tracking branch"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_branch_get_upstream            ; -- Begin function branch_get_upstream
	.p2align	2
_branch_get_upstream:                   ; @branch_get_upstream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x8]
	cbnz	x0, LBB0_11
; %bb.4:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	b	LBB0_10
LBB0_5:
	ldr	w0, [x20, #12]
	bl	_ref_exists
	cbz	w0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_error_buf
LBB0_8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	__
	mov	x1, x0
	ldr	w8, [x20, #8]
LBB0_10:
	str	x8, [sp]
	mov	x0, x19
	bl	_error_buf
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD does not point to a branch"

l_.str.1:                               ; @.str.1
	.asciz	"no such branch: '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"no upstream configured for branch '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"upstream branch '%s' not stored as a remote-tracking branch"

.subsections_via_symbols
