	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ZopfliCostModelSetFromLiteralCosts
_ZopfliCostModelSetFromLiteralCosts:    ## @ZopfliCostModelSetFromLiteralCosts
	.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	%rdx, %rax
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r12
	movq	24(%rdi), %r13
	leaq	4(%rbx), %r8
	movq	%rsi, %rdi
	movq	%r13, %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_BrotliEstimateBitCostsForLiterals
	movl	$0, (%rbx)
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	leaq	-1(%r13), %rcx
	movl	%r13d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_13
## %bb.2:
	xorps	%xmm0, %xmm0
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_13:
	andq	$-4, %r13
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addss	4(%rbx,%rdx,4), %xmm0
	movss	%xmm0, 4(%rbx,%rdx,4)
	addss	8(%rbx,%rdx,4), %xmm0
	movss	%xmm0, 8(%rbx,%rdx,4)
	addss	12(%rbx,%rdx,4), %xmm0
	movss	%xmm0, 12(%rbx,%rdx,4)
	leaq	4(%rdx), %rcx
	addss	16(%rbx,%rdx,4), %xmm0
	movss	%xmm0, 16(%rbx,%rdx,4)
	movq	%rcx, %rdx
	cmpq	%rcx, %r13
	jne	LBB0_14
LBB0_3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	(%rbx,%rcx,4), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addss	(%rcx,%rdx,4), %xmm0
	movss	%xmm0, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_6:
	movq	_BROTLI_NUM_COMMAND_SYMBOLS@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	11(%rbx), %edi
	callq	_FastLog2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_8
LBB0_9:
	movq	_BROTLI_NUM_DISTANCE_SYMBOLS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	20(%rbx), %edi
	callq	_FastLog2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	%xmm0, (%r15,%rbx,4)
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_11
LBB0_12:
	movl	$11, %edi
	callq	_FastLog2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	%xmm0, 32(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BROTLI_NUM_COMMAND_SYMBOLS,8,3 ## @BROTLI_NUM_COMMAND_SYMBOLS
	.comm	_BROTLI_NUM_DISTANCE_SYMBOLS,8,3 ## @BROTLI_NUM_DISTANCE_SYMBOLS
	.no_dead_strip	_ZopfliCostModelSetFromLiteralCosts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ZopfliCostModelSetFromLiteralCosts
_ZopfliCostModelSetFromLiteralCosts:    ; @ZopfliCostModelSetFromLiteralCosts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, x2
	mov	x19, x0
	ldp	x24, x22, [x0]
	ldp	x23, x20, [x0, #16]
	add	x21, x24, #4
	mov	x0, x1
	mov	x1, x20
	mov	x2, x3
	mov	x3, x8
	mov	x4, x21
	bl	_BrotliEstimateBitCostsForLiterals
	str	wzr, [x24]
	cbz	x20, LBB0_3
; %bb.1:
	movi	d0, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x21]
	fadd	s0, s0, s1
	str	s0, [x21], #4
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_3:
Lloh0:
	adrp	x20, _BROTLI_NUM_COMMAND_SYMBOLS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BROTLI_NUM_COMMAND_SYMBOLS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w21, #11
	bl	_FastLog2
	scvtf	s0, x0
	str	s0, [x23, x21, lsl #2]
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
Lloh2:
	adrp	x20, _BROTLI_NUM_DISTANCE_SYMBOLS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BROTLI_NUM_DISTANCE_SYMBOLS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w21, #20
	bl	_FastLog2
	scvtf	s0, x0
	str	s0, [x22, x21, lsl #2]
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_8
LBB0_9:
	mov	w0, #11
	bl	_FastLog2
	scvtf	s0, x0
	str	s0, [x19, #32]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BROTLI_NUM_COMMAND_SYMBOLS,8,3 ; @BROTLI_NUM_COMMAND_SYMBOLS
	.comm	_BROTLI_NUM_DISTANCE_SYMBOLS,8,3 ; @BROTLI_NUM_DISTANCE_SYMBOLS
	.no_dead_strip	_ZopfliCostModelSetFromLiteralCosts
.subsections_via_symbols
