	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_base64_decode
_pg_base64_decode:                      ## @pg_base64_decode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdx, %rax
	testl	%esi, %esi
	je	LBB0_28
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %r15d
	addq	%rdi, %r15
	movq	_b64lookup@GOTPCREL(%rip), %r8
	movq	_ERROR@GOTPCREL(%rip), %rdi
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %r11
	movabsq	$4294977024, %r12               ## imm = 0x100002600
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %ecx
	cmpq	$61, %rcx
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	btq	%rcx, %r12
	jae	LBB0_4
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_2
	jmp	LBB0_26
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$61, %rcx
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	testl	%r9d, %r9d
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r13d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %edx
	shll	$6, %edx
	shrl	$10, %r10d
	movb	%r10b, (%rax)
	movl	$2, %r9d
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%cl, %esi
	leal	-1(%rsi), %ecx
	movl	$-1, %edx
	cmpb	$125, %cl
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rdx
	movzbl	%sil, %ecx
	movl	(%rdx,%rcx,4), %edx
	testl	%edx, %edx
	jns	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	_b64lookup@GOTPCREL(%rip), %r8
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %r11
	movq	_ERROR@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %r10d
	addl	%edx, %r10d
	movl	%r10d, %edx
	incl	%r13d
	cmpl	$4, %r13d
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %ecx
	shrl	$16, %ecx
	movb	%cl, (%rax)
	testl	%r9d, %r9d
	sete	%cl
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r9d
	jge	LBB0_10
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r10d
	jmp	LBB0_25
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%dh, 1(%rax)
	addq	$2, %rax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r10d, %r10d
	testb	%cl, %cl
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r9d
	jl	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%dl, (%rax)
	incq	%rax
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r9d
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	xorl	%r9d, %r9d
	movq	_b64lookup@GOTPCREL(%rip), %r8
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %r11
	movq	_ERROR@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %r10d
	incl	%r13d
	jmp	LBB0_25
LBB0_26:
	testl	%r13d, %r13d
	je	LBB0_28
## %bb.27:
	movl	(%rdi), %r15d
	movl	(%r11), %edi
	movq	%rax, %rbx
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%rbx, %rax
LBB0_28:
	subl	%r14d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected \"=\" while decoding base64 sequence"

	.comm	_b64lookup,8,3                  ## @b64lookup
L_.str.1:                               ## @.str.1
	.asciz	"invalid symbol \"%c\" while decoding base64 sequence"

L_.str.2:                               ## @.str.2
	.asciz	"invalid base64 end sequence"

L_.str.3:                               ## @.str.3
	.asciz	"Input data is missing padding, is truncated, or is otherwise corrupted."

	.no_dead_strip	_pg_base64_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_base64_decode
_pg_base64_decode:                      ; @pg_base64_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x24, x2
	cbz	w1, LBB0_30
; %bb.1:
	mov	x20, x0
	mov	w15, #0
	mov	w26, #0
	mov	w25, #0
Lloh0:
	adrp	x13, _b64lookup@GOTPAGE
Lloh1:
	ldr	x13, [x13, _b64lookup@GOTPAGEOFF]
Lloh2:
	adrp	x11, _ERROR@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh5:
	ldr	x12, [x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
	add	x28, x0, w1, uxtw
	mov	w22, #1
	mov	x27, #9728
	movk	x27, #1, lsl #32
	mov	x24, x19
Lloh6:
	adrp	x14, l_.str@PAGE
Lloh7:
	add	x14, x14, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x8, x20
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8], #1
	cmp	w9, #61
	b.hi	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	lsl	x10, x22, x9
	tst	x10, x27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x20, x8
	cmp	x8, x28
	b.lo	LBB0_3
	b	LBB0_28
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, #61
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w15, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w23, w9
	sub	w8, w23, #1
	cmp	w8, #125
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x13]
	and	x9, x23, #0xff
	ldr	w21, [x8, x9, lsl #2]
	tbz	w21, #31, LBB0_13
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #-1
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x11]
	stp	w8, w15, [sp, #8]               ; 8-byte Folded Spill
	ldr	w0, [x12]
	bl	_errcode
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_ereport
	ldr	w15, [sp, #12]                  ; 4-byte Folded Reload
Lloh10:
	adrp	x14, l_.str@PAGE
Lloh11:
	add	x14, x14, l_.str@PAGEOFF
Lloh12:
	adrp	x13, _b64lookup@GOTPAGE
Lloh13:
	ldr	x13, [x13, _b64lookup@GOTPAGEOFF]
Lloh14:
	adrp	x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh15:
	ldr	x12, [x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh16:
	adrp	x11, _ERROR@GOTPAGE
Lloh17:
	ldr	x11, [x11, _ERROR@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w21, w25, lsl #6
	add	w26, w26, #1
	cmp	w26, #4
	b.ne	LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w25, #16
	mov	x9, x24
	strb	w8, [x9], #1
	cmp	w15, #0
	cset	w8, eq
	cbz	w15, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w15, #2
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	mov	x24, x9
	tbz	w8, #0, LBB0_21
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w23, w25, #6
	cmp	w26, #2
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, #3
	b.ne	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	lsr	w9, w25, #10
	strb	w9, [x24]
	mov	w15, #2
	mov	x25, x23
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w25, #8
	strb	w9, [x24, #1]
	add	x24, x24, #2
	tbnz	w8, #0, LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w15, #3
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
	mov	w26, #0
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	strb	w25, [x24], #1
	mov	w25, #0
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w15, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x11]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x14
	ldr	w0, [x12]
	mov	x25, x13
	bl	_errcode
	mov	x0, x21
	bl	_errmsg
	mov	x1, x0
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ereport
	mov	x14, x21
	mov	x13, x25
Lloh18:
	adrp	x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh20:
	adrp	x11, _ERROR@GOTPAGE
Lloh21:
	ldr	x11, [x11, _ERROR@GOTPAGEOFF]
	mov	w15, #0
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	mov	x25, x23
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x20, x28
	b.lo	LBB0_2
LBB0_28:
	cbz	w26, LBB0_30
; %bb.29:
	ldr	w20, [x11]
	ldr	w0, [x12]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_30:
	sub	w0, w24, w19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected \"=\" while decoding base64 sequence"

	.comm	_b64lookup,8,3                  ; @b64lookup
l_.str.1:                               ; @.str.1
	.asciz	"invalid symbol \"%c\" while decoding base64 sequence"

l_.str.2:                               ; @.str.2
	.asciz	"invalid base64 end sequence"

l_.str.3:                               ; @.str.3
	.asciz	"Input data is missing padding, is truncated, or is otherwise corrupted."

	.no_dead_strip	_pg_base64_decode
.subsections_via_symbols
