	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_branch_name
_find_branch_name:                      ## @find_branch_name
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	8(%rdi), %rcx
	movq	_UNINTERESTING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	$-1, %edx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$24, %rcx
	cmpq	%rbx, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, (%rcx)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	jns	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	jmp	LBB0_2
LBB0_6:
	testl	%edx, %edx
	js	LBB0_12
## %bb.7:
	movq	8(%rdi), %rax
	movl	%edx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rbx
	movq	16(%rax,%rcx,8), %r14
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dwim_ref
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	-32(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	-40(%rbp), %rdi
	callq	_xstrdup
	movq	%rax, %r14
	jmp	LBB0_16
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movq	-32(%rbp), %rdi
	callq	_free
LBB0_17:
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

	.no_dead_strip	_find_branch_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_branch_name
_find_branch_name:                      ; @find_branch_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x11, _UNINTERESTING@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UNINTERESTING@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x11]
	mov	w11, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10]
	tst	w12, w13
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w11, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x9
	b	LBB0_2
LBB0_6:
	tbnz	w11, #31, LBB0_11
; %bb.7:
	ldr	x8, [x0, #8]
	mov	w9, #24
	umaddl	x8, w11, w9, x8
	ldp	x20, x19, [x8, #8]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x20
	bl	_dwim_ref
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x0, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	bl	_skip_prefix
	cbz	x0, LBB0_12
; %bb.9:
	add	x1, sp, #24
	mov	x0, x19
	bl	_oideq
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [sp, #16]
	bl	_xstrdup
	mov	x19, x0
	b	LBB0_13
LBB0_11:
	mov	x19, #0
	b	LBB0_14
LBB0_12:
	mov	x19, #0
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

	.no_dead_strip	_find_branch_name
.subsections_via_symbols
