	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function materialui_set_secondary_thumbnail_enable
_materialui_set_secondary_thumbnail_enable: ## @materialui_set_secondary_thumbnail_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.3:
	movl	$0, 4(%rbx)
	cmpl	$0, (%rsi)
	je	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_materialui_force_enable_secondary_thumbnail
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	48(%rbx), %eax
	movl	8(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	40(%rbx), %r9d
	cmpl	$0, 32(%rbx)
	je	LBB0_7
## %bb.6:
	movl	24(%rbx), %edi
	jmp	LBB0_8
LBB0_1:
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_materialui_force_enable_secondary_thumbnail
	movl	$1, 4(%rbx)
	jmp	LBB0_10
LBB0_9:
	movl	$0, 4(%rbx)
	jmp	LBB0_10
LBB0_7:
	xorl	%r8d, %r8d
	movl	%esi, %edi
	subl	%ecx, %edi
	cmovlel	%r8d, %edi
LBB0_8:
	movl	16(%rbx), %edx
	addl	%esi, %ecx
	addl	%edi, %ecx
	addl	%edx, %ecx
	subl	%r9d, %eax
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	%edx, %edx
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	setg	%cl
	movl	%ecx, 4(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_materialui_set_secondary_thumbnail_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_set_secondary_thumbnail_enable
_materialui_set_secondary_thumbnail_enable: ; @materialui_set_secondary_thumbnail_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_5
; %bb.1:
	str	wzr, [x19, #4]
	ldr	w8, [x1]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_materialui_force_enable_secondary_thumbnail
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w8, [x19, #48]
	ldp	w10, w11, [x19, #8]
	ldr	w9, [x19, #40]
	ldr	w12, [x19, #32]
	cbz	w12, LBB0_8
; %bb.4:
	ldr	w12, [x19, #24]
	b	LBB0_9
LBB0_5:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_materialui_force_enable_secondary_thumbnail
	mov	w8, #1
	b	LBB0_10
LBB0_7:
	str	wzr, [x19, #4]
	b	LBB0_11
LBB0_8:
	subs	w12, w10, w11
	csel	w12, w12, wzr, gt
LBB0_9:
	ldr	w13, [x19, #16]
	add	w10, w11, w10
	add	w10, w10, w12
	add	w10, w10, w13
	sub	w8, w8, w9
	sub	w8, w8, w10, lsl #1
	cmp	w8, w13, lsl #1
	cset	w8, gt
LBB0_10:
	str	w8, [x19, #4]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_materialui_set_secondary_thumbnail_enable
.subsections_via_symbols
