	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpm_socket_af_inet_socket_by_addr
_fpm_socket_af_inet_socket_by_addr:     ## @fpm_socket_af_inet_socket_by_addr
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_zlog
	movl	$-1, %r13d
	jmp	LBB0_11
LBB0_1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14
	movl	$-1, %r13d
	testq	%r14, %r14
	jne	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_zlog
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movl	8(%r14), %ebx
	callq	_fpm_get_in_addr
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_inet_ntop
	movq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	testl	%r13d, %r13d
	jns	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_fpm_sockets_get_listening_socket
	movl	%eax, %r13d
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmpl	$-1, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %r13d
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rdi
LBB0_10:
	callq	_freeaddrinfo
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Found address for %s, socket opened on %s"

	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Found multiple addresses for %s, %s ignored"

	.no_dead_strip	_fpm_socket_af_inet_socket_by_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpm_socket_af_inet_socket_by_addr
_fpm_socket_af_inet_socket_by_addr:     ; @fpm_socket_af_inet_socket_by_addr
	.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, #48
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _INET6_ADDRSTRLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _INET6_ADDRSTRLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	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	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #120
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh7:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stur	w8, [x29, #-112]
	stur	w9, [x29, #-96]
	sub	x2, x29, #120
	sub	x3, x29, #128
	mov	x0, x19
	mov	x1, x22
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_zlog
	mov	w22, #-1
	b	LBB0_13
LBB0_2:
	ldur	x26, [x29, #-128]
	cbz	x26, LBB0_11
; %bb.3:
	mov	w22, #-1
Lloh18:
	adrp	x27, l_.str.2@PAGE
Lloh19:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh20:
	adrp	x28, _ZLOG_WARNING@GOTPAGE
Lloh21:
	ldr	x28, [x28, _ZLOG_WARNING@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x28
	mov	x1, x27
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8]
	str	x21, [sp, #-16]!
	mov	x2, x19
	bl	_zlog
	add	sp, sp, #16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x26, #16]
	cbz	x26, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w23, [x26, #4]
	bl	_fpm_get_in_addr
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x23
	mov	x2, x21
	bl	_inet_ntop
	tbz	w22, #31, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w2, w1, [x26]
	mov	x0, x20
	bl	_fpm_sockets_get_listening_socket
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh22:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_10:
	ldur	x0, [x29, #-128]
	b	LBB0_12
LBB0_11:
	mov	x0, #0
	mov	w22, #-1
LBB0_12:
	bl	_freeaddrinfo
LBB0_13:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Found address for %s, socket opened on %s"

	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Found multiple addresses for %s, %s ignored"

	.no_dead_strip	_fpm_socket_af_inet_socket_by_addr
.subsections_via_symbols
