	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smtp_init_crypto               ## -- Begin function smtp_init_crypto
	.p2align	4, 0x90
_smtp_init_crypto:                      ## @smtp_init_crypto
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_SSL_library_init
	xorl	%eax, %eax
	callq	_SSL_load_error_strings
	xorl	%eax, %eax
	callq	_SSLv23_client_method
	movq	%rax, %rdi
	callq	_SSL_CTX_new
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	_config@GOTPCREL(%rip), %r12
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_init_cert_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_21
LBB0_4:
	movq	_SECURETRANS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.5:
	movq	_STARTTLS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_NOSSL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	%eax, 8(%r12)
	xorl	%eax, %eax
	callq	_hostname
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_send_remote_command
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_remote
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_send_remote_command
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_remote
	cmpl	$2, %eax
	jne	LBB0_23
LBB0_8:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, 8(%r12)
LBB0_9:
	movq	%rbx, %rdi
	callq	_SSL_new
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rax, %rdi
	callq	_SSL_set_connect_state
	movq	(%r12), %rdi
	movl	%r14d, %esi
	callq	_SSL_set_fd
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movq	(%r12), %rdi
	callq	_SSL_connect
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	(%r12), %rdi
	callq	_SSL_get_peer_certificate
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_ssl_errstr
	leaq	L_.str.9(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_syslog
LBB0_14:
	movq	%rbx, %rdi
	callq	_X509_free
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_15:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ssl_errstr
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_19
LBB0_16:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ssl_errstr
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_19
LBB0_17:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ssl_errstr
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_19
LBB0_18:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ssl_errstr
	leaq	L_.str.8(%rip), %rsi
LBB0_19:
	movl	%ebx, %edi
	movl	%eax, %edx
LBB0_20:
	xorl	%eax, %eax
	callq	_syslog
LBB0_21:
	movl	$1, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_TLS_OPP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_25
## %bb.24:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_neterr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_22
LBB0_25:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_neterr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote delivery deferred: SSL init failed: %s"

	.comm	_config,24,3                    ## @config
L_.str.1:                               ## @.str.1
	.asciz	"remote delivery deferred"

	.comm	_SECURETRANS,4,2                ## @SECURETRANS
	.comm	_STARTTLS,4,2                   ## @STARTTLS
	.comm	_NOSSL,4,2                      ## @NOSSL
L_.str.2:                               ## @.str.2
	.asciz	"EHLO %s"

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

	.comm	_TLS_OPP,4,2                    ## @TLS_OPP
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.4:                               ## @.str.4
	.asciz	"remote delivery deferred: STARTTLS not available: %s"

	.comm	_neterr,4,2                     ## @neterr
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.5:                               ## @.str.5
	.asciz	"in opportunistic TLS mode, STARTTLS not available: %s"

	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.6:                               ## @.str.6
	.asciz	"remote delivery deferred: SSL struct creation failed: %s"

L_.str.7:                               ## @.str.7
	.asciz	"remote delivery deferred: SSL set fd failed: %s"

L_.str.8:                               ## @.str.8
	.asciz	"remote delivery deferred: SSL handshake failed fatally: %s"

L_.str.9:                               ## @.str.9
	.asciz	"remote delivery deferred: Peer did not provide certificate: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smtp_init_crypto               ; -- Begin function smtp_init_crypto
	.p2align	2
_smtp_init_crypto:                      ; @smtp_init_crypto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_library_init
	bl	_SSL_load_error_strings
	bl	_SSLv23_client_method
	bl	_SSL_CTX_new
	cbz	x0, LBB0_15
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _config@GOTPAGE
Lloh1:
	ldr	x22, [x22, _config@GOTPAGEOFF]
	ldr	x1, [x22, #16]
	cbz	x1, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_init_cert_file
	cbz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh7:
	adrp	x8, _SECURETRANS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SECURETRANS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.5:
Lloh10:
	adrp	x8, _STARTTLS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STARTTLS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
Lloh13:
	adrp	x23, _NOSSL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _NOSSL@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	str	w8, [x22, #8]
	bl	_hostname
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_send_remote_command
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_remote
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.7:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_send_remote_command
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_remote
	cmp	w0, #2
	b.ne	LBB0_22
LBB0_8:
	ldr	w8, [x23]
	ldr	w9, [x22, #8]
	bic	w8, w9, w8
	str	w8, [x22, #8]
LBB0_9:
	mov	x0, x21
	bl	_SSL_new
	str	x0, [x22]
	cbz	x0, LBB0_16
; %bb.10:
	bl	_SSL_set_connect_state
	ldr	x0, [x22]
	mov	x1, x19
	bl	_SSL_set_fd
	cbz	w0, LBB0_17
; %bb.11:
	ldr	x0, [x22]
	bl	_SSL_connect
	tbnz	w0, #31, LBB0_18
; %bb.12:
	ldr	x0, [x22]
	bl	_SSL_get_peer_certificate
	mov	x19, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	bl	_ssl_errstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_syslog
LBB0_14:
	mov	x0, x19
	bl	_X509_free
	b	LBB0_24
LBB0_15:
Lloh24:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	bl	_ssl_errstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh29:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	bl	_ssl_errstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
	bl	_ssl_errstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh39:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh41:
	ldr	w19, [x8]
	bl	_ssl_errstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_19:
	mov	x0, x19
LBB0_20:
	bl	_syslog
	mov	w0, #1
LBB0_21:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
Lloh44:
	adrp	x8, _TLS_OPP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TLS_OPP@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.23:
Lloh47:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x8, _neterr@GOTPAGE
Lloh51:
	ldr	x8, [x8, _neterr@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_syslog
LBB0_24:
	mov	w0, #0
	b	LBB0_21
LBB0_25:
Lloh55:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x8, _neterr@GOTPAGE
Lloh59:
	ldr	x8, [x8, _neterr@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.4@PAGE
Lloh62:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote delivery deferred: SSL init failed: %s"

	.comm	_config,24,3                    ; @config
l_.str.1:                               ; @.str.1
	.asciz	"remote delivery deferred"

	.comm	_SECURETRANS,4,2                ; @SECURETRANS
	.comm	_STARTTLS,4,2                   ; @STARTTLS
	.comm	_NOSSL,4,2                      ; @NOSSL
l_.str.2:                               ; @.str.2
	.asciz	"EHLO %s"

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

	.comm	_TLS_OPP,4,2                    ; @TLS_OPP
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.4:                               ; @.str.4
	.asciz	"remote delivery deferred: STARTTLS not available: %s"

	.comm	_neterr,4,2                     ; @neterr
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.5:                               ; @.str.5
	.asciz	"in opportunistic TLS mode, STARTTLS not available: %s"

	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.6:                               ; @.str.6
	.asciz	"remote delivery deferred: SSL struct creation failed: %s"

l_.str.7:                               ; @.str.7
	.asciz	"remote delivery deferred: SSL set fd failed: %s"

l_.str.8:                               ; @.str.8
	.asciz	"remote delivery deferred: SSL handshake failed fatally: %s"

l_.str.9:                               ; @.str.9
	.asciz	"remote delivery deferred: Peer did not provide certificate: %s"

.subsections_via_symbols
