	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radius_server_new_session
_radius_server_new_session:             ## @radius_server_new_session
	.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
	movq	(%rdi), %rax
	movq	_RADIUS_MAX_SESSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 24(%rax)
	movq	%r15, 16(%rax)
	movslq	8(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, (%r15)
	movq	_RADIUS_SESSION_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_radius_server_session_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_timeout
	incq	(%r14)
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_RADIUS_DEBUG
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_MAX_SESSION,8,3         ## @RADIUS_MAX_SESSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Maximum number of existing session - no room for a new session"

	.comm	_RADIUS_SESSION_TIMEOUT,4,2     ## @RADIUS_SESSION_TIMEOUT
	.comm	_radius_server_session_timeout,4,2 ## @radius_server_session_timeout
	.no_dead_strip	_radius_server_new_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radius_server_new_session
_radius_server_new_session:             ; @radius_server_new_session
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RADIUS_MAX_SESSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADIUS_MAX_SESSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	stp	x21, x19, [x20, #16]
	ldrsw	x8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	ldr	x9, [x21]
	stp	x9, x8, [x20]
	str	x20, [x21]
Lloh3:
	adrp	x8, _RADIUS_SESSION_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADIUS_SESSION_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _radius_server_session_timeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _radius_server_session_timeout@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_timeout
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RADIUS_DEBUG
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_MAX_SESSION,8,3         ; @RADIUS_MAX_SESSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Maximum number of existing session - no room for a new session"

	.comm	_RADIUS_SESSION_TIMEOUT,4,2     ; @RADIUS_SESSION_TIMEOUT
	.comm	_radius_server_session_timeout,4,2 ; @radius_server_session_timeout
	.no_dead_strip	_radius_server_new_session
.subsections_via_symbols
