	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lame_calc_attack_threshold
_lame_calc_attack_threshold:            ## @lame_calc_attack_threshold
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_psy_abr_map@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movl	96(%rax), %r14d
	callq	_FFMAX
	movl	$1, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movl	16(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$2, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movl	24(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$3, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.4:
	movq	(%r15), %rax
	movl	32(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$4, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.5:
	movq	(%r15), %rax
	movl	40(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$5, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.6:
	movq	(%r15), %rax
	movl	48(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$6, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.7:
	movq	(%r15), %rax
	movl	56(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$7, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.8:
	movq	(%r15), %rax
	movl	64(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$8, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.9:
	movq	(%r15), %rax
	movl	72(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$9, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.10:
	movq	(%r15), %rax
	movl	80(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$10, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.11:
	movq	(%r15), %rax
	movl	88(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$11, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.12:
	movq	(%r15), %rax
	movl	96(%rax), %esi
	movl	%ebx, %edi
	callq	_FFMAX
	movl	$12, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.13:
	movq	(%r15), %rax
	movl	$12, %ecx
	movl	$12, %edx
	movl	%r14d, %esi
	jmp	LBB0_14
LBB0_1:
	movl	%ecx, %edx
	movq	(%r15), %rax
	movl	(%rax,%rdx,8), %esi
	leal	-1(%rcx), %edx
	movl	(%rax,%rdx,8), %r14d
LBB0_14:
	subl	%ebx, %esi
	subl	%r14d, %ebx
	cmpl	%ebx, %esi
	movl	%ecx, %ecx
	cmovgq	%rdx, %rcx
	movss	4(%rax,%rcx,8), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_psy_abr_map,8,3                ## @psy_abr_map
	.no_dead_strip	_lame_calc_attack_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lame_calc_attack_threshold
_lame_calc_attack_threshold:            ; @lame_calc_attack_threshold
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x20, _psy_abr_map@GOTPAGE
Lloh1:
	ldr	x20, [x20, _psy_abr_map@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w21, [x8, #96]
	ldr	w1, [x8, #8]
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_13
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	w1, [x8, #24]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x20]
	ldr	w1, [x8, #32]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_16
; %bb.4:
	ldr	x8, [x20]
	ldr	w1, [x8, #40]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_17
; %bb.5:
	ldr	x8, [x20]
	ldr	w1, [x8, #48]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_18
; %bb.6:
	ldr	x8, [x20]
	ldr	w1, [x8, #56]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_19
; %bb.7:
	ldr	x8, [x20]
	ldr	w1, [x8, #64]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_20
; %bb.8:
	ldr	x8, [x20]
	ldr	w1, [x8, #72]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_21
; %bb.9:
	ldr	x8, [x20]
	ldr	w1, [x8, #80]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_22
; %bb.10:
	ldr	x8, [x20]
	ldr	w1, [x8, #88]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_23
; %bb.11:
	ldr	x8, [x20]
	ldr	w1, [x8, #96]
	mov	x0, x19
	bl	_FFMAX
	cmp	w0, w19
	b.ne	LBB0_24
; %bb.12:
	ldr	x9, [x20]
	mov	w10, #12
	mov	w8, #12
	mov	x11, x21
	b	LBB0_26
LBB0_13:
	mov	w8, #1
	b	LBB0_25
LBB0_14:
	mov	w8, #2
	b	LBB0_25
LBB0_15:
	mov	w8, #3
	b	LBB0_25
LBB0_16:
	mov	w8, #4
	b	LBB0_25
LBB0_17:
	mov	w8, #5
	b	LBB0_25
LBB0_18:
	mov	w8, #6
	b	LBB0_25
LBB0_19:
	mov	w8, #7
	b	LBB0_25
LBB0_20:
	mov	w8, #8
	b	LBB0_25
LBB0_21:
	mov	w8, #9
	b	LBB0_25
LBB0_22:
	mov	w8, #10
	b	LBB0_25
LBB0_23:
	mov	w8, #11
	b	LBB0_25
LBB0_24:
	mov	w8, #12
LBB0_25:
	mov	w10, w8
	ldr	x9, [x20]
	lsl	x10, x10, #3
	ldr	w11, [x9, x10]
	sub	w10, w8, #1
	lsl	x12, x10, #3
	ldr	w21, [x9, x12]
LBB0_26:
	sub	w11, w11, w19
	add	x10, x9, x10, lsl #3
	add	x10, x10, #4
	add	x8, x9, w8, uxtw #3
	add	x8, x8, #4
	sub	w9, w19, w21
	cmp	w11, w9
	csel	x8, x10, x8, gt
	ldr	s0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_psy_abr_map,8,3                ; @psy_abr_map
	.no_dead_strip	_lame_calc_attack_threshold
.subsections_via_symbols
