	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmlab_action_discrete_bounds
_dmlab_action_discrete_bounds:          ## @dmlab_action_discrete_bounds
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	_kActions_StrafeLeftRight@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_kMaxLookAngularVelocity@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_2:
	movl	%esi, %ebx
	movq	_kActions_Fire@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_4
## %bb.3:
	movl	$-1, (%r15)
	jmp	LBB0_6
LBB0_4:
	movq	%rdi, %r12
	movq	_kActionNames@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ARRAY_LEN
	cmpl	%ebx, %eax
	jle	LBB0_8
## %bb.5:
	movl	$0, (%r15)
LBB0_6:
	movl	$1, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movl	(%r13), %edi
	callq	_ARRAY_LEN
	subl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kActions_StrafeLeftRight,4,2   ## @kActions_StrafeLeftRight
	.comm	_kMaxLookAngularVelocity,4,2    ## @kMaxLookAngularVelocity
	.comm	_kActions_Fire,4,2              ## @kActions_Fire
	.comm	_kActionNames,4,2               ## @kActionNames
	.no_dead_strip	_dmlab_action_discrete_bounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmlab_action_discrete_bounds
_dmlab_action_discrete_bounds:          ; @dmlab_action_discrete_bounds
	.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
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _kActions_StrafeLeftRight@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kActions_StrafeLeftRight@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _kMaxLookAngularVelocity@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kMaxLookAngularVelocity@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w9, w9
	str	w9, [x20]
	ldr	w8, [x8]
	b	LBB0_7
LBB0_2:
	mov	x21, x1
Lloh5:
	adrp	x8, _kActions_Fire@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kActions_Fire@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.3:
	mov	w8, #-1
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	mov	x22, x0
Lloh8:
	adrp	x23, _kActionNames@GOTPAGE
Lloh9:
	ldr	x23, [x23, _kActionNames@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_LEN
	cmp	w0, w21
	b.le	LBB0_8
; %bb.5:
	str	wzr, [x20]
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x19]
	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
	ret
LBB0_8:
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w22, [x8]
	ldr	w0, [x23]
	bl	_ARRAY_LEN
	sub	w1, w21, w0
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	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
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_kActions_StrafeLeftRight,4,2   ; @kActions_StrafeLeftRight
	.comm	_kMaxLookAngularVelocity,4,2    ; @kMaxLookAngularVelocity
	.comm	_kActions_Fire,4,2              ; @kActions_Fire
	.comm	_kActionNames,4,2               ; @kActionNames
	.no_dead_strip	_dmlab_action_discrete_bounds
.subsections_via_symbols
