	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pltcl_process_SPI_result
_pltcl_process_SPI_result:              ## @pltcl_process_SPI_result
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leal	-128(%rcx), %eax
	cmpl	$9, %eax
	ja	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movq	_TCL_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	$338, %ecx                      ## imm = 0x152
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.2:
	movl	$652, %ecx                      ## imm = 0x28C
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_Tcl_NewWideIntObj
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_Tcl_SetObjResult
	jmp	LBB0_25
LBB0_5:
	testq	%r12, %r12
	je	LBB0_19
LBB0_6:
	movq	8(%r12), %r15
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testq	%r14, %r14
	je	LBB0_14
## %bb.7:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.8:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12,4), %ecx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_pltcl_set_tuple_values
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_Tcl_EvalObjEx
	movq	_TCL_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%r13d, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_TCL_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.12:
	movq	_TCL_RETURN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_21
## %bb.13:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_14:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movl	(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_pltcl_set_tuple_values
	movq	_TCL_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %ebx
	je	LBB0_24
	jmp	LBB0_25
LBB0_16:
	movl	%ebx, %r13d
	jmp	LBB0_24
LBB0_17:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%r13d, %ebx
	je	LBB0_24
	jmp	LBB0_25
LBB0_18:
	movl	%ecx, %edi
	callq	_SPI_result_code_string
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_Tcl_AppendResult
	movq	_TCL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_19:
	xorl	%edi, %edi
	callq	_Tcl_NewIntObj
	jmp	LBB0_4
LBB0_21:
	movq	_TCL_BREAK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.22:
	movq	_TCL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_23:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r13d, %ebx
	jne	LBB0_25
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_Tcl_NewWideIntObj
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_Tcl_SetObjResult
	movl	%r13d, %ebx
LBB0_25:
	movq	%r12, %rdi
	callq	_SPI_freetuptable
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCL_OK,4,2                     ## @TCL_OK
	.comm	_TCL_CONTINUE,4,2               ## @TCL_CONTINUE
	.comm	_TCL_RETURN,4,2                 ## @TCL_RETURN
	.comm	_TCL_BREAK,4,2                  ## @TCL_BREAK
	.comm	_TCL_ERROR,4,2                  ## @TCL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pltcl: SPI_execute failed: "

	.no_dead_strip	_pltcl_process_SPI_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pltcl_process_SPI_result
_pltcl_process_SPI_result:              ; @pltcl_process_SPI_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x0
	sub	w8, w3, #128
	cmp	w8, #9
	b.hi	LBB0_16
; %bb.1:
	mov	x22, x5
	mov	x24, x2
	mov	x23, x1
Lloh0:
	adrp	x27, _TCL_OK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TCL_OK@GOTPAGEOFF]
	ldr	w26, [x27]
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #338
	tst	w8, w9
	b.ne	LBB0_6
; %bb.2:
	mov	w9, #652
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_Tcl_NewWideIntObj
LBB0_4:
	mov	x1, x0
	mov	x0, x20
	bl	_Tcl_SetObjResult
	b	LBB0_21
LBB0_5:
	cbz	x21, LBB0_19
LBB0_6:
	ldr	x19, [x21, #8]
	ldr	w25, [x21]
	cbz	x24, LBB0_12
; %bb.7:
	cbz	x22, LBB0_14
; %bb.8:
	str	w26, [sp, #4]                   ; 4-byte Folded Spill
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x26, #0
Lloh2:
	adrp	x21, _TCL_CONTINUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TCL_CONTINUE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19, x26, lsl #2]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x26
	mov	x4, x25
	bl	_pltcl_set_tuple_values
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_Tcl_EvalObjEx
	ldr	w28, [x27]
	ldr	w8, [x21]
	cmp	w0, w28
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	cmp	x22, x26
	b.ne	LBB0_9
; %bb.11:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w26, [sp, #4]                   ; 4-byte Folded Reload
	cmp	w26, w28
	b.eq	LBB0_15
	b	LBB0_21
LBB0_12:
	cbz	x22, LBB0_14
; %bb.13:
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	x4, x25
	bl	_pltcl_set_tuple_values
	ldr	w28, [x27]
	cmp	w26, w28
	b.eq	LBB0_15
	b	LBB0_21
LBB0_14:
	mov	x28, x26
LBB0_15:
	mov	x0, x22
	bl	_Tcl_NewWideIntObj
	mov	x1, x0
	mov	x0, x20
	bl	_Tcl_SetObjResult
	mov	x26, x28
	b	LBB0_21
LBB0_16:
	mov	x0, x3
	bl	_SPI_result_code_string
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_Tcl_AppendResult
Lloh6:
	adrp	x8, _TCL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
	b	LBB0_21
LBB0_17:
Lloh9:
	adrp	x8, _TCL_RETURN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCL_RETURN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_20
; %bb.18:
	mov	x26, x0
	cmp	w26, w28
	b.eq	LBB0_15
	b	LBB0_21
LBB0_19:
	mov	w0, #0
	bl	_Tcl_NewIntObj
	b	LBB0_4
LBB0_20:
Lloh12:
	adrp	x8, _TCL_BREAK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCL_BREAK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TCL_ERROR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TCL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w0, w8
	ldr	w26, [sp, #4]                   ; 4-byte Folded Reload
	csel	w26, w26, w9, eq
	cmp	w26, w28
	b.eq	LBB0_15
LBB0_21:
	mov	x0, x21
	bl	_SPI_freetuptable
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TCL_OK,4,2                     ; @TCL_OK
	.comm	_TCL_CONTINUE,4,2               ; @TCL_CONTINUE
	.comm	_TCL_RETURN,4,2                 ; @TCL_RETURN
	.comm	_TCL_BREAK,4,2                  ; @TCL_BREAK
	.comm	_TCL_ERROR,4,2                  ; @TCL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pltcl: SPI_execute failed: "

	.no_dead_strip	_pltcl_process_SPI_result
.subsections_via_symbols
