	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t_readline                     ## -- Begin function t_readline
	.p2align	4, 0x90
_t_readline:                            ## @t_readline
	.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	%rbx
	pushq	%rax
	movl	$4104, %eax                     ## imm = 0x1008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-4128(%rbp), %r14
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_PG_UTF8@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_pg_verify_mbstr
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pg_any_to_server
	cmpq	%r14, %rax
	jne	LBB0_4
## %bb.3:
	leaq	-4128(%rbp), %rdi
	movl	%ebx, %esi
	callq	_pnstrdup
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$4104, %rsp                     ## imm = 0x1008
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_UTF8,4,2                    ## @PG_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t_readline                     ; -- Begin function t_readline
	.p2align	2
_t_readline:                            ; @t_readline
	.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	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x2, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #4096
	bl	_fgets
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_strlen
	mov	x19, x0
Lloh5:
	adrp	x21, _PG_UTF8@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PG_UTF8@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	x2, x19
	mov	w3, #0
	bl	_pg_verify_mbstr
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	x1, x19
	bl	_pg_any_to_server
	cmp	x0, x20
	b.ne	LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	x1, x19
	bl	_pnstrdup
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_UTF8,4,2                    ; @PG_UTF8
.subsections_via_symbols
