	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fwrite_sha1_file
_fwrite_sha1_file:                      ## @fwrite_sha1_file
	.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	$4120, %eax                     ## imm = 0x1018
	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
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movl	4(%rbx), %edi
	movq	_CURLINFO_HTTP_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_curl_easy_getinfo
	movq	_CURLE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_curl_easy_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_BUG
LBB0_3:
	cmpl	$299, (%rbx)                    ## imm = 0x12B
	movq	%r15, %rsi
	jg	LBB0_14
LBB0_4:
	movq	%r14, -4152(%rbp)               ## 8-byte Spill
	movq	%r14, %r15
	movq	%rsi, -4160(%rbp)               ## 8-byte Spill
	imulq	%rsi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	44(%r13), %edi
	movslq	%ebx, %r14
	leaq	(%r12,%r14), %rsi
	movq	%r15, %rdx
	subq	%r14, %rdx
	callq	_xwrite
	testq	%rax, %rax
	js	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, %ebx
	movslq	%ebx, %rax
	cmpq	%rax, %r15
	ja	LBB0_5
## %bb.10:
	leaq	8(%r13), %r14
	movq	%r15, 8(%r13)
	movq	%r12, 32(%r13)
	leaq	40(%r13), %rbx
	leaq	-4144(%rbp), %r12
	movq	_Z_OK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, 16(%r13)
	movl	$4096, 24(%r13)                 ## imm = 0x1000
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_git_inflate
	movq	%rax, (%r13)
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$4096, %edx                     ## imm = 0x1000
	subl	24(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	je	LBB0_11
LBB0_13:
	movq	-4152(%rbp), %r14               ## 8-byte Reload
	jmp	LBB0_14
LBB0_6:
	movq	%r14, %rax
	movq	-4160(%rbp), %rcx               ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r14
	jmp	LBB0_14
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CURLINFO_HTTP_CODE,4,2         ## @CURLINFO_HTTP_CODE
	.comm	_CURLE_OK,8,3                   ## @CURLE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"curl_easy_getinfo for HTTP code failed: %s"

	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_Z_OK,8,3                       ## @Z_OK
	.no_dead_strip	_fwrite_sha1_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fwrite_sha1_file
_fwrite_sha1_file:                      ; @fwrite_sha1_file
	.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, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x3, #48]
	cbz	x23, LBB0_4
; %bb.1:
	ldr	w0, [x23, #4]
Lloh5:
	adrp	x8, _CURLINFO_HTTP_CODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CURLINFO_HTTP_CODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_curl_easy_getinfo
Lloh8:
	adrp	x8, _CURLE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CURLE_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	bl	_curl_easy_strerror
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_3:
	ldr	w8, [x23]
	cmp	w8, #299
	b.gt	LBB0_11
LBB0_4:
	mov	w8, #0
	mul	x23, x19, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #44]
	sxtw	x24, w8
	add	x1, x21, x24
	sub	x2, x23, x24
	bl	_xwrite
	tbnz	x0, #63, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w24, w0
	cmp	x23, w8, sxtw
	b.hi	LBB0_5
; %bb.7:
	mov	x22, x20
	str	x23, [x22, #8]!
	str	x21, [x22, #24]
	add	x21, x22, #32
	add	x23, sp, #8
	mov	w24, #4096
Lloh13:
	adrp	x25, _Z_SYNC_FLUSH@GOTPAGE
Lloh14:
	ldr	x25, [x25, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh15:
	adrp	x26, _the_hash_algo@GOTPAGE
Lloh16:
	ldr	x26, [x26, _the_hash_algo@GOTPAGEOFF]
Lloh17:
	adrp	x27, _Z_OK@GOTPAGE
Lloh18:
	ldr	x27, [x27, _Z_OK@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [x20, #16]
	str	w24, [x20, #24]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_git_inflate
	str	x0, [x20]
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w9, [x20, #24]
	sub	w2, w24, w9
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_8
	b	LBB0_11
LBB0_10:
	udiv	x19, x24, x22
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CURLINFO_HTTP_CODE,4,2         ; @CURLINFO_HTTP_CODE
	.comm	_CURLE_OK,8,3                   ; @CURLE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"curl_easy_getinfo for HTTP code failed: %s"

	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_Z_OK,8,3                       ; @Z_OK
	.no_dead_strip	_fwrite_sha1_file
.subsections_via_symbols
