	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_verify_peer_name_matches_certificate ## -- Begin function pq_verify_peer_name_matches_certificate
	.p2align	4, 0x90
_pq_verify_peer_name_matches_certificate: ## @pq_verify_peer_name_matches_certificate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx,%rax,8), %r15
	movl	$0, -36(%rbp)
	movq	$0, -48(%rbp)
	movl	12(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%r15)
	je	LBB0_3
## %bb.4:
	leaq	-36(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pgtls_verify_peer_name_matches_certificate_guts
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	-36(%rbp), %edx
	addq	$8, %r12
	cmpl	$2, %edx
	jl	LBB0_7
## %bb.6:
	decl	%edx
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_libpq_ngettext
	movq	-48(%rbp), %rdx
	movl	-36(%rbp), %ecx
	decl	%ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_10
LBB0_3:
	addq	$8, %r12
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_13
LBB0_7:
	cmpl	$1, %edx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	callq	_libpq_gettext
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	callq	_libpq_gettext
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
LBB0_10:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_free
LBB0_12:
	xorl	%ebx, %ebx
	cmpl	$1, %r14d
	sete	%bl
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verify-full"

L_.str.1:                               ## @.str.1
	.asciz	"host name must be specified for a verified SSL connection\n"

L_.str.2:                               ## @.str.2
	.asciz	"server certificate for \"%s\" (and %d other name) does not match host name \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"server certificate for \"%s\" (and %d other names) does not match host name \"%s\"\n"

L_.str.4:                               ## @.str.4
	.asciz	"server certificate for \"%s\" does not match host name \"%s\"\n"

L_.str.5:                               ## @.str.5
	.asciz	"could not get server's host name from server certificate\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_verify_peer_name_matches_certificate ; -- Begin function pq_verify_peer_name_matches_certificate
	.p2align	2
_pq_verify_peer_name_matches_certificate: ; @pq_verify_peer_name_matches_certificate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x21, [x8, x9, lsl #3]
	stur	wzr, [x29, #-36]
	str	xzr, [sp, #32]
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_15
LBB0_2:
	cbz	x21, LBB0_7
; %bb.3:
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
; %bb.4:
	sub	x1, x29, #36
	add	x2, sp, #32
	mov	x0, x20
	bl	_pgtls_verify_peer_name_matches_certificate_guts
	mov	x19, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldur	w8, [x29, #-36]
	add	x20, x20, #8
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	sub	w2, w8, #1
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_libpq_ngettext
	mov	x1, x0
	ldr	x8, [sp, #32]
	ldur	w9, [x29, #-36]
	sub	w9, w9, #1
	stp	x9, x21, [sp, #8]
	str	x8, [sp]
	b	LBB0_11
LBB0_7:
	add	x19, x20, #8
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	mov	w0, #0
	b	LBB0_15
LBB0_8:
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	ldr	x8, [sp, #32]
	stp	x8, x21, [sp]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
LBB0_11:
	mov	x0, x20
	bl	_printfPQExpBuffer
LBB0_12:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_free
LBB0_14:
	cmp	w19, #1
	cset	w0, eq
LBB0_15:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verify-full"

l_.str.1:                               ; @.str.1
	.asciz	"host name must be specified for a verified SSL connection\n"

l_.str.2:                               ; @.str.2
	.asciz	"server certificate for \"%s\" (and %d other name) does not match host name \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"server certificate for \"%s\" (and %d other names) does not match host name \"%s\"\n"

l_.str.4:                               ; @.str.4
	.asciz	"server certificate for \"%s\" does not match host name \"%s\"\n"

l_.str.5:                               ; @.str.5
	.asciz	"could not get server's host name from server certificate\n"

.subsections_via_symbols
