	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function indexOfColumn
_indexOfColumn:                         ## @indexOfColumn
	.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	%rsi, %r12
	movq	%rdi, %r14
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strspn
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_PQnfields
	cmpl	%eax, %r15d
	jle	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	callq	_PQnfields
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_15
LBB0_6:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dequote_downcase_identifier
	movq	%r12, %rdi
	callq	_PQnfields
	testl	%eax, %eax
	jle	LBB0_13
## %bb.7:
	movl	$-1, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	%r12, %rdi
	callq	_PQnfields
	cmpl	%eax, %ebx
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_PQfname
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	movl	%ebx, %r15d
	js	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_12:
	cmpl	$-1, %r15d
	jne	LBB0_16
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
LBB0_14:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pg_log_error
LBB0_15:
	movl	$-1, %r15d
LBB0_16:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	decl	%r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789"

L_.str.1:                               ## @.str.1
	.asciz	"\\crosstabview: column number %d is out of range 1..%d"

	.comm	_pset,4,2                       ## @pset
L_.str.2:                               ## @.str.2
	.asciz	"\\crosstabview: ambiguous column name: \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"\\crosstabview: column name not found: \"%s\""

	.no_dead_strip	_indexOfColumn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function indexOfColumn
_indexOfColumn:                         ; @indexOfColumn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strspn
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_atoi
	mov	x20, x0
	subs	w21, w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_PQnfields
	cmp	w20, w0
	b.le	LBB0_15
LBB0_4:
	mov	x0, x19
	bl	_PQnfields
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_5:
Lloh4:
	adrp	x8, _pset@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_dequote_downcase_identifier
	mov	x0, x19
	bl	_PQnfields
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.6:
	mov	w22, #0
	mov	w23, #-1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x23
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	mov	x0, x19
	bl	_PQnfields
	mov	x23, x21
	cmp	w22, w0
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_PQfname
	mov	x1, x0
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x22
	tbnz	w23, #31, LBB0_8
; %bb.11:
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	cmn	w21, #1
	b.ne	LBB0_15
LBB0_13:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_pg_log_error
	mov	w21, #-1
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789"

l_.str.1:                               ; @.str.1
	.asciz	"\\crosstabview: column number %d is out of range 1..%d"

	.comm	_pset,4,2                       ; @pset
l_.str.2:                               ; @.str.2
	.asciz	"\\crosstabview: ambiguous column name: \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"\\crosstabview: column name not found: \"%s\""

	.no_dead_strip	_indexOfColumn
.subsections_via_symbols
