	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___set_curnode                  ## -- Begin function __set_curnode
	.p2align	4, 0x90
___set_curnode:                         ## @__set_curnode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	cmpl	%esi, %ecx
	cmovgl	%esi, %edx
	decl	%ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	movl	%ecx, 4(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___set_curnode                  ; -- Begin function __set_curnode
	.p2align	2
___set_curnode:                         ; @__set_curnode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, w1
	csel	w10, w1, wzr, gt
	sub	w9, w9, #1
	cmp	w10, #0
	csel	w9, w9, w10, lt
	str	w9, [x8, #4]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
