	.file	"extr_sqlite3.c_applyAffinity.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	applyAffinity, @function
applyAffinity:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	BYTE PTR SQLITE_AFF_TEXT[rip], sil
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	je	.L18
	cmp	BYTE PTR SQLITE_AFF_NONE[rip], sil
	je	.L1
	cmp	BYTE PTR SQLITE_AFF_INTEGER[rip], sil
	mov	edi, 1
	je	.L6
	cmp	BYTE PTR SQLITE_AFF_REAL[rip], sil
	je	.L6
	xor	edi, edi
	cmp	BYTE PTR SQLITE_AFF_NUMERIC[rip], sil
	sete	dil
.L6:
	call	assert@PLT
	mov	rdi, rbp
	call	applyNumericAffinity@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MEM_Real[rip], eax
	jne	.L19
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR MEM_Real[rip]
	mov	ecx, DWORD PTR [rdi]
	or	eax, DWORD PTR MEM_Int[rip]
	test	DWORD PTR MEM_Str[rip], ecx
	jne	.L3
	test	ecx, eax
	je	.L3
	mov	esi, edx
	call	sqlite3VdbeMemStringify@PLT
	mov	edx, DWORD PTR MEM_Real[rip]
	mov	eax, DWORD PTR MEM_Int[rip]
	mov	ecx, DWORD PTR 0[rbp]
	or	eax, edx
.L3:
	not	eax
	and	eax, ecx
	mov	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	sqlite3VdbeIntegerAffinity@PLT
	.cfi_endproc
.LFE0:
	.size	applyAffinity, .-applyAffinity
	.comm	SQLITE_AFF_TEXT,1,1
	.comm	SQLITE_AFF_REAL,1,1
	.comm	SQLITE_AFF_NUMERIC,1,1
	.comm	SQLITE_AFF_NONE,1,1
	.comm	SQLITE_AFF_INTEGER,1,1
	.comm	MEM_Str,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_Int,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_sqlite3.c_applyAffinity.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	applyAffinity, %function
applyAffinity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L19
	mov	r4, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r1
	beq	.L18
	ldr	r3, .L19+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r1
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L19+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r1
	beq	.L9
	ldr	r3, .L19+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r1
	beq	.L9
	ldr	r3, .L19+16
	ldrb	r0, [r3]	@ zero_extendqisi2
	sub	r0, r0, r1
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L6
.L9:
	mov	r0, #1
.L6:
	bl	assert
	mov	r0, r4
	bl	applyNumericAffinity
	ldr	r3, .L19+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	sqlite3VdbeIntegerAffinity
.L18:
	ldr	r3, .L19+24
	ldr	r6, .L19+20
	ldr	r5, .L19+28
	ldr	lr, [r3]
	ldr	r3, [r0]
	ldr	r1, [r6]
	ldr	ip, [r5]
	tst	r3, lr
	orr	r1, r1, ip
	bne	.L3
	tst	r3, r1
	beq	.L3
	mov	r1, r2
	bl	sqlite3VdbeMemStringify
	ldr	r1, [r6]
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r1, r1, r2
.L3:
	bic	r3, r3, r1
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L20:
	.align	2
.L19:
	.word	SQLITE_AFF_TEXT
	.word	SQLITE_AFF_NONE
	.word	SQLITE_AFF_INTEGER
	.word	SQLITE_AFF_REAL
	.word	SQLITE_AFF_NUMERIC
	.word	MEM_Real
	.word	MEM_Str
	.word	MEM_Int
	.size	applyAffinity, .-applyAffinity
	.comm	SQLITE_AFF_TEXT,1,1
	.comm	SQLITE_AFF_REAL,1,1
	.comm	SQLITE_AFF_NUMERIC,1,1
	.comm	SQLITE_AFF_NONE,1,1
	.comm	SQLITE_AFF_INTEGER,1,1
	.comm	MEM_Str,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_Int,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
