	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apprentice_r_magic_strength
_apprentice_r_magic_strength:           ## @apprentice_r_magic_strength
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %esi
	leal	-128(%rsi), %edx
	cmpl	$37, %edx
	ja	LBB0_20
## %bb.1:
	movq	%rdi, %rbx
	movl	$30, %eax
	xorl	%ecx, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_4:
	movl	$60, %eax
	jmp	LBB0_9
LBB0_2:
	movl	$100, %eax
	jmp	LBB0_9
LBB0_5:
	movl	$40, %eax
	jmp	LBB0_9
LBB0_6:
	movslq	4(%rbx), %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	addq	$20, %rax
	jmp	LBB0_9
LBB0_7:
	movslq	4(%rbx), %r14
	movl	$10, %eax
	xorl	%edx, %edx
	idivl	%r14d
	movl	%eax, %edi
	movl	$1, %esi
	callq	_R_MAX
	imulq	%r14, %rax
	addq	$20, %rax
	jmp	LBB0_9
LBB0_8:
	movslq	4(%rbx), %rax
	leaq	(%rax,%rax,4), %rax
	addq	$20, %rax
LBB0_9:
	movl	8(%rbx), %esi
	leal	-33(%rsi), %edx
	cmpl	$29, %edx
	ja	LBB0_12
## %bb.10:
	movl	$10, %ecx
	leaq	LJTI0_1(%rip), %rdi
	movslq	(%rdi,%rdx,4), %rdx
	addq	%rdi, %rdx
	jmpq	*%rdx
LBB0_11:
	movq	$-20, %rcx
	jmp	LBB0_17
LBB0_12:
	cmpl	$94, %esi
	je	LBB0_16
## %bb.13:
	cmpl	$120, %esi
	je	LBB0_18
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
LBB0_15:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_eprintf
	xorl	%eax, %eax
	callq	_abort
LBB0_16:
	movq	$-10, %rcx
LBB0_17:
	addq	%rcx, %rax
	movq	%rax, %rcx
	jne	LBB0_19
LBB0_18:
	movl	$1, %ecx
LBB0_19:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_19
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_4
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_16
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_11
	.long	L0_1_set_17
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad type %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad relation %c\n"

	.comm	_MULT,4,2                       ## @MULT
	.no_dead_strip	_apprentice_r_magic_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apprentice_r_magic_strength
_apprentice_r_magic_strength:           ; @apprentice_r_magic_strength
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w1, [x0]
	sub	w9, w1, #128
	cmp	w9, #37
	b.hi	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x0, #0
	mov	w8, #30
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w8, #60
	b	LBB0_9
LBB0_3:
	mov	w8, #100
	b	LBB0_9
LBB0_4:
	mov	w8, #40
	b	LBB0_9
LBB0_5:
	ldrsw	x8, [x19, #4]
	mov	w9, #10
	mul	x8, x8, x9
	b	LBB0_8
LBB0_6:
	ldrsw	x20, [x19, #4]
	mov	w8, #10
	sdiv	w0, w8, w20
	mov	w1, #1
	bl	_R_MAX
	mul	x8, x0, x20
	b	LBB0_8
LBB0_7:
	ldrsw	x8, [x19, #4]
	add	x8, x8, x8, lsl #2
LBB0_8:
	add	x8, x8, #20
LBB0_9:
	ldr	w1, [x19, #8]
	sub	w10, w1, #33
	cmp	w10, #29
	b.hi	LBB0_13
; %bb.10:
	mov	w9, #10
Lloh2:
	adrp	x11, lJTI0_1@PAGE
Lloh3:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_11
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_11:
	mov	x9, #-20
LBB0_12:
	adds	x0, x8, x9
	b.ne	LBB0_18
	b	LBB0_17
LBB0_13:
	cmp	w1, #94
	b.eq	LBB0_16
; %bb.14:
	cmp	w1, #120
	b.eq	LBB0_17
LBB0_15:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	bl	_abort
LBB0_16:
	mov	x9, #-10
	adds	x0, x8, x9
	b.ne	LBB0_18
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	bl	_abort
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad type %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad relation %c\n"

	.comm	_MULT,4,2                       ; @MULT
	.no_dead_strip	_apprentice_r_magic_strength
.subsections_via_symbols
