	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_prob
_init_prob:                             ## @init_prob
	.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
	movq	_File_tail@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_NO_PROB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_Equal_probs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%r8d, %r8d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	testq	%rdx, %rdx
	movq	%rax, %rbx
	cmoveq	%rdi, %rbx
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	cmpl	%r9d, %esi
	sete	%cl
	cmovneq	%rdi, %rbx
	cmovel	%r8d, %esi
	addl	%esi, %r12d
	addl	%ecx, %r14d
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_DPRINTF
	cmpl	$101, %r12d
	jge	LBB0_8
## %bb.2:
	cmpl	$100, %r12d
	jne	LBB0_3
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_DPRINTF
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	cmpl	$100, %r12d
	je	LBB0_10
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_10:
	cmpl	$100, %r12d
	jne	LBB0_12
## %bb.11:
	testl	%r14d, %r14d
	jne	LBB0_23
LBB0_12:
	movq	_Equal_probs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.13:
	movl	$100, %r15d
	subl	%r12d, %r15d
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.14:
	cmpl	$2, %r14d
	jl	LBB0_20
## %bb.15:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %r14d
	movl	$1, %edi
	movl	%eax, %esi
	callq	_DPRINTF
	movq	(%r13), %rax
	cmpq	%rbx, %rax
	je	LBB0_20
## %bb.16:
	movq	_NO_PROB@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rax), %rax
	cmpq	%rbx, %rax
	je	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edx
	cmpl	(%rcx), %edx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r14d, (%rax)
	subl	%r14d, %r15d
	jmp	LBB0_19
LBB0_20:
	movl	%r15d, (%rbx)
LBB0_21:
	movl	$1, %edi
	movl	%r15d, %esi
	callq	_DPRINTF
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_File_tail,8,3                  ## @File_tail
	.comm	_NO_PROB,4,2                    ## @NO_PROB
	.comm	_Equal_probs,8,3                ## @Equal_probs
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"fortune: probabilities sum to %d%% > 100%%!\n"

L_.str.2:                               ## @.str.2
	.asciz	"fortune: no place to put residual probability (%d%% < 100%%)\n"

L_.str.3:                               ## @.str.3
	.asciz	"fortune: no probability left to put in residual files (100%%)\n"

L_.str.7:                               ## @.str.7
	.asciz	"\n"

	.comm	_Debug,4,2                      ## @Debug
	.no_dead_strip	_init_prob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_prob
_init_prob:                             ; @init_prob
	.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
Lloh0:
	adrp	x22, _File_tail@GOTPAGE
Lloh1:
	ldr	x22, [x22, _File_tail@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x20, _Equal_probs@GOTPAGE
Lloh3:
	ldr	x20, [x20, _Equal_probs@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w19, #0
	mov	w23, #0
	mov	x21, #0
Lloh4:
	adrp	x9, _NO_PROB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NO_PROB@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	x10, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	x10, #0
	csel	x12, x21, x8, eq
	cmp	w11, w9
	csel	w11, wzr, w11, eq
	csel	x21, x12, x21, eq
	add	w23, w23, w11
	cinc	w19, w19, eq
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
; %bb.3:
	mov	w0, #1
	mov	x1, x19
	bl	_DPRINTF
	cmp	w23, #101
	b.ge	LBB0_22
; %bb.4:
	cmp	w23, #100
	b.ne	LBB0_6
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	mov	w1, #0
	bl	_DPRINTF
	mov	w19, #0
	mov	w23, #0
	mov	x21, #0
	cmp	w23, #100
	b.eq	LBB0_7
LBB0_6:
	cbz	w19, LBB0_20
LBB0_7:
	cmp	w23, #100
	b.ne	LBB0_9
; %bb.8:
	cbnz	w19, LBB0_21
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.10:
	mov	w8, #100
	sub	w20, w8, w23
	cbz	w19, LBB0_18
; %bb.11:
	cmp	w19, #2
	b.lt	LBB0_17
; %bb.12:
	udiv	w19, w20, w19
	mov	w0, #1
	mov	x1, x19
	bl	_DPRINTF
	ldr	x8, [x22]
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.13:
Lloh7:
	adrp	x9, _NO_PROB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NO_PROB@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x8, #8]
	cmp	x8, x21
	b.eq	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w19, [x8]
	sub	w20, w20, w19
	b	LBB0_14
LBB0_17:
	str	w20, [x21]
LBB0_18:
	mov	w0, #1
	mov	x1, x20
	bl	_DPRINTF
LBB0_19:
Lloh9:
	adrp	x1, l_.str.7@PAGE
Lloh10:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	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
	b	_DPRINTF
LBB0_20:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_23:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_File_tail,8,3                  ; @File_tail
	.comm	_NO_PROB,4,2                    ; @NO_PROB
	.comm	_Equal_probs,8,3                ; @Equal_probs
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"fortune: probabilities sum to %d%% > 100%%!\n"

l_.str.2:                               ; @.str.2
	.asciz	"fortune: no place to put residual probability (%d%% < 100%%)\n"

l_.str.3:                               ; @.str.3
	.asciz	"fortune: no probability left to put in residual files (100%%)\n"

l_.str.7:                               ; @.str.7
	.asciz	"\n"

	.comm	_Debug,4,2                      ; @Debug
	.no_dead_strip	_init_prob
.subsections_via_symbols
