	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exprINAffinity
_exprINAffinity:                        ## @exprINAffinity
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	24(%rsi), %r15
	movq	%r15, %rdi
	callq	_sqlite3ExprVectorSize
	movl	%eax, %r14d
	movq	_EP_xIsSelect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %r13
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	8(%rbx), %rax
	movq	_TK_IN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	(%r12), %edi
	leal	1(%r14), %esi
	callq	_sqlite3DbMallocRaw
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.5:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r12,%rbx)
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sqlite3VectorFieldSubexpr
	movq	%rax, %rdi
	callq	_sqlite3ExprAffinity
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %edi
	movsbl	%al, %esi
	callq	_sqlite3CompareAffinity
	jmp	LBB0_8
LBB0_9:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movb	$0, (%r12,%rax)
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_xIsSelect,4,2               ## @EP_xIsSelect
	.comm	_TK_IN,8,3                      ## @TK_IN
	.no_dead_strip	_exprINAffinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exprINAffinity
_exprINAffinity:                        ; @exprINAffinity
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x1, #24]
	mov	x0, x19
	bl	_sqlite3ExprVectorSize
	mov	x20, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _EP_xIsSelect@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EP_xIsSelect@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x23, [x22, #16]
	b	LBB0_3
LBB0_2:
	mov	x23, #0
LBB0_3:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _TK_IN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_IN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w0, [x21]
	add	w1, w20, #1
	bl	_sqlite3DbMallocRaw
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.4:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w24, w20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w1, [x21, x22]
	add	x22, x22, #1
	cmp	x24, x22
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3VectorFieldSubexpr
	bl	_sqlite3ExprAffinity
	mov	x1, x0
	cbz	x23, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_sqlite3CompareAffinity
	mov	x1, x0
	b	LBB0_6
LBB0_9:
	strb	wzr, [x21, w20, sxtw]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_xIsSelect,4,2               ; @EP_xIsSelect
	.comm	_TK_IN,8,3                      ; @TK_IN
	.no_dead_strip	_exprINAffinity
.subsections_via_symbols
