	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_location_to_lineno     ## -- Begin function plpgsql_location_to_lineno
	.p2align	4, 0x90
_plpgsql_location_to_lineno:            ## @plpgsql_location_to_lineno
	.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
	xorl	%ebx, %ebx
	testl	%edi, %edi
	js	LBB0_8
## %bb.1:
	movq	_scanorig@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	movl	%edi, %eax
	addq	%rax, %r14
	movq	_cur_line_start@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_location_lineno_init
LBB0_4:
	movq	_cur_line_end@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_cur_line_num@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %r14
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movq	%rax, (%r15)
	incl	%ebx
	movl	%ebx, (%r13)
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scanorig,8,3                   ## @scanorig
	.comm	_cur_line_start,8,3             ## @cur_line_start
	.comm	_cur_line_end,8,3               ## @cur_line_end
	.comm	_cur_line_num,4,2               ## @cur_line_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_location_to_lineno     ; -- Begin function plpgsql_location_to_lineno
	.p2align	2
_plpgsql_location_to_lineno:            ; @plpgsql_location_to_lineno
	.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	w19, #0
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _scanorig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scanorig@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	add	x20, x8, w0, uxtw
Lloh3:
	adrp	x21, _cur_line_start@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cur_line_start@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.hs	LBB0_4
; %bb.3:
	bl	_location_lineno_init
LBB0_4:
Lloh5:
	adrp	x22, _cur_line_end@GOTPAGE
Lloh6:
	ldr	x22, [x22, _cur_line_end@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh7:
	adrp	x23, _cur_line_num@GOTPAGE
Lloh8:
	ldr	x23, [x23, _cur_line_num@GOTPAGEOFF]
	ldr	w19, [x23]
	cmp	x0, #0
	ccmp	x20, x0, #0, ne
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	str	x0, [x21]
	add	w19, w19, #1
	str	w19, [x23]
	mov	w1, #10
	bl	_strchr
	str	x0, [x22]
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x20, x0
	b.hi	LBB0_5
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_scanorig,8,3                   ; @scanorig
	.comm	_cur_line_start,8,3             ; @cur_line_start
	.comm	_cur_line_end,8,3               ; @cur_line_end
	.comm	_cur_line_num,4,2               ; @cur_line_num
.subsections_via_symbols
