	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQunescapeBytea                ## -- Begin function PQunescapeBytea
	.p2align	4, 0x90
_PQunescapeBytea:                       ## @PQunescapeBytea
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_strlen
	movq	%rax, %r12
	cmpb	$92, (%r13)
	jne	LBB0_14
## %bb.2:
	cmpb	$120, 1(%r13)
	jne	LBB0_14
## %bb.3:
	addq	$-2, %r12
	movq	%r12, %rax
	shrq	%rax
	cmpq	$2, %r12
	movl	$1, %edi
	cmovaeq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_38
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	2(%r13), %dil
	testb	%dil, %dil
	je	LBB0_33
## %bb.5:
	addq	$2, %r13
	movq	%r12, %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %r13
	testb	%dil, %dil
	je	LBB0_34
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r13), %r14
	movzbl	%dil, %edi
	callq	_get_hex
	movzbl	1(%r13), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	cmpb	$-1, %al
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$2, %r13
	callq	_get_hex
	cmpb	$-1, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	shlb	$4, %bl
	orb	%bl, %al
	movb	%al, (%r15)
	incq	%r15
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	(%r13), %edi
	testb	%dil, %dil
	jne	LBB0_8
	jmp	LBB0_34
LBB0_14:
	leaq	1(%r12), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_38
## %bb.15:
	testq	%r12, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_31
## %bb.16:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$2, %rbx
	movb	$92, %cl
	movq	%rbx, %r14
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	movb	%cl, (%rax,%r15)
	incq	%r15
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rbx
	cmpq	%r12, %r14
	jae	LBB0_35
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %ecx
	leaq	1(%rbx), %r14
	cmpb	$92, %cl
	jne	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	(%r13,%r14), %ecx
	cmpb	$92, %cl
	je	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	%cl, %edi
	callq	_ISFIRSTOCTDIGIT
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	2(%rbx,%r13), %edi
	callq	_ISOCTDIGIT
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	3(%rbx,%r13), %edi
	callq	_ISOCTDIGIT
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	1(%r13,%rbx), %edi
	callq	_OCTVAL
	movl	%eax, %r14d
	movzbl	2(%r13,%rbx), %edi
	callq	_OCTVAL
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14,8), %r14d
	movzbl	3(%r13,%rbx), %edi
	addq	$4, %rbx
	callq	_OCTVAL
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14,8), %ecx
	movq	%rbx, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_31:
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_33:
	movq	%r12, %r15
LBB0_34:
	movq	%r12, %rax
	subq	%r12, %r15
LBB0_35:
	leaq	1(%r15), %rsi
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx)
	jmp	LBB0_39
LBB0_37:
	movq	%rbx, %rdi
	callq	_free
LBB0_38:
	xorl	%eax, %eax
LBB0_39:
	addq	$24, %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	_PQunescapeBytea                ; -- Begin function PQunescapeBytea
	.p2align	2
_PQunescapeBytea:                       ; @PQunescapeBytea
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_28
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_strlen
	mov	x22, x0
	ldrb	w8, [x21]
	cmp	w8, #92
	b.ne	LBB0_12
; %bb.2:
	ldrb	w8, [x21, #1]
	cmp	w8, #120
	b.ne	LBB0_12
; %bb.3:
	sub	x8, x22, #2
	lsr	x9, x8, #1
	cmp	x8, #2
	csinc	x0, x9, xzr, hs
	bl	_malloc
	cbz	x0, LBB0_28
; %bb.4:
	mov	x20, x0
	ldrb	w0, [x21, #2]!
	cbz	w0, LBB0_24
; %bb.5:
	mov	x23, x20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x8
	cbz	w0, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_get_hex
	mov	x22, x0
	mov	x8, x21
	ldrb	w0, [x8, #1]!
	cmp	w0, #0
	ccmn	w22, #1, #4, ne
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_get_hex
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	orr	w8, w0, w22, lsl #4
	strb	w8, [x23], #1
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w0, [x21, #2]!
	cbnz	w0, LBB0_7
LBB0_11:
	sub	x24, x23, x20
	b	LBB0_25
LBB0_12:
	add	x0, x22, #1
	bl	_malloc
	cbz	x0, LBB0_28
; %bb.13:
	mov	x20, x0
	mov	x24, #0
	cbz	x22, LBB0_25
; %bb.14:
	mov	x25, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x25, #2
	mov	w8, #92
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	strb	w8, [x20, x24]
	add	x24, x24, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x25, x23
	cmp	x23, x22
	b.hs	LBB0_25
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, x25]
	add	x23, x25, #1
	cmp	w8, #92
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w0, [x21, x23]
	cmp	w0, #92
	b.eq	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_ISFIRSTOCTDIGIT
	cbz	w0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x26, x25, #2
	ldrb	w0, [x21, x26]
	bl	_ISOCTDIGIT
	cbz	w0, LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x27, x25, #3
	ldrb	w0, [x21, x27]
	bl	_ISOCTDIGIT
	cbz	w0, LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w0, [x21, x23]
	bl	_OCTVAL
	mov	x23, x0
	ldrb	w0, [x21, x26]
	bl	_OCTVAL
	add	w26, w0, w23, lsl #3
	add	x23, x25, #4
	ldrb	w0, [x21, x27]
	bl	_OCTVAL
	add	w8, w0, w26, lsl #3
	and	w8, w8, #0xff
	b	LBB0_16
LBB0_24:
	mov	x23, x20
	sub	x24, x20, x20
LBB0_25:
	add	x1, x24, #1
	mov	x0, x20
	bl	_realloc
	cbz	x0, LBB0_27
; %bb.26:
	str	x24, [x19]
	b	LBB0_28
LBB0_27:
	mov	x0, x20
	bl	_free
	mov	x0, #0
LBB0_28:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
