	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smtp_login
_smtp_login:                            ## @smtp_login
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r15d
	callq	_smtp_auth_md5
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	cmpl	$-2, %ebx
	je	LBB0_16
## %bb.2:
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_INSECURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SECURETRANS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_send_remote_command
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_remote
	cmpl	$3, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_strlen
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_base64_encode
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-40(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_send_remote_command
	movq	-40(%rbp), %rdi
	callq	_free
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_remote
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	callq	_strlen
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_base64_encode
	testl	%eax, %eax
	js	LBB0_7
## %bb.12:
	movq	-40(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_send_remote_command
	movq	-40(%rbp), %rdi
	callq	_free
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_remote
	cmpl	$2, %eax
	je	LBB0_17
## %bb.13:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%ebx, %ebx
	cmpl	$5, %eax
	setne	%bl
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_neterr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_neterr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_16
LBB0_7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
LBB0_15:
	xorl	%eax, %eax
	callq	_syslog
LBB0_16:
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%ebx, %ebx
	cmpl	$5, %eax
	setne	%bl
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_neterr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_syslog
	addl	%ebx, %ebx
	decl	%ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_config,4,2                     ## @config
	.comm	_INSECURE,4,2                   ## @INSECURE
	.comm	_SECURETRANS,4,2                ## @SECURETRANS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUTH LOGIN"

	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.1:                               ## @.str.1
	.asciz	"remote delivery deferred: AUTH login not available: %s"

	.comm	_neterr,4,2                     ## @neterr
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"can not encode auth reply: %m"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"remote delivery %s: AUTH login failed: %s"

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

L_.str.6:                               ## @.str.6
	.asciz	"deferred"

L_.str.7:                               ## @.str.7
	.asciz	"remote delivery %s: Authentication failed: %s"

	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.8:                               ## @.str.8
	.asciz	"non-encrypted SMTP login is disabled in config, so skipping it. "

	.no_dead_strip	_smtp_login
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smtp_login
_smtp_login:                            ; @smtp_login
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_smtp_auth_md5
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.1:
	cmn	w22, #2
	b.eq	LBB0_14
; %bb.2:
Lloh0:
	adrp	x8, _config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _INSECURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INSECURE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _SECURETRANS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SECURETRANS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_send_remote_command
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_remote
	cmp	w0, #3
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #24
	mov	x0, x21
	bl	_base64_encode
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_send_remote_command
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_remote
	cmp	w0, #3
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #24
	mov	x0, x20
	bl	_base64_encode
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_send_remote_command
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_remote
	mov	w22, #0
	cmp	w0, #2
	b.eq	LBB0_15
; %bb.9:
Lloh15:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh17:
	adrp	x9, l_.str.6@PAGE
Lloh18:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh19:
	adrp	x10, l_.str.5@PAGE
Lloh20:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh21:
	ldr	w8, [x8]
	cmp	w0, #5
	csel	x9, x10, x9, eq
Lloh22:
	adrp	x10, _neterr@GOTPAGE
Lloh23:
	ldr	x10, [x10, _neterr@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	stp	x9, x10, [sp]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_10:
Lloh27:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _neterr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _neterr@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh35:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh40:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_13:
	bl	_syslog
LBB0_14:
	mov	w22, #1
LBB0_15:
	mov	x0, x22
	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
LBB0_16:
Lloh45:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh47:
	adrp	x9, l_.str.6@PAGE
Lloh48:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh49:
	adrp	x10, l_.str.5@PAGE
Lloh50:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh51:
	ldr	w8, [x8]
	cmp	w0, #5
	csel	x9, x10, x9, eq
Lloh52:
	adrp	x10, _neterr@GOTPAGE
Lloh53:
	ldr	x10, [x10, _neterr@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	stp	x9, x10, [sp]
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	mov	w9, #-1
	cneg	w22, w9, ne
	mov	x0, x8
	bl	_syslog
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_config,4,2                     ; @config
	.comm	_INSECURE,4,2                   ; @INSECURE
	.comm	_SECURETRANS,4,2                ; @SECURETRANS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUTH LOGIN"

	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.1:                               ; @.str.1
	.asciz	"remote delivery deferred: AUTH login not available: %s"

	.comm	_neterr,4,2                     ; @neterr
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"can not encode auth reply: %m"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"remote delivery %s: AUTH login failed: %s"

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

l_.str.6:                               ; @.str.6
	.asciz	"deferred"

l_.str.7:                               ; @.str.7
	.asciz	"remote delivery %s: Authentication failed: %s"

	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.8:                               ; @.str.8
	.asciz	"non-encrypted SMTP login is disabled in config, so skipping it. "

	.no_dead_strip	_smtp_login
.subsections_via_symbols
