	.file	"extr_encode.c_ChooseDistanceParams.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ChooseDistanceParams, @function
ChooseDistanceParams:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR MIN_QUALITY_FOR_NONZERO_DISTANCE_PARAMS[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L7
	mov	rax, QWORD PTR BROTLI_MODE_FONT[rip]
	cmp	QWORD PTR 8[rdi], rax
	je	.L5
	mov	esi, DWORD PTR 16[rdi]
	mov	edx, DWORD PTR 20[rdi]
	mov	ecx, esi
	mov	eax, edx
	sar	eax, cl
	and	eax, 15
.L3:
	cmp	DWORD PTR BROTLI_MAX_NPOSTFIX[rip], esi
	jl	.L7
	cmp	DWORD PTR BROTLI_MAX_NDIRECT[rip], edx
	jge	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	xor	edx, edx
	xor	esi, esi
.L2:
	jmp	BrotliInitDistanceParams@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, 6
	mov	edx, 12
	mov	esi, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, esi
	sal	eax, cl
	cmp	eax, edx
	jne	.L7
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ChooseDistanceParams, .-ChooseDistanceParams
	.comm	MIN_QUALITY_FOR_NONZERO_DISTANCE_PARAMS,8,8
	.comm	BROTLI_MODE_FONT,8,8
	.comm	BROTLI_MAX_NPOSTFIX,4,4
	.comm	BROTLI_MAX_NDIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_encode.c_ChooseDistanceParams.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ChooseDistanceParams, %function
ChooseDistanceParams:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L10+4
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	ldr	ip, .L10+8
	cmp	r2, r3
	moveq	r1, #1
	ldrne	r1, [r0, #8]
	ldrne	r2, [r0, #12]
	ldr	ip, [ip]
	asrne	r3, r2, r1
	moveq	r3, #6
	moveq	r2, #12
	andne	r3, r3, #15
	cmp	ip, r1
	bge	.L9
.L7:
	mov	r2, #0
	mov	r1, r2
.L2:
	b	BrotliInitDistanceParams
.L9:
	ldr	ip, .L10+12
	ldr	ip, [ip]
	cmp	ip, r2
	blt	.L7
	cmp	r2, r3, lsl r1
	bne	.L7
	b	.L2
.L11:
	.align	2
.L10:
	.word	MIN_QUALITY_FOR_NONZERO_DISTANCE_PARAMS
	.word	BROTLI_MODE_FONT
	.word	BROTLI_MAX_NPOSTFIX
	.word	BROTLI_MAX_NDIRECT
	.size	ChooseDistanceParams, .-ChooseDistanceParams
	.comm	MIN_QUALITY_FOR_NONZERO_DISTANCE_PARAMS,4,4
	.comm	BROTLI_MODE_FONT,4,4
	.comm	BROTLI_MAX_NPOSTFIX,4,4
	.comm	BROTLI_MAX_NDIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
