	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ident_inet
_ident_inet:                            ## @ident_inet
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r14
	movq	%r14, -208(%rbp)
	movq	%rdi, -248(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %r15
	movq	%r15, -200(%rbp)
	movq	_IDENT_USERNAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -224(%rbp)                ## 8-byte Spill
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%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, -160(%rbp)                ## 8-byte Spill
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -232(%rbp)                ## 8-byte Spill
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	_IDENT_USERNAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	addl	$80, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -216(%rbp)                ## 8-byte Spill
	movq	$0, -144(%rbp)
	movq	$0, -168(%rbp)
	shrq	$32, %r14
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	subq	$8, %rsp
	leaq	-208(%rbp), %rdi
	movl	%r14d, %esi
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%r13, -240(%rbp)                ## 8-byte Spill
	movq	%r13, %r8
	movl	%r12d, %r9d
	pushq	%rax
	callq	_pg_getnameinfo_all
	addq	$16, %rsp
	shrq	$32, %r15
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	subq	$8, %rsp
	leaq	-200(%rbp), %rdi
	movl	%r15d, %esi
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	movl	%ebx, %ecx
	movq	-232(%rbp), %r8                 ## 8-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	callq	_pg_getnameinfo_all
	addq	$16, %rsp
	movq	_IDENT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -264(%rbp)
	movl	-208(%rbp), %eax
	movl	%eax, -288(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -296(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -320(%rbp)
	movq	$0, -304(%rbp)
	movups	%xmm0, -280(%rbp)
	leaq	-320(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pg_getaddrinfo_all
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	cmpq	$0, -144(%rbp)
	je	LBB0_6
## %bb.2:
	leaq	-280(%rbp), %rax
	movq	(%r12), %rcx
	movq	%rcx, -264(%rbp)
	movl	-200(%rbp), %ecx
	movl	%ecx, -288(%rbp)
	movq	(%r13), %rcx
	movq	%rcx, -296(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -320(%rbp)
	movq	$0, -304(%rbp)
	movups	%xmm0, (%rax)
	xorl	%r15d, %r15d
	leaq	-320(%rbp), %rdx
	leaq	-168(%rbp), %rcx
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_pg_getaddrinfo_all
	testl	%eax, %eax
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %r13
	jne	LBB0_7
## %bb.3:
	cmpq	$0, -168(%rbp)
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_12
## %bb.4:
	movq	-144(%rbp), %rax
	movl	32(%rax), %edi
	movq	16(%rax), %rdx
	movq	24(%rax), %rsi
	callq	_socket
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.5:
	movq	_LOG@GOTPCREL(%rip), %rax
	movq	%rbx, %r14
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	jmp	LBB0_10
LBB0_6:
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %r13
LBB0_7:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	movq	-168(%rbp), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_bind
	testl	%eax, %eax
	je	LBB0_23
## %bb.9:
	movq	_LOG@GOTPCREL(%rip), %rax
	movq	%rbx, %r14
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.2(%rip), %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
LBB0_10:
	movl	%ebx, %edi
	movq	%r14, %rbx
LBB0_11:
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	cmpq	(%r13), %rbx
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_closesocket
LBB0_14:
	movq	-144(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movl	-208(%rbp), %edi
	callq	_pg_freeaddrinfo_all
LBB0_16:
	movq	-168(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movl	-200(%rbp), %edi
	callq	_pg_freeaddrinfo_all
LBB0_18:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.19:
	movq	-248(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	movl	(%rcx), %esi
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_check_usermap
	jmp	LBB0_21
LBB0_20:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_40
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-144(%rbp), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_connect
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.3(%rip), %rdi
LBB0_25:
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_12
LBB0_26:
	leaq	L_.str.4(%rip), %rdx
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$80, %esi
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	movq	-232(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%rbx, %rdi
	callq	_strlen
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_send
	testl	%eax, %eax
	jns	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, (%r14)
	je	LBB0_27
LBB0_29:
	testl	%eax, %eax
	js	LBB0_36
## %bb.30:
	movq	-176(%rbp), %rax                ## 8-byte Reload
	addl	$79, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%rbx, %rdi
	movq	-216(%rbp), %rsi                ## 8-byte Reload
	movq	-176(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	jns	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, (%r14)
	je	LBB0_31
LBB0_33:
	testl	%eax, %eax
	js	LBB0_37
## %bb.34:
	movl	%eax, %eax
	movq	-216(%rbp), %r14                ## 8-byte Reload
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	movq	-224(%rbp), %rsi                ## 8-byte Reload
	callq	_interpret_ident_response
	testl	%eax, %eax
	je	LBB0_38
## %bb.35:
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_36:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_25
LBB0_37:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.6(%rip), %rdi
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	jmp	LBB0_39
LBB0_38:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.7(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_39:
	movl	%ebx, %edi
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_11
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDENT_USERNAME_MAX,4,2         ## @IDENT_USERNAME_MAX
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_IDENT_PORT,4,2                 ## @IDENT_PORT
	.comm	_AI_NUMERICHOST,8,3             ## @AI_NUMERICHOST
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_LOG,4,2                        ## @LOG
L_.str.1:                               ## @.str.1
	.asciz	"could not create socket for Ident connection: %m"

L_.str.2:                               ## @.str.2
	.asciz	"could not bind to local address \"%s\": %m"

L_.str.3:                               ## @.str.3
	.asciz	"could not connect to Ident server at address \"%s\", port %s: %m"

L_.str.4:                               ## @.str.4
	.asciz	"%s,%s\r\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.5:                               ## @.str.5
	.asciz	"could not send query to Ident server at address \"%s\", port %s: %m"

L_.str.6:                               ## @.str.6
	.asciz	"could not receive response from Ident server at address \"%s\", port %s: %m"

L_.str.7:                               ## @.str.7
	.asciz	"invalidly formatted response from Ident server: \"%s\""

	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
	.no_dead_strip	_ident_inet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ident_inet
_ident_inet:                            ; @ident_inet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #240
	mov	x8, sp
	sub	x9, x29, #24
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldp	x19, x12, [x0, #16]
	sub	x8, x29, #48
	stur	x0, [x8, #-256]                 ; 8-byte Folded Spill
	stp	x19, x12, [x29, #-192]
Lloh3:
	adrp	x13, _IDENT_USERNAME_MAX@GOTPAGE
Lloh4:
	ldr	x13, [x13, _IDENT_USERNAME_MAX@GOTPAGEOFF]
	ldr	w8, [x13]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	sub	x9, x29, #40
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	mov	sp, x8
Lloh7:
	adrp	x8, _PGINVALID_SOCKET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sub	x9, x29, #32
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
Lloh10:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x9, x20
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x14, x9, #0x1fffffff0
	sub	x22, x8, x14
	mov	sp, x22
Lloh15:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh17:
	ldr	w28, [x8]
	mov	x9, x28
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x28, #15
	and	x15, x9, #0x1fffffff0
	sub	x25, x8, x15
	mov	sp, x25
	mov	x9, x20
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x27, x8, x14
	mov	sp, x27
	mov	x9, x28
Lloh22:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh23:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x15
	mov	sp, x26
	mov	x9, x28
Lloh24:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh25:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x15
	mov	sp, x23
	ldr	w8, [x13]
	sub	x9, x29, #60
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
	add	w8, w8, #80
	mov	x9, x8
Lloh26:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh27:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	sub	x9, x29, #56
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	mov	sp, x8
	stp	xzr, xzr, [x29, #-208]
Lloh28:
	adrp	x21, _NI_NUMERICHOST@GOTPAGE
Lloh29:
	ldr	x21, [x21, _NI_NUMERICHOST@GOTPAGEOFF]
	lsr	x1, x12, #32
	ldr	w8, [x21]
Lloh30:
	adrp	x24, _NI_NUMERICSERV@GOTPAGE
Lloh31:
	ldr	x24, [x24, _NI_NUMERICSERV@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w6, w9, w8
	sub	x0, x29, #184
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
	mov	x3, x20
	mov	x4, x25
	mov	x5, x28
	bl	_pg_getnameinfo_all
	lsr	x1, x19, #32
	ldr	w8, [x21]
	ldr	w9, [x24]
	orr	w6, w9, w8
	sub	x0, x29, #192
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x27
	mov	x3, x20
	mov	x4, x26
	mov	x5, x28
	bl	_pg_getnameinfo_all
Lloh32:
	adrp	x8, _IDENT_PORT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IDENT_PORT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
Lloh35:
	adrp	x2, l_.str@PAGE
Lloh36:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x28
	bl	_snprintf
	add	sp, sp, #16
Lloh37:
	adrp	x19, _AI_NUMERICHOST@GOTPAGE
Lloh38:
	ldr	x19, [x19, _AI_NUMERICHOST@GOTPAGEOFF]
	ldr	x8, [x19]
	stur	x8, [x29, #-216]
	ldur	w8, [x29, #-184]
	stur	w8, [x29, #-240]
Lloh39:
	adrp	x28, _SOCK_STREAM@GOTPAGE
Lloh40:
	ldr	x28, [x28, _SOCK_STREAM@GOTPAGEOFF]
	ldr	x8, [x28]
	sub	x21, x29, #272
	stp	xzr, x8, [x29, #-256]
	sub	x8, x29, #16
	stur	xzr, [x8, #-256]
	sub	x8, x29, #8
	stur	xzr, [x8, #-256]
	stp	xzr, xzr, [x29, #-232]
	sub	x2, x29, #272
	sub	x3, x29, #200
	mov	x0, x22
	mov	x1, x23
	bl	_pg_getaddrinfo_all
	mov	w20, #0
	cbnz	w0, LBB0_6
; %bb.1:
	ldur	x8, [x29, #-200]
	cbz	x8, LBB0_6
; %bb.2:
	add	x8, x21, #40
	ldr	x9, [x19]
	stur	x9, [x29, #-216]
	ldur	w9, [x29, #-192]
	stur	w9, [x29, #-240]
	ldr	x9, [x28]
	stp	xzr, x9, [x29, #-256]
	sub	x9, x29, #16
	stur	xzr, [x9, #-256]
	sub	x9, x29, #8
	stur	xzr, [x9, #-256]
	stp	xzr, xzr, [x8]
	sub	x2, x29, #272
	sub	x3, x29, #208
	mov	x0, x27
	mov	x1, #0
	bl	_pg_getaddrinfo_all
	mov	w20, #0
	cbnz	w0, LBB0_6
; %bb.3:
	ldur	x8, [x29, #-208]
	sub	x9, x29, #24
	ldur	x21, [x9, #-256]                ; 8-byte Folded Reload
Lloh41:
	adrp	x24, _PGINVALID_SOCKET@GOTPAGE
Lloh42:
	ldr	x24, [x24, _PGINVALID_SOCKET@GOTPAGEOFF]
	sub	x9, x29, #32
	ldur	x28, [x9, #-256]                ; 8-byte Folded Reload
	cbz	x8, LBB0_13
; %bb.4:
	ldur	x8, [x29, #-200]
	ldr	w0, [x8, #32]
	ldp	x2, x1, [x8, #16]
	bl	_socket
	mov	x28, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh43:
	adrp	x8, _LOG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
	bl	_errcode_for_socket_access
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	b	LBB0_12
LBB0_6:
	sub	x8, x29, #24
	ldur	x21, [x8, #-256]                ; 8-byte Folded Reload
Lloh48:
	adrp	x24, _PGINVALID_SOCKET@GOTPAGE
Lloh49:
	ldr	x24, [x24, _PGINVALID_SOCKET@GOTPAGEOFF]
	sub	x8, x29, #32
	ldur	x28, [x8, #-256]                ; 8-byte Folded Reload
	b	LBB0_13
LBB0_7:
	ldur	x8, [x29, #-208]
	ldp	x2, x1, [x8]
	mov	x0, x28
	bl	_bind
	cbz	w0, LBB0_9
; %bb.8:
Lloh50:
	adrp	x8, _LOG@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
	bl	_errcode_for_socket_access
	str	x27, [sp, #-16]!
Lloh53:
	adrp	x0, l_.str.2@PAGE
Lloh54:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldur	x8, [x29, #-200]
	ldp	x2, x1, [x8]
	mov	x0, x28
	bl	_connect
	cbz	w0, LBB0_24
; %bb.10:
Lloh55:
	adrp	x8, _LOG@GOTPAGE
Lloh56:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh57:
	ldr	w20, [x8]
	bl	_errcode_for_socket_access
	stp	x22, x23, [sp, #-16]!
Lloh58:
	adrp	x0, l_.str.3@PAGE
Lloh59:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_errmsg
	add	sp, sp, #16
LBB0_12:
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	w20, #0
LBB0_13:
	ldr	x8, [x24]
	cmp	x28, x8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x28
	bl	_closesocket
LBB0_15:
	ldur	x1, [x29, #-200]
	cbz	x1, LBB0_17
; %bb.16:
	ldur	w0, [x29, #-184]
	bl	_pg_freeaddrinfo_all
LBB0_17:
	ldur	x1, [x29, #-208]
	cbz	x1, LBB0_19
; %bb.18:
	ldur	w0, [x29, #-192]
	bl	_pg_freeaddrinfo_all
LBB0_19:
	cbz	w20, LBB0_21
; %bb.20:
	sub	x8, x29, #48
	ldur	x9, [x8, #-256]                 ; 8-byte Folded Reload
	ldr	x8, [x9, #8]
	ldr	w0, [x8]
	ldr	w1, [x9]
	sub	x8, x29, #40
	ldur	x2, [x8, #-256]                 ; 8-byte Folded Reload
	mov	w3, #0
	bl	_check_usermap
	b	LBB0_22
LBB0_21:
Lloh60:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
LBB0_22:
	mov	sp, x21
	ldur	x8, [x29, #-96]
Lloh63:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh64:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.23:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	stp	x25, x26, [sp, #-16]!
Lloh66:
	adrp	x2, l_.str.4@PAGE
Lloh67:
	add	x2, x2, l_.str.4@PAGEOFF
	sub	x0, x29, #176
	mov	w1, #80
	bl	_snprintf
	add	sp, sp, #16
Lloh68:
	adrp	x19, _errno@GOTPAGE
Lloh69:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
Lloh70:
	adrp	x25, _EINTR@GOTPAGE
Lloh71:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	sub	x0, x29, #176
	bl	_strlen
	mov	x2, x0
	sub	x1, x29, #176
	mov	x0, x28
	mov	w3, #0
	bl	_send
	tbz	w0, #31, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_25
LBB0_27:
	sub	x8, x29, #56
	ldur	x26, [x8, #-256]                ; 8-byte Folded Reload
	tbnz	w0, #31, LBB0_34
; %bb.28:
	sub	x8, x29, #60
	ldur	w8, [x8, #-256]                 ; 4-byte Folded Reload
	add	w20, w8, #79
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x28
	mov	x1, x26
	mov	x2, x20
	mov	w3, #0
	bl	_recv
	tbz	w0, #31, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_29
LBB0_31:
	tbnz	w0, #31, LBB0_35
; %bb.32:
	strb	wzr, [x26, w0, uxtw]
	mov	x0, x26
	sub	x8, x29, #40
	ldur	x1, [x8, #-256]                 ; 8-byte Folded Reload
	bl	_interpret_ident_response
	cbz	w0, LBB0_36
; %bb.33:
	mov	x20, x0
	b	LBB0_13
LBB0_34:
Lloh72:
	adrp	x8, _LOG@GOTPAGE
Lloh73:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh74:
	ldr	w20, [x8]
	bl	_errcode_for_socket_access
	stp	x22, x23, [sp, #-16]!
Lloh75:
	adrp	x0, l_.str.5@PAGE
Lloh76:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_35:
Lloh77:
	adrp	x8, _LOG@GOTPAGE
Lloh78:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh79:
	ldr	w20, [x8]
	bl	_errcode_for_socket_access
	stp	x22, x23, [sp, #-16]!
Lloh80:
	adrp	x0, l_.str.6@PAGE
Lloh81:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_36:
Lloh82:
	adrp	x8, _LOG@GOTPAGE
Lloh83:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh84:
	ldr	w20, [x8]
	str	x26, [sp, #-16]!
Lloh85:
	adrp	x0, l_.str.7@PAGE
Lloh86:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_IDENT_USERNAME_MAX,4,2         ; @IDENT_USERNAME_MAX
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_IDENT_PORT,4,2                 ; @IDENT_PORT
	.comm	_AI_NUMERICHOST,8,3             ; @AI_NUMERICHOST
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_LOG,4,2                        ; @LOG
l_.str.1:                               ; @.str.1
	.asciz	"could not create socket for Ident connection: %m"

l_.str.2:                               ; @.str.2
	.asciz	"could not bind to local address \"%s\": %m"

l_.str.3:                               ; @.str.3
	.asciz	"could not connect to Ident server at address \"%s\", port %s: %m"

l_.str.4:                               ; @.str.4
	.asciz	"%s,%s\r\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.5:                               ; @.str.5
	.asciz	"could not send query to Ident server at address \"%s\", port %s: %m"

l_.str.6:                               ; @.str.6
	.asciz	"could not receive response from Ident server at address \"%s\", port %s: %m"

l_.str.7:                               ; @.str.7
	.asciz	"invalidly formatted response from Ident server: \"%s\""

	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
	.no_dead_strip	_ident_inet
.subsections_via_symbols
