	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bayes_set                      ## -- Begin function bayes_set
	.p2align	4, 0x90
_bayes_set:                             ## @bayes_set
	.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	%edx, %r14d
	movq	%rdi, %r15
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_3
## %bb.1:
	movq	_binlog_readed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_fprintf
LBB0_3:
	movl	$0, -44(%rbp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$5, %rax
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
LBB0_5:
	movl	$0, -48(%rbp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	xorl	%r13d, %r13d
	movl	$0, %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	addq	$5, %rax
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
	movl	-48(%rbp), %edi
LBB0_7:
	callq	_conv_uid
	movq	%rax, %r12
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.8:
	testq	%r12, %r12
	je	LBB0_21
LBB0_9:
	movq	_teach_messages@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r15, %rdi
	callq	_get_words
	addl	$-128, %r14d
	xorl	%r15d, %r15d
	movl	$0, %ebx
	cmpl	$5, %r14d
	ja	LBB0_11
## %bb.10:
	movslq	%r14d, %rax
	leaq	l_switch.table.bayes_set(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	l_switch.table.bayes_set.4(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_11:
	cmpl	$0, -44(%rbp)
	jne	LBB0_16
## %bb.12:
	movq	_words@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.13:
	movl	$8, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_global_bayes@GOTPCREL(%rip), %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_bayes_add_word
	movq	(%r14), %rax
	movq	(%rax,%r13), %rsi
	addq	$8, %r13
	testq	%rsi, %rsi
	jne	LBB0_14
LBB0_15:
	movq	_global_bayes@GOTPCREL(%rip), %rax
	addl	%r15d, (%rax)
	addl	%ebx, 4(%rax)
LBB0_16:
	movl	$1, %r13d
	testq	%r12, %r12
	je	LBB0_21
## %bb.17:
	movq	_words@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:
	movl	$8, %r13d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_bayes_add_word
	movq	(%r14), %rax
	movq	(%rax,%r13), %rsi
	addq	$8, %r13
	testq	%rsi, %rsi
	jne	LBB0_19
LBB0_20:
	addl	%r15d, (%r12)
	addl	%ebx, 4(%r12)
	movl	$1, %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_binlog_readed,8,3              ## @binlog_readed
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bayes_set %d : %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"\001out "

L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"\001uid "

	.comm	_teach_messages,4,2             ## @teach_messages
	.comm	_words,8,3                      ## @words
	.comm	_global_bayes,8,2               ## @global_bayes
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.bayes_set
l_switch.table.bayes_set:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.bayes_set.4
l_switch.table.bayes_set.4:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bayes_set                      ; -- Begin function bayes_set
	.p2align	2
_bayes_set:                             ; @bayes_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _binlog_readed@GOTPAGE
Lloh4:
	ldr	x9, [x9, _binlog_readed@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #2
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_fprintf
LBB0_2:
	str	wzr, [sp, #12]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x0, #5
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
LBB0_4:
	str	wzr, [sp, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x0, #5
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_sscanf
	ldr	w0, [sp, #8]
LBB0_6:
	bl	_conv_uid
	mov	x19, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.7:
	cbnz	x19, LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_22
LBB0_9:
Lloh19:
	adrp	x8, _teach_messages@GOTPAGE
Lloh20:
	ldr	x8, [x8, _teach_messages@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	bl	_get_words
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.10:
	sbfiz	x8, x8, #2, #32
Lloh21:
	adrp	x9, l_switch.table.bayes_set@PAGE
Lloh22:
	add	x9, x9, l_switch.table.bayes_set@PAGEOFF
	ldr	w20, [x9, x8]
Lloh23:
	adrp	x9, l_switch.table.bayes_set.4@PAGE
Lloh24:
	add	x9, x9, l_switch.table.bayes_set.4@PAGEOFF
	ldr	w21, [x9, x8]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
LBB0_11:
	cbnz	x19, LBB0_17
	b	LBB0_21
LBB0_12:
	mov	w20, #0
	mov	w21, #0
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_11
LBB0_13:
Lloh25:
	adrp	x24, _words@GOTPAGE
Lloh26:
	ldr	x24, [x24, _words@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x1, [x8]
Lloh27:
	adrp	x23, _global_bayes@GOTPAGE
Lloh28:
	ldr	x23, [x23, _global_bayes@GOTPAGEOFF]
	cbz	x1, LBB0_16
; %bb.14:
	mov	w25, #8
Lloh29:
	adrp	x22, _global_bayes@GOTPAGE
Lloh30:
	ldr	x22, [x22, _global_bayes@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_bayes_add_word
	ldr	x8, [x24]
	ldr	x1, [x8, x25]
	add	x25, x25, #8
	cbnz	x1, LBB0_15
LBB0_16:
	ldp	w8, w9, [x23]
	add	w8, w8, w20
	add	w9, w9, w21
	stp	w8, w9, [x23]
	cbz	x19, LBB0_21
LBB0_17:
Lloh31:
	adrp	x22, _words@GOTPAGE
Lloh32:
	ldr	x22, [x22, _words@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x1, [x8]
	cbz	x1, LBB0_20
; %bb.18:
	mov	w23, #8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_bayes_add_word
	ldr	x8, [x22]
	ldr	x1, [x8, x23]
	add	x23, x23, #8
	cbnz	x1, LBB0_19
LBB0_20:
	ldp	w8, w9, [x19]
	add	w8, w8, w20
	add	w9, w9, w21
	stp	w8, w9, [x19]
LBB0_21:
	mov	w0, #1
LBB0_22:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_binlog_readed,8,3              ; @binlog_readed
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bayes_set %d : %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"\001out "

l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"\001uid "

	.comm	_teach_messages,4,2             ; @teach_messages
	.comm	_words,8,3                      ; @words
	.comm	_global_bayes,8,2               ; @global_bayes
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.bayes_set
l_switch.table.bayes_set:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.bayes_set.4
l_switch.table.bayes_set.4:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff

.subsections_via_symbols
