	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sapi_fcgi_ub_write
_sapi_fcgi_ub_write:                    ## @sapi_fcgi_ub_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_server_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SG
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_INT_MAX@GOTPCREL(%rip), %r13
	movq	_FCGI_STDOUT@GOTPCREL(%rip), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	%rcx, %rbx
	cmovbq	%rbx, %rcx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fcgi_write
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	addq	%rax, %r12
	subq	%rax, %rbx
	jne	LBB0_3
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	callq	_php_handle_aborted_connection
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%rbx, %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_server_context,4,2             ## @server_context
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_FCGI_STDOUT,4,2                ## @FCGI_STDOUT
	.no_dead_strip	_sapi_fcgi_ub_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sapi_fcgi_ub_write
_sapi_fcgi_ub_write:                    ; @sapi_fcgi_ub_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _server_context@GOTPAGE
Lloh1:
	ldr	x8, [x8, _server_context@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SG
	cbz	x19, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x23, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _INT_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x24, _FCGI_STDOUT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FCGI_STDOUT@GOTPAGEOFF]
	mov	x22, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x22, x8
	csel	x3, x22, x8, lo
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_fcgi_write
	cmp	w0, #0
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, w0
	add	x20, x20, x8
	subs	x22, x22, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	bl	_php_handle_aborted_connection
	sub	x19, x19, x22
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_server_context,4,2             ; @server_context
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_FCGI_STDOUT,4,2                ; @FCGI_STDOUT
	.no_dead_strip	_sapi_fcgi_ub_write
.subsections_via_symbols
