	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hash_fd
_hash_fd:                               ## @hash_fd
	.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, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	-56(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_hash_literally
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	%r14, %rsi
	callq	_die
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_maybe_flush_or_die
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_type_from_string
	movl	%r15d, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_index_fd
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,8,3             ## @the_repository
	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to add %s to database"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to hash %s"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"hash to stdout"

	.no_dead_strip	_hash_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hash_fd
_hash_fd:                               ; @hash_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	add	x1, sp, #8
	bl	_fstat
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbz	w23, LBB0_5
; %bb.2:
	mov	x0, sp
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_hash_literally
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _HASH_WRITE_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w20
	csel	x0, x10, x9, eq
	mov	x1, x19
	bl	_die
LBB0_4:
	mov	x0, sp
	bl	_oid_to_hex
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_maybe_flush_or_die
	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
	add	sp, sp, #80
	ret
LBB0_5:
Lloh14:
	adrp	x8, _the_repository@GOTPAGE
Lloh15:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w23, [x8]
	mov	x0, x22
	bl	_type_from_string
	mov	x4, x0
	mov	x1, sp
	add	x3, sp, #8
	mov	x0, x23
	mov	x2, x21
	mov	x5, x19
	mov	x6, x20
	bl	_index_fd
	cbnz	x0, LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,8,3             ; @the_repository
	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to add %s to database"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to hash %s"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"hash to stdout"

	.no_dead_strip	_hash_fd
.subsections_via_symbols
