	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_peel_to_type              ## -- Begin function repo_peel_to_type
	.p2align	4, 0x90
_repo_peel_to_type:                     ## @repo_peel_to_type
	.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	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %edx
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.4:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_OBJ_ANY@GOTPCREL(%rip), %r15
	movq	_OBJ_TAG@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rbx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%rbx), %rsi
	movq	%r13, %rdi
	callq	_parse_object
	testl	%eax, %eax
	je	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, (%r15)
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rbx), %rax
	cmpl	%r12d, %eax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, (%r14)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_repo_get_commit_tree
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	movl	%r12d, %edi
	callq	_type_name
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_type_name
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_error
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_ANY,4,2                    ## @OBJ_ANY
	.comm	_OBJ_TAG,8,3                    ## @OBJ_TAG
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s: expected %s type, but the object dereferences to %s type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_peel_to_type              ; -- Begin function repo_peel_to_type
	.p2align	2
_repo_peel_to_type:                     ; @repo_peel_to_type
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	cbz	x1, LBB0_3
; %bb.1:
	cbnz	w21, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
LBB0_3:
	cbz	x19, LBB0_16
; %bb.4:
Lloh0:
	adrp	x24, _OBJ_ANY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OBJ_ANY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _OBJ_TAG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OBJ_TAG@GOTPAGEOFF]
Lloh4:
	adrp	x26, _OBJ_COMMIT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _OBJ_COMMIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x19, [x19]
	cbz	x19, LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x19, #4
	mov	x0, x23
	bl	_parse_object
	cbz	w0, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w8, w22
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19]
	cmp	w8, w22
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x26]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_repo_get_commit_tree
	mov	x19, x0
	cbnz	x0, LBB0_6
	b	LBB0_16
LBB0_13:
	cbz	x20, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_type_name
	mov	x22, x0
	ldr	w0, [x19]
	bl	_type_name
	mov	x4, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_error
LBB0_15:
	mov	x19, #0
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_ANY,4,2                    ; @OBJ_ANY
	.comm	_OBJ_TAG,8,3                    ; @OBJ_TAG
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s: expected %s type, but the object dereferences to %s type"

.subsections_via_symbols
