	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_upstreams
_set_upstreams:                         ## @set_upstreams
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.1:
	movq	%rsi, %rbx
	movq	_REF_STATUS_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BRANCH_CONFIG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$11, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_install_branch_config
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	24(%rbx), %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r14
	movq	16(%rbx), %rax
	movq	(%rax), %r15
	movq	_RESOLVE_REF_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	leaq	-44(%rbp), %rcx
	callq	_resolve_ref_unsafe
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r12
	testq	%r15, %r15
	je	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	addq	$11, %r12
	addq	$11, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_printf
	jmp	LBB0_16
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_STATUS_OK,8,3              ## @REF_STATUS_OK
	.comm	_REF_STATUS_UPTODATE,8,3        ## @REF_STATUS_UPTODATE
	.comm	_RESOLVE_REF_READING,4,2        ## @RESOLVE_REF_READING
	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

	.comm	_BRANCH_CONFIG_VERBOSE,4,2      ## @BRANCH_CONFIG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Would set upstream of '%s' to '%s' of '%s'\n"

	.no_dead_strip	_set_upstreams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_upstreams
_set_upstreams:                         ; @set_upstreams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_15
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _REF_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _REF_STATUS_OK@GOTPAGEOFF]
Lloh2:
	adrp	x28, _REF_STATUS_UPTODATE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _REF_STATUS_UPTODATE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x23, _RESOLVE_REF_READING@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RESOLVE_REF_READING@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _BRANCH_CONFIG_VERBOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRANCH_CONFIG_VERBOSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x25, #11
	ldr	x8, [x21]
	ldr	x2, [x8]
	mov	x3, x24
	bl	_install_branch_config
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #32]
	cbz	x20, LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x20, #24
	bl	_is_null_oid
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x24, x8, [x20, #8]
	ldr	x26, [x8]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	x0, x26
	mov	x2, #0
	bl	_resolve_ref_unsafe
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	mov	x1, x22
	bl	_starts_with
	cbnz	x0, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x26
	cbz	x26, LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_starts_with
	cmp	x0, #0
	ccmp	x24, #0, #4, ne
	b.eq	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_starts_with
	cbz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w19, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	add	x1, x25, #11
	add	x2, x24, #11
	ldr	x8, [x21]
	ldr	x3, [x8]
	bl	_printf
	b	LBB0_3
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_STATUS_OK,8,3              ; @REF_STATUS_OK
	.comm	_REF_STATUS_UPTODATE,8,3        ; @REF_STATUS_UPTODATE
	.comm	_RESOLVE_REF_READING,4,2        ; @RESOLVE_REF_READING
	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

	.comm	_BRANCH_CONFIG_VERBOSE,4,2      ; @BRANCH_CONFIG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Would set upstream of '%s' to '%s' of '%s'\n"

	.no_dead_strip	_set_upstreams
.subsections_via_symbols
