	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remote_ref_for_branch          ## -- Begin function remote_ref_for_branch
	.p2align	4, 0x90
_remote_ref_for_branch:                 ## @remote_ref_for_branch
	.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	%rdx, %r14
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pushremote_for_branch
	movq	%rax, %rdi
	callq	_remote_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_apply_refspecs
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	testq	%r14, %r14
	je	LBB0_13
## %bb.10:
	movl	$1, (%r14)
	jmp	LBB0_13
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rax
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	$0, (%r14)
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remote_ref_for_branch          ; -- Begin function remote_ref_for_branch
	.p2align	2
_remote_ref_for_branch:                 ; @remote_ref_for_branch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	cbz	w1, LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, #0
	bl	_pushremote_for_branch
	bl	_remote_get
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	w1, [x20, #8]
	bl	_apply_refspecs
	cbz	x0, LBB0_11
; %bb.5:
	cbz	x19, LBB0_14
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.8:
	cbz	x19, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	ldr	x8, [x20]
	ldr	x0, [x8]
	b	LBB0_14
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	str	wzr, [x19]
LBB0_13:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
