	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpm_sockets_cleanup
_fpm_sockets_cleanup:                   ## @fpm_sockets_cleanup
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FPM_ENV_SOCKET_SET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_sockets_list@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_19
## %bb.1:
	movq	8(%r14), %r12
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, -108(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	callq	_free
	incl	%r15d
	addq	$24, %r12
	cmpl	(%r14), %r15d
	jae	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FPM_CLEANUP_PARENT_EXEC@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	leaq	-80(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	movl	%r15d, %eax
	xorl	%edx, %edx
	movq	_FPM_ENV_SOCKET_SET_SIZE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	testl	%edx, %edx
	sete	%al
	testl	%r15d, %r15d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	cmpl	$1, %r14d
	movl	%r14d, %eax
	sbbl	$-1, %eax
	cltq
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	8(%r12), %rdi
	callq	_strlen
	movq	%rax, %r13
	leaq	-80(%rbp), %rdi
	callq	_strlen
	addq	-128(%rbp), %r13                ## 8-byte Folded Reload
	addq	%rax, %r13
	leaq	(%rbx,%r13), %rsi
	addq	$2, %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_realloc
	movq	%rbx, %rsi
	movq	%rax, %rdi
	movl	%r15d, %eax
	xorl	%edx, %edx
	movq	_FPM_ENV_SOCKET_SET_SIZE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	addl	%r14d, %ebx
	movslq	%r14d, %rax
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_close
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %r13d
	movl	%ecx, %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%ebx, (%rdx,%rcx,4)
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, 1(%rdi,%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	addq	%rax, %rdi
	addq	%rsi, %rdi
	testq	%rsi, %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmovneq	%rcx, %rdx
	testl	%eax, %eax
	cmoveq	%rcx, %rdx
	movq	8(%r12), %rcx
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %r8
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %ebx
	movl	%r13d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movl	-108(%rbp), %ebx                ## 4-byte Reload
	movq	_sockets_list@GOTPCREL(%rip), %r14
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FPM_CLEANUP_PARENT_EXIT_MAIN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	_FPM_AF_UNIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	callq	_unlink
	jmp	LBB0_12
LBB0_13:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_19
## %bb.14:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_strcpy
	movl	(%r13), %esi
	addq	%r15, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_setenv
	cmpl	$1, %ebx
	je	LBB0_18
## %bb.16:
	movl	%ebx, %r14d
	movl	$1, %ebx
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movl	(%r13,%rbx,4), %esi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_setenv
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_17
LBB0_18:
	movq	%r15, %rdi
	callq	_free
LBB0_19:
	movq	_sockets_list@GOTPCREL(%rip), %rdi
	callq	_fpm_array_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FPM_ENV_SOCKET_SET_MAX,4,2     ## @FPM_ENV_SOCKET_SET_MAX
	.comm	_sockets_list,16,3              ## @sockets_list
	.comm	_FPM_CLEANUP_PARENT_EXEC,4,2    ## @FPM_CLEANUP_PARENT_EXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_FPM_ENV_SOCKET_SET_SIZE,4,2    ## @FPM_ENV_SOCKET_SET_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s%s=%s"

L_.str.2:                               ## @.str.2
	.asciz	","

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_FPM_CLEANUP_PARENT_EXIT_MAIN,4,2 ## @FPM_CLEANUP_PARENT_EXIT_MAIN
	.comm	_FPM_AF_UNIX,8,3                ## @FPM_AF_UNIX
L_.str.4:                               ## @.str.4
	.asciz	"FPM_SOCKETS"

L_.str.5:                               ## @.str.5
	.asciz	"FPM_SOCKETS_%d"

	.no_dead_strip	_fpm_sockets_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpm_sockets_cleanup
_fpm_sockets_cleanup:                   ; @fpm_sockets_cleanup
	.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, #64
	mov	x20, x0
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	x8, _FPM_ENV_SOCKET_SET_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPM_ENV_SOCKET_SET_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x9, x9, x8
	mov	sp, x9
Lloh8:
	adrp	x25, _sockets_list@GOTPAGE
Lloh9:
	ldr	x25, [x25, _sockets_list@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_18
; %bb.1:
	stur	x9, [x29, #-144]                ; 8-byte Folded Spill
	mov	w21, #0
	stur	xzr, [x29, #-128]               ; 8-byte Folded Spill
	mov	w27, #0
	stur	wzr, [x29, #-136]               ; 4-byte Folded Spill
	ldr	x8, [x25, #8]
	add	x28, x8, #8
Lloh10:
	adrp	x24, _FPM_CLEANUP_PARENT_EXEC@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FPM_CLEANUP_PARENT_EXEC@GOTPAGEOFF]
Lloh12:
	adrp	x19, _FPM_CLEANUP_PARENT_EXIT_MAIN@GOTPAGE
Lloh13:
	ldr	x19, [x19, _FPM_CLEANUP_PARENT_EXIT_MAIN@GOTPAGEOFF]
	stur	w20, [x29, #-132]               ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28], #24
	bl	_free
	add	w27, w27, #1
	ldr	w8, [x25]
	cmp	w27, w8
	b.hs	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x19
	ldur	w8, [x28, #-8]
	str	x8, [sp, #-16]!
	sub	x0, x29, #120
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	add	sp, sp, #16
Lloh16:
	adrp	x19, _FPM_ENV_SOCKET_SET_SIZE@GOTPAGE
Lloh17:
	ldr	x19, [x19, _FPM_ENV_SOCKET_SET_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	udiv	w9, w27, w8
	msub	w22, w9, w8, w27
	cmp	w21, #0
	cinc	w26, w21, ne
	ldr	x0, [x28]
	bl	_strlen
	mov	x23, x0
	sub	x0, x29, #120
	bl	_strlen
	cmp	w27, #0
	ccmp	w22, #0, #0, ne
	cset	w22, eq
	add	x8, x23, w26, sxtw
	add	x8, x8, x0
	cinc	x8, x8, eq
	add	x1, x8, #2
	cinc	w23, w21, eq
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	bl	_realloc
	ldr	w8, [x19]
	udiv	w9, w27, w8
	msub	w9, w9, w8, w27
	add	x8, x0, w21, sxtw
	stur	x0, [x29, #-128]                ; 8-byte Folded Spill
	cbnz	w9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	ldur	w10, [x29, #-136]               ; 4-byte Folded Reload
	str	w23, [x9, w10, uxtw #2]
	add	w10, w10, #1
	stur	w10, [x29, #-136]               ; 4-byte Folded Spill
	cbz	w27, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x8, #1]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x20
	cmp	w21, #0
	cset	w9, ne
	add	x0, x8, x22
	eor	w8, w22, #0x1
	tst	w9, w8
Lloh18:
	adrp	x8, l_.str.3@PAGE
Lloh19:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh20:
	adrp	x9, l_.str.2@PAGE
Lloh21:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x8, x9, x8, ne
	ldr	x9, [x28]
	sub	sp, sp, #32
	sub	x10, x29, #120
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	add	sp, sp, #32
	add	w21, w23, w0
	ldur	w20, [x29, #-132]               ; 4-byte Folded Reload
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w0, [x28, #-8]
	bl	_close
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28, #8]
Lloh24:
	adrp	x9, _FPM_AF_UNIX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FPM_AF_UNIX@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28]
	bl	_unlink
	b	LBB0_2
LBB0_12:
	ldur	x23, [x29, #-144]               ; 8-byte Folded Reload
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	cbz	x19, LBB0_18
; %bb.13:
	ldur	w20, [x29, #-136]               ; 4-byte Folded Reload
	cbz	w20, LBB0_17
; %bb.14:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #120
	bl	_strcpy
	ldr	w8, [x23]
	add	x1, x19, x8
	sub	x0, x29, #120
	mov	w2, #1
	bl	_setenv
	cmp	w20, #1
	b.eq	LBB0_17
; %bb.15:
	mov	w21, w20
	mov	w22, #1
Lloh29:
	adrp	x20, l_.str.5@PAGE
Lloh30:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [sp, #-16]!
	sub	x0, x29, #120
	mov	x1, x20
	bl	_sprintf
	add	sp, sp, #16
	ldr	w8, [x23, x22, lsl #2]
	add	x1, x19, x8
	sub	x0, x29, #120
	mov	w2, #1
	bl	_setenv
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_free
LBB0_18:
Lloh31:
	adrp	x0, _sockets_list@GOTPAGE
Lloh32:
	ldr	x0, [x0, _sockets_list@GOTPAGEOFF]
	bl	_fpm_array_free
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_FPM_ENV_SOCKET_SET_MAX,4,2     ; @FPM_ENV_SOCKET_SET_MAX
	.comm	_sockets_list,16,3              ; @sockets_list
	.comm	_FPM_CLEANUP_PARENT_EXEC,4,2    ; @FPM_CLEANUP_PARENT_EXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_FPM_ENV_SOCKET_SET_SIZE,4,2    ; @FPM_ENV_SOCKET_SET_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s%s=%s"

l_.str.2:                               ; @.str.2
	.asciz	","

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_FPM_CLEANUP_PARENT_EXIT_MAIN,4,2 ; @FPM_CLEANUP_PARENT_EXIT_MAIN
	.comm	_FPM_AF_UNIX,8,3                ; @FPM_AF_UNIX
l_.str.4:                               ; @.str.4
	.asciz	"FPM_SOCKETS"

l_.str.5:                               ; @.str.5
	.asciz	"FPM_SOCKETS_%d"

	.no_dead_strip	_fpm_sockets_cleanup
.subsections_via_symbols
