	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_local_file
_send_local_file:                       ## @send_local_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_git_pathdup
	movq	%rax, %r14
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_xmalloc
	movq	%rax, %r13
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_not_found
LBB0_2:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_die_errno
LBB0_4:
	movq	_content_length@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_hdr_int
	movq	_content_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_hdr_str
	movq	_last_modified@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_hdr_date
	movq	%r12, %rdi
	callq	_end_headers
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_die_errno
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_write_or_die
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$8192, %edx                     ## imm = 0x2000
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_xread
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_8
## %bb.9:
	movl	%r15d, %edi
	callq	_close
	movq	%r13, %rdi
	callq	_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"Cannot open '%s': %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Cannot stat '%s'"

	.comm	_content_length,4,2             ## @content_length
	.comm	_content_type,4,2               ## @content_type
	.comm	_last_modified,4,2              ## @last_modified
L_.str.3:                               ## @.str.3
	.asciz	"Cannot read '%s'"

	.no_dead_strip	_send_local_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_local_file
_send_local_file:                       ; @send_local_file
	.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, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_git_pathdup
	mov	x19, x0
	mov	w0, #8192
	bl	_xmalloc
	mov	x20, x0
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_not_found
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fstat
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_die_errno
LBB0_4:
Lloh12:
	adrp	x8, _content_length@GOTPAGE
Lloh13:
	ldr	x8, [x8, _content_length@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x22
	bl	_hdr_int
Lloh15:
	adrp	x8, _content_type@GOTPAGE
Lloh16:
	ldr	x8, [x8, _content_type@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_hdr_str
Lloh18:
	adrp	x8, _last_modified@GOTPAGE
Lloh19:
	ldr	x8, [x8, _last_modified@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x22
	bl	_hdr_date
	mov	x0, x22
	bl	_end_headers
Lloh21:
	adrp	x22, l_.str.3@PAGE
Lloh22:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_die_errno
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x20
	mov	x2, x23
	bl	_write_or_die
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #8192
	bl	_xread
	mov	x23, x0
	tbnz	x0, #63, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x23, LBB0_6
; %bb.9:
	mov	x0, x21
	bl	_close
	mov	x0, x20
	bl	_free
	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
	add	sp, sp, #80
	b	_free
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"Cannot open '%s': %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Cannot stat '%s'"

	.comm	_content_length,4,2             ; @content_length
	.comm	_content_type,4,2               ; @content_type
	.comm	_last_modified,4,2              ; @last_modified
l_.str.3:                               ; @.str.3
	.asciz	"Cannot read '%s'"

	.no_dead_strip	_send_local_file
.subsections_via_symbols
