	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_to_pack
_stream_to_pack:                        ## @stream_to_pack
	.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
	pushq	%rax
	movl	$32856, %eax                    ## imm = 0x8058
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r12
	movl	%ecx, -32832(%rbp)              ## 4-byte Spill
	movq	%rdx, -32872(%rbp)              ## 8-byte Spill
	movq	%rsi, -32888(%rbp)              ## 8-byte Spill
	movq	%rdi, -32824(%rbp)              ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	24(%rbp), %eax
	movl	%eax, -32828(%rbp)              ## 4-byte Spill
	movq	_pack_compression_level@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32864(%rbp), %rdi
	callq	_git_deflate_init
	leaq	-16432(%rbp), %r13
	movl	$16384, %ebx                    ## imm = 0x4000
	movq	%r13, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_encode_in_pack_object_header
	movl	%eax, %ecx
	addq	%rbp, %rcx
	addq	$-16432, %rcx                   ## imm = 0xBFD0
	movq	%rcx, -32864(%rbp)
	subl	%eax, %ebx
	movl	%ebx, -32856(%rbp)
	leaq	-32816(%rbp), %r15
	xorl	%eax, %eax
	movq	%rax, -32880(%rbp)              ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %ebx
	je	LBB0_26
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -32840(%rbp)
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$16384, %r12                    ## imm = 0x4000
	movl	$16384, %r14d                   ## imm = 0x4000
	cmovbq	%r12, %r14
	movl	-32832(%rbp), %edi              ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_read_in_full
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	16(%rbp), %rsi
	callq	_die_errno
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rbx
	movq	-32880(%rbp), %rbx              ## 8-byte Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	16(%rbp), %rdx
	xorl	%eax, %eax
	callq	_die
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	%r14, %rbx
	movq	%rbx, %rdx
	movq	-32872(%rbp), %rax              ## 8-byte Reload
	subq	(%rax), %rdx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %r14
	cmovbq	%r14, %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-32888(%rbp), %rdi              ## 8-byte Reload
	movq	%r15, %rsi
	callq	*(%rax)
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-32872(%rbp), %rax              ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -32880(%rbp)              ## 8-byte Spill
	movq	%r15, -32848(%rbp)
	movq	%r14, -32840(%rbp)
	subq	%r14, %r12
	leaq	-16432(%rbp), %r13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	testq	%r12, %r12
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-32864(%rbp), %rdi
	callq	_git_deflate
	movl	%eax, %ebx
	cmpl	$0, -32856(%rbp)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %ebx
	jne	LBB0_23
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -32828(%rbp)                ## 4-byte Folded Reload
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-32864(%rbp), %r14
	subq	%r13, %r14
	movq	-32824(%rbp), %rax              ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_pack_size_limit_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-32824(%rbp), %rcx              ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	%r14, %rcx
	cmpq	%rcx, %rax
	jb	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, -32896(%rbp)              ## 8-byte Spill
	movq	%r15, %r12
	movq	-32824(%rbp), %r15              ## 8-byte Reload
	movl	8(%r15), %edi
	leaq	-16432(%rbp), %r13
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_hashwrite
	addq	%r14, (%r15)
	movq	%r12, %r15
	movq	-32896(%rbp), %r12              ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, -32864(%rbp)
	movl	$16384, -32856(%rbp)            ## imm = 0x4000
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	jb	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_25
LBB0_26:
	leaq	-32864(%rbp), %rdi
	callq	_git_deflate_end
	xorl	%eax, %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	addq	$32856, %rsp                    ## imm = 0x8058
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	-32864(%rbp), %rdi
	callq	_git_deflate_abort
	movl	$-1, %eax
	jmp	LBB0_27
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
	.comm	_pack_compression_level,4,2     ## @pack_compression_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read from '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"failed to read %d bytes from '%s'"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_pack_size_limit_cfg,8,3        ## @pack_size_limit_cfg
L_.str.2:                               ## @.str.2
	.asciz	"unexpected deflate failure: %d"

	.no_dead_strip	_stream_to_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_to_pack
_stream_to_pack:                        ; @stream_to_pack
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	w9, #32848
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #80
	stp	x1, x6, [sp, #16]               ; 16-byte Folded Spill
	mov	x26, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _HASH_WRITE_OBJECT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HASH_WRITE_OBJECT@GOTPAGEOFF]
	stur	x8, [x29, #-96]
Lloh7:
	ldr	w8, [x9]
	and	w27, w8, w7
Lloh8:
	adrp	x8, _pack_compression_level@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pack_compression_level@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #32
	bl	_git_deflate_init
	add	x23, sp, #4, lsl #12            ; =16384
	add	x23, x23, #64
	mov	w25, #16384
	add	x0, sp, #4, lsl #12             ; =16384
	add	x0, x0, #64
	mov	w1, #16384
	mov	x2, x26
	mov	x3, x20
	bl	_encode_in_pack_object_header
	mov	x19, #0
	add	x8, x23, w0, uxtw
	str	x8, [sp, #32]
	sub	w8, w25, w0
Lloh11:
	adrp	x23, _Z_FINISH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _Z_FINISH@GOTPAGEOFF]
	str	w8, [sp, #40]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w28, #128
	b.eq	LBB0_23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #56]
	cbnz	x8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #4, lsl #12                ; =16384
	csel	x28, x20, x25, lo
	add	x1, sp, #64
	mov	x0, x21
	mov	x2, x28
	bl	_read_in_full
	mov	x26, x0
	tbnz	x0, #63, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x26, x28
	b.eq	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x28
	bl	_die
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x19, x28, x19
	subs	x8, x19, x8
	b.le	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x28, x8
	csel	x2, x28, x8, lo
	cbz	x2, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh16:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #64
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x19, [x22]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, sp, #64
	stp	x8, x28, [sp, #48]
	sub	x20, x20, x28
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	cmp	x20, #0
	csel	w1, w8, wzr, eq
	add	x0, sp, #32
	bl	_git_deflate
	mov	x28, x0
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w28, #128
	b.ne	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w27, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #32]
	add	x9, sp, #4, lsl #12             ; =16384
	add	x9, x9, #64
	sub	x26, x8, x9
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _pack_size_limit_cfg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pack_size_limit_cfg@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x24]
	add	x9, x9, x26
	cmp	x8, x9
	b.lo	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24, #8]
	add	x1, sp, #4, lsl #12             ; =16384
	add	x1, x1, #64
	mov	x2, x26
	bl	_hashwrite
	ldr	x8, [x24]
	add	x8, x8, x26
	str	x8, [x24]
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, sp, #4, lsl #12             ; =16384
	add	x8, x8, #64
	str	x8, [sp, #32]
	str	w25, [sp, #40]
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w28, #128
	cmp	w8, #3
	b.lo	LBB0_1
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_die
	b	LBB0_1
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_die_errno
	cmp	x26, x28
	b.ne	LBB0_6
	b	LBB0_7
LBB0_23:
	add	x0, sp, #32
	bl	_git_deflate_end
	mov	w0, #0
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	add	x0, sp, #32
	bl	_git_deflate_abort
	mov	w0, #-1
	b	LBB0_24
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
	.comm	_pack_compression_level,4,2     ; @pack_compression_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read from '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"failed to read %d bytes from '%s'"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_pack_size_limit_cfg,8,3        ; @pack_size_limit_cfg
l_.str.2:                               ; @.str.2
	.asciz	"unexpected deflate failure: %d"

	.no_dead_strip	_stream_to_pack
.subsections_via_symbols
