	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _pdo_pgsql_trim_message
__pdo_pgsql_trim_message:               ## @_pdo_pgsql_trim_message
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.1:
	addl	$-2, %eax
	movb	(%rbx,%rax), %dl
	cmpb	$13, %dl
	je	LBB0_4
## %bb.2:
	cmpb	$10, %dl
	jne	LBB0_3
LBB0_4:
	movl	%ecx, %edx
	cmpb	$46, (%rbx,%rdx)
	cmovnel	%ecx, %eax
	jmp	LBB0_6
LBB0_5:
	cmpl	$2, %eax
	movl	$1, %eax
	je	LBB0_6
	jmp	LBB0_11
LBB0_3:
	movl	%ecx, %eax
LBB0_6:
	movl	%eax, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	-1(%rcx), %rax
	cmpq	$1, %rcx
	movq	%rax, %rcx
	jle	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %eax
	cmpb	$13, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$10, %al
	je	LBB0_9
	jmp	LBB0_11
LBB0_10:
	xorl	%ecx, %ecx
LBB0_11:
	movslq	%ecx, %r12
	leaq	1(%r12), %r15
	leal	2(%r12), %edi
	movl	%r14d, %esi
	callq	_pemalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movb	$0, 1(%r14,%r12)
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__pdo_pgsql_trim_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _pdo_pgsql_trim_message
__pdo_pgsql_trim_message:               ; @_pdo_pgsql_trim_message
	.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	x20, x1
	mov	x19, x0
	bl	_strlen
	sub	w8, w0, #1
	cmp	w0, #3
	b.lt	LBB0_3
; %bb.1:
	sub	w9, w0, #2
	ldrb	w10, [x19, w9, uxtw]
	cmp	w10, #13
	ccmp	w10, #10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldrb	w10, [x19, w8, uxtw]
	cmp	w10, #46
	csel	w8, w9, w8, eq
	b	LBB0_5
LBB0_3:
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.4:
	mov	w8, #1
LBB0_5:
	mov	w8, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	subs	x8, x8, #1
	b.gt	LBB0_6
; %bb.8:
	mov	w8, #0
	b	LBB0_10
LBB0_9:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_10:
	sxtw	x9, w8
	add	x21, x9, #1
	add	w0, w8, #2
	mov	x1, x20
	bl	_pemalloc
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	strb	wzr, [x20, x21]
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__pdo_pgsql_trim_message
.subsections_via_symbols
