	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_verify_peer_name_matches_certificate_name ## -- Begin function pq_verify_peer_name_matches_certificate_name
	.p2align	4, 0x90
_pq_verify_peer_name_matches_certificate_name: ## @pq_verify_peer_name_matches_certificate_name
	.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, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %rdx
	movq	(%rdx,%rax,8), %r12
	movq	$0, (%rcx)
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%r12)
	je	LBB0_2
## %bb.4:
	movq	%rsi, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	1(%r13), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movb	$0, (%r15,%r13)
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%r13, %rax
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pg_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wildcard_certificate_match
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_11
LBB0_2:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addq	$8, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	movq	%r15, %rdi
	callq	_free
	addq	$8, %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	movl	$1, %eax
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host name must be specified\n"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

L_.str.2:                               ## @.str.2
	.asciz	"SSL certificate's name contains embedded null\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_name ; -- Begin function pq_verify_peer_name_matches_certificate_name
	.p2align	2
_pq_verify_peer_name_matches_certificate_name: ; @pq_verify_peer_name_matches_certificate_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x21, [x8, x9, lsl #3]
	str	xzr, [x3]
	cbz	x21, LBB0_6
; %bb.1:
	ldrb	w8, [x21]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	add	x0, x2, #1
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x20, x23]
	mov	x0, x20
	bl	_strlen
	cmp	x0, x23
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_pg_strcasecmp
	cbz	x0, LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_wildcard_certificate_match
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_12
LBB0_6:
	add	x19, x22, #8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	mov	w0, #-1
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x19, x22, #8
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_free
	add	x19, x22, #8
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_11:
	mov	w0, #1
LBB0_12:
	str	x20, [x19]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host name must be specified\n"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

l_.str.2:                               ; @.str.2
	.asciz	"SSL certificate's name contains embedded null\n"

.subsections_via_symbols
