	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQfnumber                      ## -- Begin function PQfnumber
	.p2align	4, 0x90
_PQfnumber:                             ## @PQfnumber
	.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
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.2:
	movb	(%r15), %bl
	testb	%bl, %bl
	je	LBB0_31
## %bb.3:
	movq	%rdi, %r12
	cmpq	$0, 8(%rdi)
	je	LBB0_31
## %bb.4:
	leaq	1(%r15), %r13
	cmpb	$34, %bl
	je	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testb	%bl, %bl
	je	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%bl, %edi
	callq	_pg_tolower
	cmpb	%al, %bl
	jne	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r13), %ebx
	incq	%r13
	cmpb	$34, %bl
	jne	LBB0_6
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_11:
	movq	%r15, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_31
## %bb.12:
	movq	%rax, %r15
	movb	(%rax), %al
	movq	%r15, %r13
	testb	%al, %al
	je	LBB0_24
## %bb.13:
	xorl	%ecx, %ecx
	movq	%r15, %r13
	movq	%r15, %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	%al, (%r13)
	incq	%r13
	movl	%edx, %ecx
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %edx
	cmpb	$34, %al
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ecx, %ecx
	cmpb	$34, 1(%rbx)
	jne	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movb	$34, %al
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %ecx
	cmpb	$34, %al
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	%al, %edi
	callq	_pg_tolower
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_24:
	movb	$0, (%r13)
	cmpl	$0, (%r12)
	jle	LBB0_30
## %bb.25:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
LBB0_30:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_31
LBB0_27:
	movq	%r15, %rdi
	callq	_free
LBB0_28:
	movl	%ebx, %r14d
LBB0_31:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQfnumber                      ; -- Begin function PQfnumber
	.p2align	2
_PQfnumber:                             ; @PQfnumber
	.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	w21, #-1
	cbz	x0, LBB0_33
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_33
; %bb.2:
	ldrb	w8, [x20]
	cbz	w8, LBB0_32
; %bb.3:
	mov	x19, x0
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_32
; %bb.4:
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xff
	cmp	w9, #34
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w9, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w21, w8, #0xff
	mov	x0, x21
	bl	_pg_tolower
	cmp	w21, w0, uxtb
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20, x22]
	add	x22, x22, #1
	b	LBB0_5
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_32
; %bb.14:
	mov	x20, x0
	ldrb	w0, [x0]
	mov	x21, x20
	cbz	w0, LBB0_27
; %bb.15:
	mov	w8, #0
	mov	x21, x20
	mov	x22, x20
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w8, #1
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	strb	w0, [x21], #1
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w0, [x22, #1]!
	cbz	w0, LBB0_27
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cbz	w8, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	and	w8, w0, #0xff
	cmp	w8, #34
	b.ne	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x9, x22
	ldrb	w8, [x9, #1]!
	cmp	w8, #34
	b.ne	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w8, #1
	mov	w0, #34
	mov	x22, x9
	b	LBB0_17
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	and	w0, w0, #0xff
	cmp	w0, #34
	b.ne	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w8, #1
	b	LBB0_18
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w8, #0
	b	LBB0_18
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	bl	_pg_tolower
	mov	w8, #0
	b	LBB0_17
LBB0_27:
	strb	wzr, [x21]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.28:
	mov	x21, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_29
LBB0_31:
	mov	x0, x20
	bl	_free
LBB0_32:
	mov	w21, #-1
LBB0_33:
	mov	x0, x21
	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_34:
	mov	x0, x20
	bl	_free
	b	LBB0_33
LBB0_35:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_33
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
