	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_mail_gets
_php_mail_gets:                         ## @php_mail_gets
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_gets_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IMAPG
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_GETS_FETCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GETS_FETCH_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	cmpq	%r14, %rbx
	movq	%r14, %r12
	cmovbq	%rbx, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*%r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	subq	%r14, %rbx
	movl	$0, %eax
	cmovbq	%rax, %rbx
	movq	_gets_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IMAPG
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_php_stream_write
	cmpq	%rax, %r12
	je	LBB0_2
## %bb.6:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_7
LBB0_9:
	leaq	1(%rbx), %rdi
	movl	$1, %esi
	callq	_pemalloc
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	*%r14
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movb	$0, (%r12,%rbx)
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str(%rip), %rdx
LBB0_7:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_8:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_12
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gets_stream,4,2                ## @gets_stream
	.comm	_GETS_FETCH_SIZE,4,2            ## @GETS_FETCH_SIZE
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read from socket"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to write to stream"

	.no_dead_strip	_php_mail_gets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_mail_gets
_php_mail_gets:                         ; @php_mail_gets
	.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, #16
	mov	x19, x2
	mov	x21, x1
	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	x26, _gets_stream@GOTPAGE
Lloh4:
	ldr	x26, [x26, _gets_stream@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_IMAPG
	cbz	x0, LBB0_9
; %bb.1:
	mov	x25, sp
Lloh5:
	adrp	x27, _GETS_FETCH_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _GETS_FETCH_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x28, [x27]
	cmp	x19, x28
	csel	x24, x19, x28, lo
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	blr	x20
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x8, x19, x28
	csel	x19, xzr, x8, lo
	ldr	w0, [x26]
	bl	_IMAPG
	mov	x1, x23
	mov	x2, x24
	bl	_php_stream_write
	cmp	x24, x0
	b.eq	LBB0_2
; %bb.5:
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_6:
Lloh13:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x2, x22
	bl	_php_error_docref
LBB0_7:
	mov	sp, x25
LBB0_8:
	mov	x22, #0
	b	LBB0_11
LBB0_9:
	add	x0, x19, #1
	mov	w1, #1
	bl	_pemalloc
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	blr	x20
	cbz	x0, LBB0_13
; %bb.10:
	strb	wzr, [x22, x19]
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x22
	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_13:
Lloh19:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	bl	_php_error_docref
	mov	x0, x22
	bl	_free
	b	LBB0_8
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_gets_stream,4,2                ; @gets_stream
	.comm	_GETS_FETCH_SIZE,4,2            ; @GETS_FETCH_SIZE
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read from socket"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to write to stream"

	.no_dead_strip	_php_mail_gets
.subsections_via_symbols
