	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SQLITE_AFF_TEXT@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movq	_MEM_Str@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_MEM_Real@GOTPCREL(%rip), %rcx
	movq	_MEM_Int@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_sqlite3VdbeMemStringify
	movl	(%rbx), %eax
LBB0_4:
	movq	_MEM_Real@GOTPCREL(%rip), %rcx
	movq	_MEM_Int@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	_SQLITE_AFF_NONE@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_SQLITE_AFF_INTEGER@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	sete	%al
	movq	_SQLITE_AFF_REAL@GOTPCREL(%rip), %rcx
	cmpb	%sil, (%rcx)
	sete	%cl
	orb	%al, %cl
	movq	_SQLITE_AFF_NUMERIC@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_applyNumericAffinity
	movq	_MEM_Real@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sqlite3VdbeIntegerAffinity     ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_AFF_TEXT,1,0            ## @SQLITE_AFF_TEXT
	.comm	_MEM_Str,4,2                    ## @MEM_Str
	.comm	_MEM_Real,4,2                   ## @MEM_Real
	.comm	_MEM_Int,4,2                    ## @MEM_Int
	.comm	_SQLITE_AFF_NONE,1,0            ## @SQLITE_AFF_NONE
	.comm	_SQLITE_AFF_INTEGER,1,0         ## @SQLITE_AFF_INTEGER
	.comm	_SQLITE_AFF_REAL,1,0            ## @SQLITE_AFF_REAL
	.comm	_SQLITE_AFF_NUMERIC,1,0         ## @SQLITE_AFF_NUMERIC
	.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	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
	and	w8, w1, #0xff
Lloh0:
	adrp	x9, _SQLITE_AFF_TEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SQLITE_AFF_TEXT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _MEM_Str@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEM_Str@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x20, _MEM_Int@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MEM_Int@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
Lloh7:
	adrp	x9, _MEM_Real@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MEM_Real@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x2
	bl	_sqlite3VdbeMemStringify
	ldr	w8, [x19]
LBB0_4:
Lloh10:
	adrp	x9, _MEM_Real@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEM_Real@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x9, _SQLITE_AFF_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SQLITE_AFF_NONE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh15:
	adrp	x9, _SQLITE_AFF_INTEGER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SQLITE_AFF_INTEGER@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
Lloh17:
	adrp	x9, _SQLITE_AFF_REAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SQLITE_AFF_REAL@GOTPAGEOFF]
	ldrb	w9, [x9]
	ccmp	w9, w8, #4, ne
Lloh19:
	adrp	x9, _SQLITE_AFF_NUMERIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SQLITE_AFF_NUMERIC@GOTPAGEOFF]
	ldrb	w9, [x9]
	ccmp	w9, w8, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_applyNumericAffinity
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _MEM_Real@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MEM_Real@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sqlite3VdbeIntegerAffinity
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_AFF_TEXT,1,0            ; @SQLITE_AFF_TEXT
	.comm	_MEM_Str,4,2                    ; @MEM_Str
	.comm	_MEM_Real,4,2                   ; @MEM_Real
	.comm	_MEM_Int,4,2                    ; @MEM_Int
	.comm	_SQLITE_AFF_NONE,1,0            ; @SQLITE_AFF_NONE
	.comm	_SQLITE_AFF_INTEGER,1,0         ; @SQLITE_AFF_INTEGER
	.comm	_SQLITE_AFF_REAL,1,0            ; @SQLITE_AFF_REAL
	.comm	_SQLITE_AFF_NUMERIC,1,0         ; @SQLITE_AFF_NUMERIC
	.no_dead_strip	_applyAffinity
.subsections_via_symbols
