	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_head
_set_head:                              ## @set_head
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	movl	$0, -88(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	%eax, -80(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_N_
	leaq	L_.str(%rip), %rsi
	leaq	-84(%rbp), %rdx
	movl	$97, %edi
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -64(%rbp)
	leaq	L_.str.3(%rip), %rdi
	callq	_N_
	leaq	L_.str.2(%rip), %rsi
	leaq	-88(%rbp), %rdx
	movl	$100, %edi
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -60(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -56(%rbp)
	movq	_builtin_remote_sethead_usage@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	leaq	-64(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_parse_options
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdx
	leaq	L_.str.4(%rip), %rsi
	leaq	-72(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_2:
	movl	-84(%rbp), %eax
	movl	-88(%rbp), %ecx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.4:
	cmpl	$2, %ebx
	jne	LBB0_6
## %bb.5:
	movq	8(%r12), %rdi
	callq	_xstrdup
	movq	%rax, %r15
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_33
LBB0_6:
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:
	testl	%ecx, %ecx
	jne	LBB0_21
## %bb.8:
	cmpl	$1, %ebx
	jne	LBB0_21
## %bb.9:
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%r12), %rdi
	movq	_GET_HEAD_NAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_get_remote_ref_states
	movl	-104(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %ebx
	cmpl	$0, -104(%rbp)
	jle	LBB0_17
## %bb.13:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str.7(%rip), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r12), %rdx
	movq	-96(%rbp), %rax
	movq	(%rax,%r14,8), %rcx
	movq	%rbx, %rsi
	callq	_fprintf
	incq	%r14
	movslq	-104(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_14
## %bb.15:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_17
LBB0_21:
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.22:
	testl	%eax, %eax
	jne	LBB0_26
## %bb.23:
	cmpl	$1, %ebx
	jne	LBB0_26
## %bb.24:
	movl	-72(%rbp), %esi
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_delete_ref
	testq	%rax, %rax
	je	LBB0_33
## %bb.25:
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movl	-72(%rbp), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_33
LBB0_26:
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_usage_with_options
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_16:
	movq	-96(%rbp), %rax
	movq	(%rax), %rdi
	callq	_xstrdup
	movq	%rax, %r15
	xorl	%ebx, %ebx
LBB0_17:
	leaq	-104(%rbp), %rdi
	callq	_free_remote_ref_states
	testq	%r15, %r15
	je	LBB0_33
LBB0_19:
	movq	(%r12), %rdx
	leaq	L_.str.9(%rip), %rsi
	leaq	-80(%rbp), %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-80(%rbp), %edi
	callq	_ref_exists
	testl	%eax, %eax
	je	LBB0_20
## %bb.27:
	movl	-72(%rbp), %edi
	movl	-80(%rbp), %esi
	leaq	L_.str.11(%rip), %rdx
	callq	_create_symref
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	leaq	L_.str.12(%rip), %rdi
	callq	__
	movl	-72(%rbp), %esi
	jmp	LBB0_29
LBB0_20:
	leaq	L_.str.10(%rip), %rdi
	callq	__
	movl	-80(%rbp), %esi
LBB0_29:
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	orl	%ebx, %eax
	movl	%eax, %ebx
LBB0_30:
	cmpl	$0, -84(%rbp)
	je	LBB0_32
## %bb.31:
	movq	(%r12), %rsi
	leaq	L_.str.13(%rip), %rdi
	movq	%r15, %rdx
	callq	_printf
LBB0_32:
	movq	%r15, %rdi
	callq	_free
LBB0_33:
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto"

L_.str.1:                               ## @.str.1
	.asciz	"set refs/remotes/<name>/HEAD according to remote"

L_.str.2:                               ## @.str.2
	.asciz	"delete"

L_.str.3:                               ## @.str.3
	.asciz	"delete refs/remotes/<name>/HEAD"

	.comm	_builtin_remote_sethead_usage,4,2 ## @builtin_remote_sethead_usage
L_.str.4:                               ## @.str.4
	.asciz	"refs/remotes/%s/HEAD"

	.comm	_GET_HEAD_NAMES,4,2             ## @GET_HEAD_NAMES
L_.str.5:                               ## @.str.5
	.asciz	"Cannot determine remote HEAD"

L_.str.6:                               ## @.str.6
	.asciz	"Multiple remote HEAD branches. Please choose one explicitly with:"

	.comm	_stderr,4,2                     ## @stderr
L_.str.7:                               ## @.str.7
	.asciz	"  git remote set-head %s %s\n"

	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
L_.str.8:                               ## @.str.8
	.asciz	"Could not delete %s"

L_.str.9:                               ## @.str.9
	.asciz	"refs/remotes/%s/%s"

L_.str.10:                              ## @.str.10
	.asciz	"Not a valid ref: %s"

L_.str.11:                              ## @.str.11
	.asciz	"remote set-head"

L_.str.12:                              ## @.str.12
	.asciz	"Could not setup %s"

L_.str.13:                              ## @.str.13
	.asciz	"%s/HEAD set to %s\n"

	.no_dead_strip	_set_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_head
_set_head:                              ; @set_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #48]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	w8, [sp, #32]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #52
	mov	w0, #97
	bl	_OPT_BOOL
	str	w0, [sp, #56]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #48
	mov	w0, #100
	bl	_OPT_BOOL
	str	w0, [sp, #60]
	bl	_OPT_END
	str	w0, [sp, #64]
Lloh14:
	adrp	x21, _builtin_remote_sethead_usage@GOTPAGE
Lloh15:
	ldr	x21, [x21, _builtin_remote_sethead_usage@GOTPAGEOFF]
	ldr	w4, [x21]
	add	x3, sp, #56
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	w5, #0
	bl	_parse_options
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x2, [x19]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #40
	bl	_strbuf_addf
LBB0_2:
	ldp	w9, w8, [sp, #48]
	cbnz	w8, LBB0_6
; %bb.3:
	cbnz	w9, LBB0_6
; %bb.4:
	cmp	w20, #2
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_xstrdup
	mov	x21, x0
	mov	w20, #0
	cbnz	x21, LBB0_24
	b	LBB0_32
LBB0_6:
	cbz	w8, LBB0_14
; %bb.7:
	cbnz	w9, LBB0_14
; %bb.8:
	cmp	w20, #1
	b.ne	LBB0_14
; %bb.9:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x0, [x19]
Lloh18:
	adrp	x8, _GET_HEAD_NAMES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GET_HEAD_NAMES@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x1, sp, #16
	bl	_get_remote_ref_states
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_20
; %bb.10:
	cmp	w8, #2
	b.lt	LBB0_22
; %bb.11:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_error
	mov	x20, x0
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.12:
	mov	x22, #0
Lloh23:
	adrp	x23, _stderr@GOTPAGE
Lloh24:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh25:
	adrp	x21, l_.str.7@PAGE
Lloh26:
	add	x21, x21, l_.str.7@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	x2, [x19]
	ldr	x8, [sp, #24]
	ldr	x3, [x8, x22, lsl #3]
	mov	x1, x21
	bl	_fprintf
	add	x22, x22, #1
	ldrsw	x8, [sp, #16]
	cmp	x22, x8
	b.lt	LBB0_13
	b	LBB0_21
LBB0_14:
	cbz	w9, LBB0_19
; %bb.15:
	cbnz	w8, LBB0_19
; %bb.16:
	cmp	w20, #1
	b.ne	LBB0_19
; %bb.17:
	ldr	w1, [sp, #40]
Lloh27:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x2, #0
	bl	_delete_ref
	cbz	x0, LBB0_34
; %bb.18:
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	ldr	w8, [sp, #40]
	str	x8, [sp]
	bl	_error
	mov	x20, x0
	b	LBB0_32
LBB0_19:
	ldr	w0, [x21]
	add	x1, sp, #56
	bl	_usage_with_options
	mov	w20, #0
	b	LBB0_32
LBB0_20:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_error
	mov	x20, x0
LBB0_21:
	mov	x21, #0
	b	LBB0_23
LBB0_22:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	bl	_xstrdup
	mov	x21, x0
	mov	w20, #0
LBB0_23:
	add	x0, sp, #16
	bl	_free_remote_ref_states
	cbz	x21, LBB0_32
LBB0_24:
	ldr	x2, [x19]
	str	x21, [sp]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #32
	bl	_strbuf_addf
	ldr	w0, [sp, #32]
	bl	_ref_exists
	cbz	w0, LBB0_27
; %bb.25:
	ldr	w0, [sp, #40]
	ldr	w1, [sp, #32]
Lloh36:
	adrp	x2, l_.str.11@PAGE
Lloh37:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_create_symref
	cbz	x0, LBB0_29
; %bb.26:
Lloh38:
	adrp	x0, l_.str.12@PAGE
Lloh39:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	__
	ldr	w8, [sp, #40]
	b	LBB0_28
LBB0_27:
Lloh40:
	adrp	x0, l_.str.10@PAGE
Lloh41:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	__
	ldr	w8, [sp, #32]
LBB0_28:
	str	x8, [sp]
	bl	_error
	orr	w20, w0, w20
LBB0_29:
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_31
; %bb.30:
	ldr	x1, [x19]
Lloh42:
	adrp	x0, l_.str.13@PAGE
Lloh43:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x2, x21
	bl	_printf
LBB0_31:
	mov	x0, x21
	bl	_free
LBB0_32:
	add	x0, sp, #40
	bl	_strbuf_release
	add	x0, sp, #32
	bl	_strbuf_release
	ldur	x8, [x29, #-56]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.33:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_34:
	mov	w20, #0
	b	LBB0_32
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto"

l_.str.1:                               ; @.str.1
	.asciz	"set refs/remotes/<name>/HEAD according to remote"

l_.str.2:                               ; @.str.2
	.asciz	"delete"

l_.str.3:                               ; @.str.3
	.asciz	"delete refs/remotes/<name>/HEAD"

	.comm	_builtin_remote_sethead_usage,4,2 ; @builtin_remote_sethead_usage
l_.str.4:                               ; @.str.4
	.asciz	"refs/remotes/%s/HEAD"

	.comm	_GET_HEAD_NAMES,4,2             ; @GET_HEAD_NAMES
l_.str.5:                               ; @.str.5
	.asciz	"Cannot determine remote HEAD"

l_.str.6:                               ; @.str.6
	.asciz	"Multiple remote HEAD branches. Please choose one explicitly with:"

	.comm	_stderr,4,2                     ; @stderr
l_.str.7:                               ; @.str.7
	.asciz	"  git remote set-head %s %s\n"

	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
l_.str.8:                               ; @.str.8
	.asciz	"Could not delete %s"

l_.str.9:                               ; @.str.9
	.asciz	"refs/remotes/%s/%s"

l_.str.10:                              ; @.str.10
	.asciz	"Not a valid ref: %s"

l_.str.11:                              ; @.str.11
	.asciz	"remote set-head"

l_.str.12:                              ; @.str.12
	.asciz	"Could not setup %s"

l_.str.13:                              ; @.str.13
	.asciz	"%s/HEAD set to %s\n"

	.no_dead_strip	_set_head
.subsections_via_symbols
