	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SMTPTransport_CallbackSendHello
_SMTPTransport_CallbackSendHello:       ## @SMTPTransport_CallbackSendHello
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SMTPTransport_ParseResponse
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_SMTP_BANNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	16(%r15), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ISMTPCallback_OnResponse
	movl	-44(%rbp), %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
	jmp	LBB0_7
LBB0_3:
	leaq	8(%r15), %r14
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-48(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_ISF_SSLONSAMEPORT@GOTPCREL(%rip), %rax
	movq	_ISF_QUERYDSNSUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ISF_QUERYAUTHSUPPORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%eax, %eax
	andl	8(%r15), %ecx
	setne	%al
	movl	%eax, (%r15)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r15
	cmovneq	%rax, %r15
	jmp	LBB0_6
LBB0_4:
	movl	$0, (%r15)
	leaq	L_.str.5(%rip), %r15
LBB0_6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	$16, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	leaq	_SMTPTransport_CallbackSendHello.szHostName(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	%rbx, %rdi
	callq	_strlen
	movb	$0, 1(%rax,%rbx)
	movq	%rbx, %rdi
	callq	_strlen
	movb	$10, (%rbx,%rax)
	movq	_SMTPTransport_CallbackRecvHelloResp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_InternetTransport_DoCommand
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_SMTPTransport_CallbackSendHello.szHostName: ## @SMTPTransport_CallbackSendHello.szHostName
	.asciz	"localhost"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SMTP_BANNER,4,2                ## @SMTP_BANNER
L_.str.1:                               ## @.str.1
	.asciz	"server error: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	"ESMTP"

	.comm	_ISF_SSLONSAMEPORT,4,2          ## @ISF_SSLONSAMEPORT
	.comm	_ISF_QUERYDSNSUPPORT,4,2        ## @ISF_QUERYDSNSUPPORT
	.comm	_ISF_QUERYAUTHSUPPORT,4,2       ## @ISF_QUERYAUTHSUPPORT
L_.str.4:                               ## @.str.4
	.asciz	"EHLO "

L_.str.5:                               ## @.str.5
	.asciz	"HELO "

	.comm	_SMTPTransport_CallbackRecvHelloResp,4,2 ## @SMTPTransport_CallbackRecvHelloResp
	.no_dead_strip	_SMTPTransport_CallbackSendHello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SMTPTransport_CallbackSendHello
_SMTPTransport_CallbackSendHello:       ; @SMTPTransport_CallbackSendHello
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_SMTPTransport_ParseResponse
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _SMTP_BANNER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMTP_BANNER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x0, [x20, #16]
	add	x1, sp, #16
	bl	_ISMTPCallback_OnResponse
	ldr	w0, [sp, #20]
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_debugstr_a
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_7
LBB0_3:
	add	x19, x20, #8
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w0, [sp, #16]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _ISF_SSLONSAMEPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISF_SSLONSAMEPORT@GOTPAGEOFF]
	ldr	w9, [x20, #8]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _ISF_QUERYDSNSUPPORT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ISF_QUERYDSNSUPPORT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh17:
	adrp	x10, _ISF_QUERYAUTHSUPPORT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ISF_QUERYAUTHSUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w8, w8, w10
	tst	w8, w9
	cset	w8, ne
	str	w8, [x20]
Lloh20:
	adrp	x8, l_.str.5@PAGE
Lloh21:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh22:
	adrp	x9, l_.str.4@PAGE
Lloh23:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x20, x9, x8, ne
	b	LBB0_6
LBB0_5:
	str	wzr, [x20]
Lloh24:
	adrp	x20, l_.str.5@PAGE
Lloh25:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_6:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #16
	bl	_HeapAlloc
	mov	x21, x0
	mov	x1, x20
	bl	_strcpy
Lloh26:
	adrp	x1, _SMTPTransport_CallbackSendHello.szHostName@PAGE
Lloh27:
	add	x1, x1, _SMTPTransport_CallbackSendHello.szHostName@PAGEOFF
	mov	x0, x21
	bl	_strcat
	mov	x0, x21
	bl	_strlen
	add	x8, x0, x21
	strb	wzr, [x8, #1]
	mov	x0, x21
	bl	_strlen
	mov	w8, #10
	strb	w8, [x21, x0]
Lloh28:
	adrp	x8, _SMTPTransport_CallbackRecvHelloResp@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SMTPTransport_CallbackRecvHelloResp@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_InternetTransport_DoCommand
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_SMTPTransport_CallbackSendHello.szHostName: ; @SMTPTransport_CallbackSendHello.szHostName
	.asciz	"localhost"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SMTP_BANNER,4,2                ; @SMTP_BANNER
l_.str.1:                               ; @.str.1
	.asciz	"server error: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	"ESMTP"

	.comm	_ISF_SSLONSAMEPORT,4,2          ; @ISF_SSLONSAMEPORT
	.comm	_ISF_QUERYDSNSUPPORT,4,2        ; @ISF_QUERYDSNSUPPORT
	.comm	_ISF_QUERYAUTHSUPPORT,4,2       ; @ISF_QUERYAUTHSUPPORT
l_.str.4:                               ; @.str.4
	.asciz	"EHLO "

l_.str.5:                               ; @.str.5
	.asciz	"HELO "

	.comm	_SMTPTransport_CallbackRecvHelloResp,4,2 ; @SMTPTransport_CallbackRecvHelloResp
	.no_dead_strip	_SMTPTransport_CallbackSendHello
.subsections_via_symbols
