	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applyAffinity
_applyAffinity:                         ## @applyAffinity
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SQLITE_AFF_NUMERIC@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	cmpb	%sil, %al
	jle	LBB0_1
## %bb.6:
	movq	_SQLITE_AFF_TEXT@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jne	LBB0_11
## %bb.7:
	movl	(%rbx), %eax
	movq	_MEM_Str@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.8:
	movq	_MEM_Real@GOTPCREL(%rip), %r12
	movq	_MEM_Int@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r12), %ecx
	orl	%edi, %ecx
	movq	_MEM_IntReal@GOTPCREL(%rip), %r15
	orl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	movl	%edx, %r14d
	andl	%eax, %edi
	callq	_testcase
	movl	(%r12), %edi
	andl	(%rbx), %edi
	callq	_testcase
	movl	(%r15), %edi
	andl	(%rbx), %edi
	callq	_testcase
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_sqlite3VdbeMemStringify
	movl	(%rbx), %eax
LBB0_10:
	movq	_MEM_Real@GOTPCREL(%rip), %rcx
	movq	_MEM_Int@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MEM_IntReal@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%rbx)
	jmp	LBB0_11
LBB0_1:
	movq	_SQLITE_AFF_INTEGER@GOTPCREL(%rip), %rcx
	cmpb	%sil, (%rcx)
	sete	%cl
	movq	_SQLITE_AFF_REAL@GOTPCREL(%rip), %rdx
	cmpb	%sil, (%rdx)
	sete	%dl
	orb	%cl, %dl
	cmpb	%sil, %al
	sete	%al
	orb	%dl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	(%rbx), %eax
	movq	_MEM_Int@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MEM_Real@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3VdbeIntegerAffinity     ## TAILCALL
LBB0_3:
	movq	_MEM_Str@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_applyNumericAffinity           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_AFF_NUMERIC,1,0         ## @SQLITE_AFF_NUMERIC
	.comm	_SQLITE_AFF_INTEGER,1,0         ## @SQLITE_AFF_INTEGER
	.comm	_SQLITE_AFF_REAL,1,0            ## @SQLITE_AFF_REAL
	.comm	_MEM_Int,4,2                    ## @MEM_Int
	.comm	_MEM_Real,4,2                   ## @MEM_Real
	.comm	_MEM_Str,4,2                    ## @MEM_Str
	.comm	_SQLITE_AFF_TEXT,1,0            ## @SQLITE_AFF_TEXT
	.comm	_MEM_IntReal,4,2                ## @MEM_IntReal
	.no_dead_strip	_applyAffinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applyAffinity
_applyAffinity:                         ; @applyAffinity
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	and	w8, w1, #0xff
Lloh0:
	adrp	x9, _SQLITE_AFF_NUMERIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SQLITE_AFF_NUMERIC@GOTPAGEOFF]
Lloh2:
	ldrsb	w9, [x9]
	cmp	w9, w1
	b.le	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _SQLITE_AFF_TEXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SQLITE_AFF_TEXT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _MEM_Str@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEM_Str@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x21, _MEM_IntReal@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MEM_IntReal@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x22, _MEM_Real@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MEM_Real@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MEM_Int@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MEM_Int@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh14:
	ldr	w9, [x9]
	orr	w10, w9, w10
	ldr	w11, [x21]
	orr	w10, w10, w11
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x20, x2
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19]
	ldr	w9, [x22]
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19]
	ldr	w9, [x21]
	and	w0, w9, w8
	bl	_testcase
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_sqlite3VdbeMemStringify
	ldr	w8, [x19]
LBB0_5:
Lloh15:
	adrp	x9, _MEM_Real@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MEM_Real@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MEM_Int@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MEM_Int@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x21]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	and	w9, w9, #0xff
Lloh21:
	adrp	x10, _SQLITE_AFF_INTEGER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SQLITE_AFF_INTEGER@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w10, w8
Lloh23:
	adrp	x10, _SQLITE_AFF_REAL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SQLITE_AFF_REAL@GOTPAGEOFF]
	ldrb	w10, [x10]
	ccmp	w10, w8, #4, ne
	ccmp	w9, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19]
Lloh25:
	adrp	x9, _MEM_Int@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MEM_Int@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh28:
	adrp	x9, _MEM_Real@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MEM_Real@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3VdbeIntegerAffinity
LBB0_10:
Lloh31:
	adrp	x9, _MEM_Str@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MEM_Str@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_applyNumericAffinity
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_AFF_NUMERIC,1,0         ; @SQLITE_AFF_NUMERIC
	.comm	_SQLITE_AFF_INTEGER,1,0         ; @SQLITE_AFF_INTEGER
	.comm	_SQLITE_AFF_REAL,1,0            ; @SQLITE_AFF_REAL
	.comm	_MEM_Int,4,2                    ; @MEM_Int
	.comm	_MEM_Real,4,2                   ; @MEM_Real
	.comm	_MEM_Str,4,2                    ; @MEM_Str
	.comm	_SQLITE_AFF_TEXT,1,0            ; @SQLITE_AFF_TEXT
	.comm	_MEM_IntReal,4,2                ; @MEM_IntReal
	.no_dead_strip	_applyAffinity
.subsections_via_symbols
