	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckMD5Auth
_CheckMD5Auth:                          ## @CheckMD5Auth
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_Db_user_namespace@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_pg_strong_random
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_AUTH_REQ_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$4, %ecx
	callq	_sendAuthRequest
	movq	%r12, %rdi
	callq	_recv_password_packet
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$4, %r8d
	movq	%r14, %r9
	callq	_md5_crypt_verify
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_STATUS_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movq	%r13, %rdi
	callq	_pfree
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Db_user_namespace,8,3          ## @Db_user_namespace
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION,4,2 ## @ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MD5 authentication is not supported when \"db_user_namespace\" is enabled"

	.comm	_LOG,4,2                        ## @LOG
L_.str.1:                               ## @.str.1
	.asciz	"could not generate random MD5 salt"

	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
	.comm	_AUTH_REQ_MD5,4,2               ## @AUTH_REQ_MD5
	.comm	_STATUS_EOF,4,2                 ## @STATUS_EOF
	.no_dead_strip	_CheckMD5Auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckMD5Auth
_CheckMD5Auth:                          ; @CheckMD5Auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _Db_user_namespace@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Db_user_namespace@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	add	x0, sp, #12
	mov	w1, #4
	bl	_pg_strong_random
	cbz	w0, LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _AUTH_REQ_MD5@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUTH_REQ_MD5@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #4
	bl	_sendAuthRequest
	mov	x0, x21
	bl	_recv_password_packet
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	cbz	x20, LBB0_8
; %bb.5:
	ldr	w0, [x21]
	add	x3, sp, #12
	mov	x1, x20
	mov	x2, x22
	mov	w4, #4
	mov	x5, x19
	bl	_md5_crypt_verify
	mov	x19, x0
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _LOG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
Lloh19:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x8, _STATUS_EOF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STATUS_EOF@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_8:
Lloh25:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
LBB0_9:
	mov	x0, x22
	bl	_pfree
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_Db_user_namespace,8,3          ; @Db_user_namespace
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION,4,2 ; @ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MD5 authentication is not supported when \"db_user_namespace\" is enabled"

	.comm	_LOG,4,2                        ; @LOG
l_.str.1:                               ; @.str.1
	.asciz	"could not generate random MD5 salt"

	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
	.comm	_AUTH_REQ_MD5,4,2               ; @AUTH_REQ_MD5
	.comm	_STATUS_EOF,4,2                 ; @STATUS_EOF
	.no_dead_strip	_CheckMD5Auth
.subsections_via_symbols
