	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_weights_set_half_life       ## -- Begin function do_weights_set_half_life
	.p2align	4, 0x90
_do_weights_set_half_life:              ## @do_weights_set_half_life
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$-1, %ebx
	testl	%edi, %edi
	js	LBB0_5
## %bb.1:
	movl	%esi, %edx
	testl	%esi, %esi
	jle	LBB0_5
## %bb.2:
	movq	_WEIGHTS_MAX_COORDS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_5
## %bb.3:
	movq	_LEV_WEIGHTS_SET_HALF_LIFE@GOTPCREL(%rip), %rax
	movl	%edi, %edi
	addq	(%rax), %rdi
	movl	$4, %esi
	callq	_alloc_log_event
	movq	%rax, %rdi
	callq	_weights_set_half_life
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_5
## %bb.4:
	movl	$4, %edi
	callq	_unalloc_log_event
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WEIGHTS_MAX_COORDS,4,2         ## @WEIGHTS_MAX_COORDS
	.comm	_LEV_WEIGHTS_SET_HALF_LIFE,8,3  ## @LEV_WEIGHTS_SET_HALF_LIFE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_weights_set_half_life       ; -- Begin function do_weights_set_half_life
	.p2align	2
_do_weights_set_half_life:              ; @do_weights_set_half_life
	.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
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x2, x1
	mov	w19, #-1
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _WEIGHTS_MAX_COORDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WEIGHTS_MAX_COORDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _LEV_WEIGHTS_SET_HALF_LIFE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_WEIGHTS_SET_HALF_LIFE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, w0, uxtw
	mov	w1, #4
	bl	_alloc_log_event
	bl	_weights_set_half_life
	mov	x19, x0
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.4:
	mov	w0, #4
	bl	_unalloc_log_event
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WEIGHTS_MAX_COORDS,4,2         ; @WEIGHTS_MAX_COORDS
	.comm	_LEV_WEIGHTS_SET_HALF_LIFE,8,3  ; @LEV_WEIGHTS_SET_HALF_LIFE
.subsections_via_symbols
