	.file	"extr_materialui.c_materialui_set_secondary_thumbnail_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	materialui_set_secondary_thumbnail_enable, @function
materialui_set_secondary_thumbnail_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	cmp	eax, 130
	jle	.L16
	cmp	eax, 131
	jne	.L4
	call	materialui_force_enable_secondary_thumbnail@PLT
	mov	DWORD PTR 4[rbx], 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	cmp	eax, 127
	jg	.L17
.L4:
	mov	DWORD PTR 4[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsi]
	mov	DWORD PTR 4[rdi], 0
	test	eax, eax
	je	.L1
	call	materialui_force_enable_secondary_thumbnail@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 48[rbx]
	mov	edx, DWORD PTR 12[rbx]
	lea	eax, [rsi+rsi]
	sub	ecx, eax
	mov	eax, ecx
	lea	ecx, [rdx+rdx]
	sub	eax, ecx
	mov	ecx, DWORD PTR 32[rbx]
	sub	eax, DWORD PTR 40[rbx]
	test	ecx, ecx
	je	.L9
	mov	ecx, DWORD PTR 24[rbx]
.L10:
	mov	edx, DWORD PTR 16[rbx]
	lea	esi, [rdx+rdx]
	add	edx, ecx
	add	edx, edx
	sub	eax, edx
	cmp	esi, eax
	setl	al
	movzx	eax, al
	mov	DWORD PTR 4[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, esi
	sub	edi, edx
	cmp	esi, edx
	cmovg	ecx, edi
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	materialui_set_secondary_thumbnail_enable, .-materialui_set_secondary_thumbnail_enable
	.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_materialui.c_materialui_set_secondary_thumbnail_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	materialui_set_secondary_thumbnail_enable, %function
materialui_set_secondary_thumbnail_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	cmp	r3, #130
	mov	r4, r0
	ble	.L16
	cmp	r3, #131
	bne	.L4
	bl	materialui_force_enable_secondary_thumbnail
	mov	r3, #1
	str	r3, [r4, #4]
	pop	{r4, pc}
.L16:
	cmp	r3, #127
	bgt	.L17
.L4:
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L17:
	mov	ip, #0
	ldr	r3, [r1]
	str	ip, [r0, #4]
	cmp	r3, ip
	popeq	{r4, pc}
	bl	materialui_force_enable_secondary_thumbnail
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #32]
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #24]
	ldr	ip, [r4, #28]
	sub	r3, r3, r0, lsl #1
	sub	r3, r3, r1, lsl #1
	cmp	r2, #0
	sub	r3, r3, ip
	beq	.L9
	ldr	r2, [r4, #20]
.L10:
	ldr	r1, [r4, #16]
	add	r2, r1, r2
	sub	r3, r3, r2, lsl #1
	cmp	r3, r1, lsl #1
	movgt	r3, #1
	movle	r3, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L9:
	cmp	r0, r1
	subgt	r2, r0, r1
	b	.L10
	.size	materialui_set_secondary_thumbnail_enable, .-materialui_set_secondary_thumbnail_enable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
