	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function bayes_is_spam
LCPI0_0:
	.quad	0xbffffff583a53b8e              ## double -1.9999899999999999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bayes_is_spam
	.p2align	4, 0x90
_bayes_is_spam:                         ## @bayes_is_spam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_msg_verify
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_4:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debugp
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bayes_is_spam_prob
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	movb	$1, %al
	callq	_debugp
	movq	_BAYES_SPAM_LIMIT@GOTPCREL(%rip), %rbx
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	(%rbx), %xmm0
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmovaq	%rax, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_debugp
	xorl	%ecx, %ecx
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	(%rbx), %xmm1
	seta	%cl
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	movl	$-2, %eax
	cmovbel	%ecx, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bayes_is_spam\n%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"CHECK: <%s>\n"

L_.str.2:                               ## @.str.2
	.asciz	"RES: %.9lf\n"

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

	.comm	_BAYES_SPAM_LIMIT,8,3           ## @BAYES_SPAM_LIMIT
L_.str.4:                               ## @.str.4
	.asciz	"spam"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bayes_is_spam                  ; -- Begin function bayes_is_spam
	.p2align	2
_bayes_is_spam:                         ; @bayes_is_spam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x1
	mov	x20, x0
	bl	_msg_verify
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debugp
	mov	x0, x20
	mov	x1, x19
	bl	_bayes_is_spam_prob
	fmov	d8, d0
	str	d0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debugp
Lloh12:
	adrp	x19, _BAYES_SPAM_LIMIT@GOTPAGE
Lloh13:
	ldr	x19, [x19, _BAYES_SPAM_LIMIT@GOTPAGEOFF]
	ldr	d0, [x19]
Lloh14:
	adrp	x8, l_.str.5@PAGE
Lloh15:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh16:
	adrp	x9, l_.str.4@PAGE
Lloh17:
	add	x9, x9, l_.str.4@PAGEOFF
	fcmp	d8, d0
	csel	x8, x9, x8, gt
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debugp
	ldr	d0, [x19]
	fcmp	d8, d0
	cset	w8, gt
	mov	x9, #15246
	movk	x9, #33701, lsl #16
	movk	x9, #65525, lsl #32
	movk	x9, #49151, lsl #48
	fmov	d0, x9
	fcmp	d8, d0
	mov	w9, #-2
	csel	w0, w9, w8, mi
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bayes_is_spam\n%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"CHECK: <%s>\n"

l_.str.2:                               ; @.str.2
	.asciz	"RES: %.9lf\n"

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

	.comm	_BAYES_SPAM_LIMIT,8,3           ; @BAYES_SPAM_LIMIT
l_.str.4:                               ; @.str.4
	.asciz	"spam"

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

.subsections_via_symbols
