	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fcgi_init                      ## -- Begin function fcgi_init
	.p2align	4, 0x90
_fcgi_init:                             ## @fcgi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_is_initialized@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.5:
	movq	_is_fastcgi@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movl	$4, -20(%rbp)
	movq	_fcgi_free_mgmt_var_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_fcgi_mgmt_vars@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$8, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_zend_hash_init
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	$15, %esi
	movl	$1, %ecx
	callq	_fcgi_set_mgmt_var
	movl	$1, (%r14)
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	xorl	%edi, %edi
	callq	_getpeername
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_fcgi_setup_signals
	movl	$1, %ebx
LBB0_4:
	movq	_is_fastcgi@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_initialized,4,2             ## @is_initialized
	.comm	_fcgi_mgmt_vars,4,2             ## @fcgi_mgmt_vars
	.comm	_fcgi_free_mgmt_var_cb,4,2      ## @fcgi_free_mgmt_var_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FCGI_MPXS_CONNS"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTCONN,8,3                   ## @ENOTCONN
	.comm	_is_fastcgi,4,2                 ## @is_fastcgi
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_PIPE_READMODE_BYTE,4,2         ## @PIPE_READMODE_BYTE
	.comm	_PIPE_WAIT,4,2                  ## @PIPE_WAIT
	.comm	_STD_ERROR_HANDLE,4,2           ## @STD_ERROR_HANDLE
	.comm	_STD_INPUT_HANDLE,4,2           ## @STD_INPUT_HANDLE
	.comm	_STD_OUTPUT_HANDLE,4,2          ## @STD_OUTPUT_HANDLE
	.comm	_fcgi_accept_mutex,8,3          ## @fcgi_accept_mutex
	.comm	_fcgi_shutdown_thread,4,2       ## @fcgi_shutdown_thread
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fcgi_init                      ; -- Begin function fcgi_init
	.p2align	2
_fcgi_init:                             ; @fcgi_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _is_initialized@GOTPAGE
Lloh1:
	ldr	x19, [x19, _is_initialized@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _is_fastcgi@GOTPAGE
Lloh3:
	ldr	x8, [x8, _is_fastcgi@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_2:
	mov	w8, #4
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _fcgi_free_mgmt_var_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fcgi_free_mgmt_var_cb@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x0, _fcgi_mgmt_vars@GOTPAGE
Lloh9:
	ldr	x0, [x0, _fcgi_mgmt_vars@GOTPAGEOFF]
	mov	w20, #1
	mov	w1, #8
	mov	x2, #0
	mov	w4, #1
	bl	_zend_hash_init
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #15
	mov	w3, #1
	bl	_fcgi_set_mgmt_var
	str	w20, [x19]
Lloh14:
	adrp	x19, _errno@GOTPAGE
Lloh15:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x19]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	w0, #0
	bl	_getpeername
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _ENOTCONN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOTCONN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	bl	_fcgi_setup_signals
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
Lloh19:
	adrp	x8, _is_fastcgi@GOTPAGE
Lloh20:
	ldr	x8, [x8, _is_fastcgi@GOTPAGEOFF]
Lloh21:
	str	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_is_initialized,4,2             ; @is_initialized
	.comm	_fcgi_mgmt_vars,4,2             ; @fcgi_mgmt_vars
	.comm	_fcgi_free_mgmt_var_cb,4,2      ; @fcgi_free_mgmt_var_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FCGI_MPXS_CONNS"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTCONN,8,3                   ; @ENOTCONN
	.comm	_is_fastcgi,4,2                 ; @is_fastcgi
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_PIPE_READMODE_BYTE,4,2         ; @PIPE_READMODE_BYTE
	.comm	_PIPE_WAIT,4,2                  ; @PIPE_WAIT
	.comm	_STD_ERROR_HANDLE,4,2           ; @STD_ERROR_HANDLE
	.comm	_STD_INPUT_HANDLE,4,2           ; @STD_INPUT_HANDLE
	.comm	_STD_OUTPUT_HANDLE,4,2          ; @STD_OUTPUT_HANDLE
	.comm	_fcgi_accept_mutex,8,3          ; @fcgi_accept_mutex
	.comm	_fcgi_shutdown_thread,4,2       ; @fcgi_shutdown_thread
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
