	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CompressFile
_CompressFile:                          ## @CompressFile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movq	_kFileBufferSize@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)
	movq	_BROTLI_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	movq	_BROTLI_TRUE@GOTPCREL(%rip), %r13
	orq	%r15, %rax
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_2:
	movq	24(%rbx), %rdi
	movq	(%r12), %rdx
	movl	20(%rbx), %ecx
	movl	$1, %esi
	callq	_fread
	movq	%rax, -56(%rbp)
	movq	24(%rbx), %rax
	movq	%rax, -72(%rbp)
	movl	20(%rbx), %edi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movl	20(%rbx), %edi
	callq	_feof
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_BROTLI_FALSE@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %r15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BROTLI_OPERATION_FINISH@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_BROTLI_OPERATION_PROCESS@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax), %esi
	movq	$0, (%rsp)
	movq	%r14, %rdi
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-64(%rbp), %r9
	callq	_BrotliEncoderCompressStream
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rdx
	subq	-48(%rbp), %rdx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rdi
	movl	12(%rbx), %ecx
	movl	$1, %esi
	callq	_fwrite
	movl	12(%rbx), %edi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_BrotliEncoderIsFinished
	testq	%rax, %rax
	jne	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax
	orq	%r15, %rax
	je	LBB0_2
	jmp	LBB0_8
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rbx), %edi
	callq	_PrintablePath
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rbx), %edi
	callq	_PrintablePath
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%rbx), %edi
	callq	_PrintablePath
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movq	_BROTLI_FALSE@GOTPCREL(%rip), %r13
LBB0_13:
	movq	(%r13), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kFileBufferSize,8,3            ## @kFileBufferSize
	.comm	_BROTLI_FALSE,8,3               ## @BROTLI_FALSE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read input [%s]: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_BROTLI_TRUE,8,3                ## @BROTLI_TRUE
	.comm	_BROTLI_OPERATION_FINISH,4,2    ## @BROTLI_OPERATION_FINISH
	.comm	_BROTLI_OPERATION_PROCESS,4,2   ## @BROTLI_OPERATION_PROCESS
L_.str.1:                               ## @.str.1
	.asciz	"failed to compress data [%s]\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to write output [%s]: %s\n"

	.no_dead_strip	_CompressFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CompressFile
_CompressFile:                          ; @CompressFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	mov	x8, #0
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x22, _kFileBufferSize@GOTPAGE
Lloh1:
	ldr	x22, [x22, _kFileBufferSize@GOTPAGEOFF]
	ldr	x10, [x22]
	ldr	x9, [x0]
	stp	x9, x10, [sp, #16]
Lloh2:
	adrp	x23, _BROTLI_FALSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BROTLI_FALSE@GOTPAGEOFF]
	ldr	x26, [x23]
Lloh4:
	adrp	x24, _BROTLI_OPERATION_FINISH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BROTLI_OPERATION_FINISH@GOTPAGEOFF]
Lloh6:
	adrp	x25, _BROTLI_OPERATION_PROCESS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BROTLI_OPERATION_PROCESS@GOTPAGEOFF]
Lloh8:
	adrp	x21, _BROTLI_TRUE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BROTLI_TRUE@GOTPAGEOFF]
	orr	x8, x8, x26
	cbnz	x8, LBB0_3
LBB0_1:
	ldr	x0, [x19, #24]
	ldr	x2, [x22]
	ldr	w3, [x19, #20]
	mov	w1, #1
	bl	_fread
	ldr	x8, [x19, #24]
	stp	x8, x0, [sp, #32]
	ldr	w0, [x19, #20]
	bl	_ferror
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_feof
	cmp	x0, #0
	csel	x8, x23, x21, eq
	ldr	x26, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x26, #0
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	add	x2, sp, #40
	add	x3, sp, #32
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x20
	mov	x6, #0
	bl	_BrotliEncoderCompressStream
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	subs	x2, x9, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	ldr	w3, [x19, #12]
	mov	w1, #1
	bl	_fwrite
	ldr	w0, [x19, #12]
	bl	_ferror
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	ldr	x8, [x19]
	stp	x8, x9, [sp, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_BrotliEncoderIsFinished
	cbnz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #40]
	orr	x8, x8, x26
	cbz	x8, LBB0_1
	b	LBB0_3
LBB0_9:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	ldr	w0, [x19, #16]
	bl	_PrintablePath
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	w0, [x19, #16]
	bl	_PrintablePath
	mov	x19, x0
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	bl	_PrintablePath
	mov	x19, x0
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x19
LBB0_13:
	bl	_fprintf
Lloh31:
	adrp	x21, _BROTLI_FALSE@GOTPAGE
Lloh32:
	ldr	x21, [x21, _BROTLI_FALSE@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_kFileBufferSize,8,3            ; @kFileBufferSize
	.comm	_BROTLI_FALSE,8,3               ; @BROTLI_FALSE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read input [%s]: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_BROTLI_TRUE,8,3                ; @BROTLI_TRUE
	.comm	_BROTLI_OPERATION_FINISH,4,2    ; @BROTLI_OPERATION_FINISH
	.comm	_BROTLI_OPERATION_PROCESS,4,2   ; @BROTLI_OPERATION_PROCESS
l_.str.1:                               ; @.str.1
	.asciz	"failed to compress data [%s]\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to write output [%s]: %s\n"

	.no_dead_strip	_CompressFile
.subsections_via_symbols
