	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpm_socket_af_inet_listening_socket
_fpm_socket_af_inet_listening_socket:   ## @fpm_socket_af_inet_listening_socket
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_strdup
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_strlen
	cmpb	$91, (%r15)
	movq	%r15, %rsi
	jne	LBB0_4
## %bb.2:
	cltq
	cmpb	$93, -1(%rax,%r15)
	movq	%r15, %rsi
	jne	LBB0_4
## %bb.3:
	movb	$0, -1(%r15,%rax)
	movq	%r15, %rsi
	incq	%rsi
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_13:
	callq	_fpm_socket_af_inet_socket_by_addr
	movl	%eax, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strspn
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_atoi
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movq	_ZLOG_ALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zlog_set_level
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_fpm_socket_af_inet_socket_by_addr
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_zlog_set_level
	testl	%ebx, %ebx
	jns	LBB0_14
## %bb.12:
	movq	_ZLOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_zlog
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rbx
LBB0_10:
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_zlog
	movl	$-1, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789"

	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid port value '%s'"

	.comm	_ZLOG_ALERT,4,2                 ## @ZLOG_ALERT
L_.str.2:                               ## @.str.2
	.asciz	"::"

	.comm	_ZLOG_NOTICE,4,2                ## @ZLOG_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	"Failed implicitly binding to ::, retrying with 0.0.0.0"

L_.str.4:                               ## @.str.4
	.asciz	"0.0.0.0"

	.no_dead_strip	_fpm_socket_af_inet_listening_socket
.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_listening_socket
_fpm_socket_af_inet_listening_socket:   ; @fpm_socket_af_inet_listening_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_strdup
	mov	x19, x0
	mov	w1, #58
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	strb	wzr, [x21], #1
	mov	x0, x21
	bl	_atoi
	mov	x22, x0
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w8, [x19]
	mov	x1, x19
	cmp	w8, #91
	b.ne	LBB0_4
; %bb.2:
	sxtw	x8, w0
	sub	x8, x8, #1
	ldrb	w9, [x19, x8]
	mov	x1, x19
	cmp	w9, #93
	b.ne	LBB0_4
; %bb.3:
	strb	wzr, [x19, x8]
	add	x1, x19, #1
LBB0_4:
	cbz	w22, LBB0_14
; %bb.5:
	mov	x0, x20
	mov	x2, x21
LBB0_6:
	bl	_fpm_socket_af_inet_socket_by_addr
	mov	x21, x0
LBB0_7:
	mov	x0, x19
	bl	_free
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strspn
	cmp	w21, w0
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_atoi
	cbz	w0, LBB0_13
; %bb.10:
Lloh2:
	adrp	x8, _ZLOG_ALERT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZLOG_ALERT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_zlog_set_level
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fpm_socket_af_inet_socket_by_addr
	mov	x21, x0
	mov	x0, x22
	bl	_zlog_set_level
	tbz	w21, #31, LBB0_7
; %bb.11:
Lloh7:
	adrp	x8, _ZLOG_NOTICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZLOG_NOTICE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_zlog
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	b	LBB0_6
LBB0_12:
	mov	x21, #0
	b	LBB0_14
LBB0_13:
	mov	x21, x19
LBB0_14:
Lloh14:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_zlog
	mov	w21, #-1
LBB0_15:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789"

	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid port value '%s'"

	.comm	_ZLOG_ALERT,4,2                 ; @ZLOG_ALERT
l_.str.2:                               ; @.str.2
	.asciz	"::"

	.comm	_ZLOG_NOTICE,4,2                ; @ZLOG_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	"Failed implicitly binding to ::, retrying with 0.0.0.0"

l_.str.4:                               ; @.str.4
	.asciz	"0.0.0.0"

	.no_dead_strip	_fpm_socket_af_inet_listening_socket
.subsections_via_symbols
