	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_hostname
_check_hostname:                        ## @check_hostname
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	cmpl	$0, (%rdi)
	js	LBB0_20
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	24(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_hostname_match
	testl	%eax, %eax
	je	LBB0_20
## %bb.5:
	movl	$1, %r15d
	cmpl	$1, (%r12)
	je	LBB0_20
## %bb.6:
	movl	24(%r12), %edi
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_7
## %bb.23:
	movl	$-2, (%r12)
	movl	%eax, 4(%r12)
	jmp	LBB0_20
LBB0_2:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	8(%r12), %rdi
	movl	16(%r12), %esi
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r13, %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_pg_getnameinfo_all
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.22:
	movl	$-2, (%r12)
	movl	%eax, 4(%r12)
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_3:
	movq	%r13, %rdi
	callq	_pstrdup
	movl	%eax, 24(%r12)
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movl	24(%r12), %esi
	jmp	LBB0_4
LBB0_7:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.8:
	leaq	8(%r12), %r15
	movq	_AF_INET@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rsi
	callq	_ipv4eq
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movq	-56(%rbp), %rdi
	movl	$1, %r15d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_freeaddrinfo
LBB0_18:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_13:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_freeaddrinfo
LBB0_15:
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
	movl	$-1, %eax
	xorl	%r15d, %r15d
LBB0_19:
	movl	%eax, (%r12)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.21:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_hba.conf host name \"%s\" rejected because address resolution did not return a match with IP address of client"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.no_dead_strip	_check_hostname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_hostname
_check_hostname:                        ; @check_hostname
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #24]
	cbz	w1, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_hostname_match
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
	mov	x22, sp
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x9, x3
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	add	x0, x19, #8
	ldr	w1, [x19, #16]
Lloh8:
	adrp	x8, _NI_NAMEREQD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_NAMEREQD@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, #0
	mov	w5, #0
	bl	_pg_getnameinfo_all
	cbz	w0, LBB0_12
; %bb.6:
	mov	w8, #-2
	stp	w8, w0, [x19]
	mov	sp, x22
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.9:
	sub	sp, x29, #48
	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_10:
	ldr	w0, [x19, #24]
	sub	x3, x29, #64
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_13
; %bb.11:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #-2
	stp	w9, w8, [x19]
	b	LBB0_8
LBB0_12:
	mov	x0, x21
	bl	_pstrdup
	str	w0, [x19, #24]
	mov	sp, x22
	mov	w1, w0
	b	LBB0_2
LBB0_13:
	ldur	x22, [x29, #-64]
	cbz	x22, LBB0_23
; %bb.14:
	add	x21, x19, #8
Lloh14:
	adrp	x23, _AF_INET@GOTPAGE
Lloh15:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	x9, [x21]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #0, eq
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x21
	bl	_ipv4eq
	cbz	x0, LBB0_15
; %bb.18:
	ldur	x0, [x29, #-64]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_freeaddrinfo
LBB0_20:
	mov	w0, #1
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_21:
	ldur	x0, [x29, #-64]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_freeaddrinfo
LBB0_23:
Lloh16:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_8
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_hba.conf host name \"%s\" rejected because address resolution did not return a match with IP address of client"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.no_dead_strip	_check_hostname
.subsections_via_symbols
