	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sapi_cgibin_single_write
_sapi_cgibin_single_write:              ## @sapi_cgibin_single_write
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_fpm_is_running@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_server_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SG
	movq	_FCGI_STDOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_fcgi_write
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovleq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, %edi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_MIN
	movq	_stdout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fpm_is_running,8,3             ## @fpm_is_running
	.comm	_server_context,4,2             ## @server_context
	.comm	_FCGI_STDOUT,4,2                ## @FCGI_STDOUT
	.comm	_stdout,4,2                     ## @stdout
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.no_dead_strip	_sapi_cgibin_single_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sapi_cgibin_single_write
_sapi_cgibin_single_write:              ; @sapi_cgibin_single_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _fpm_is_running@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpm_is_running@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _server_context@GOTPAGE
Lloh4:
	ldr	x8, [x8, _server_context@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SG
Lloh6:
	adrp	x8, _FCGI_STDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FCGI_STDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x20
	bl	_fcgi_write
	cmp	x0, #0
	csel	x0, x0, xzr, gt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x20
	mov	w1, #16384
	bl	_MIN
	mov	x2, x0
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fwrite
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fpm_is_running,8,3             ; @fpm_is_running
	.comm	_server_context,4,2             ; @server_context
	.comm	_FCGI_STDOUT,4,2                ; @FCGI_STDOUT
	.comm	_stdout,4,2                     ; @stdout
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.no_dead_strip	_sapi_cgibin_single_write
.subsections_via_symbols
