	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_server_init             ## -- Begin function radius_server_init
	.p2align	4, 0x90
_radius_server_init:                    ## @radius_server_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_31
LBB0_2:
	movq	%rdi, %rbx
	movl	$200, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.3:
	movq	%rax, %r14
	movq	$-1, (%rax)
	leaq	196(%rax), %rdi
	callq	_dl_list_init
	movq	%r14, %rdi
	addq	$192, %rdi
	callq	_os_get_reltime
	movups	176(%rbx), %xmm0
	movups	%xmm0, 176(%r14)
	movq	16(%rbx), %rax
	movq	%rax, 168(%r14)
	cmpl	$0, 172(%rbx)
	je	LBB0_6
## %bb.4:
	movl	$16, %edi
	callq	_os_malloc
	movq	%rax, 160(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	172(%rbx), %esi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_os_memcpy
LBB0_6:
	cmpl	$0, 168(%rbx)
	je	LBB0_9
## %bb.7:
	movl	(%rbx), %edi
	callq	_os_malloc
	movq	%rax, 152(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %edx
	movl	168(%rbx), %esi
	movq	%rax, %rdi
	callq	_os_memcpy
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
LBB0_9:
	movq	160(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_os_strdup
	movq	%rax, 144(%r14)
LBB0_11:
	movups	140(%rbx), %xmm0
	movups	%xmm0, 128(%r14)
	movups	124(%rbx), %xmm0
	movups	%xmm0, 112(%r14)
	movups	108(%rbx), %xmm0
	movups	%xmm0, 96(%r14)
	cmpl	$0, 104(%rbx)
	je	LBB0_14
## %bb.12:
	movl	4(%rbx), %edi
	callq	_os_malloc
	movq	%rax, 88(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	4(%rbx), %edx
	movl	104(%rbx), %esi
	movq	%rax, %rdi
	callq	_os_memcpy
	movl	4(%rbx), %eax
	movl	%eax, 12(%r14)
LBB0_14:
	movups	88(%rbx), %xmm0
	movups	%xmm0, 72(%r14)
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_os_strdup
	movq	%rax, 64(%r14)
LBB0_16:
	movl	72(%rbx), %eax
	movl	%eax, 56(%r14)
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_os_strdup
	movq	%rax, 48(%r14)
LBB0_18:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_os_strdup
	movq	%rax, 40(%r14)
LBB0_20:
	movl	32(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_radius_server_read_clients
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_27
## %bb.21:
	movq	24(%rbx), %rdi
	callq	_radius_server_open_socket
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_28
## %bb.22:
	movq	_radius_server_receive_auth@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	testq	%rax, %rax
	jne	LBB0_30
## %bb.23:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.24:
	callq	_radius_server_open_socket
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_34
## %bb.25:
	movq	_radius_server_receive_acct@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	testq	%rax, %rax
	jne	LBB0_30
	jmp	LBB0_32
LBB0_27:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_29
LBB0_28:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_29:
	callq	_wpa_printf
LBB0_30:
	movq	%r14, %rdi
	callq	_radius_server_deinit
LBB0_31:
	xorl	%r14d, %r14d
LBB0_32:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_33:
	movl	$-1, 4(%r14)
	jmp	LBB0_32
LBB0_34:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RADIUS server compiled without IPv6 support"

L_.str.1:                               ## @.str.1
	.asciz	"No RADIUS clients configured"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to open UDP socket for RADIUS authentication server"

	.comm	_radius_server_receive_auth,4,2 ## @radius_server_receive_auth
L_.str.3:                               ## @.str.3
	.asciz	"Failed to open UDP socket for RADIUS accounting server"

	.comm	_radius_server_receive_acct,4,2 ## @radius_server_receive_acct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_server_init             ; -- Begin function radius_server_init
	.p2align	2
_radius_server_init:                    ; @radius_server_init
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_30
LBB0_2:
	mov	x20, x0
	mov	w0, #200
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_31
; %bb.3:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
	add	x0, x19, #196
	bl	_dl_list_init
	add	x0, x19, #192
	bl	_os_get_reltime
	ldr	q0, [x20, #176]
	str	q0, [x19, #176]
	ldr	x8, [x20, #16]
	str	x8, [x19, #168]
	ldr	w8, [x20, #172]
	cbz	w8, LBB0_6
; %bb.4:
	mov	w0, #16
	bl	_os_malloc
	str	x0, [x19, #160]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x20, #172]
	mov	w2, #16
	bl	_os_memcpy
LBB0_6:
	ldr	w8, [x20, #168]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w0, [x20]
	bl	_os_malloc
	str	x0, [x19, #152]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x20, #168]
	ldr	w2, [x20]
	bl	_os_memcpy
	ldr	w8, [x20]
	str	w8, [x19, #8]
LBB0_9:
	ldr	x0, [x20, #160]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_os_strdup
	str	x0, [x19, #144]
LBB0_11:
	ldur	q0, [x20, #140]
	str	q0, [x19, #128]
	ldur	q0, [x20, #124]
	str	q0, [x19, #112]
	ldur	q0, [x20, #108]
	str	q0, [x19, #96]
	ldr	w8, [x20, #104]
	cbz	w8, LBB0_14
; %bb.12:
	ldr	w0, [x20, #4]
	bl	_os_malloc
	str	x0, [x19, #88]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w1, [x20, #104]
	ldr	w2, [x20, #4]
	bl	_os_memcpy
	ldr	w8, [x20, #4]
	str	w8, [x19, #12]
LBB0_14:
	ldur	q0, [x20, #88]
	stur	q0, [x19, #72]
	ldr	x0, [x20, #80]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_os_strdup
	str	x0, [x19, #64]
LBB0_16:
	ldr	w8, [x20, #72]
	str	w8, [x19, #56]
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_os_strdup
	str	x0, [x19, #48]
LBB0_18:
	ldr	x0, [x20, #56]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_os_strdup
	str	x0, [x19, #40]
LBB0_20:
	ldr	w0, [x20, #32]
	ldr	x1, [x20, #16]
	bl	_radius_server_read_clients
	str	x0, [x19, #16]
	cbz	x0, LBB0_26
; %bb.21:
	ldr	x0, [x20, #24]
	bl	_radius_server_open_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_27
; %bb.22:
Lloh5:
	adrp	x8, _radius_server_receive_auth@GOTPAGE
Lloh6:
	ldr	x8, [x8, _radius_server_receive_auth@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x19
	mov	x3, #0
	bl	_eloop_register_read_sock
	cbnz	x0, LBB0_29
; %bb.23:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_32
; %bb.24:
	bl	_radius_server_open_socket
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_33
; %bb.25:
Lloh8:
	adrp	x8, _radius_server_receive_acct@GOTPAGE
Lloh9:
	ldr	x8, [x8, _radius_server_receive_acct@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x19
	mov	x3, #0
	bl	_eloop_register_read_sock
	cbnz	x0, LBB0_29
	b	LBB0_31
LBB0_26:
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_27:
Lloh16:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_28:
	bl	_wpa_printf
LBB0_29:
	mov	x0, x19
	bl	_radius_server_deinit
LBB0_30:
	mov	x19, #0
LBB0_31:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	w8, #-1
	str	w8, [x19, #4]
	b	LBB0_31
LBB0_33:
Lloh21:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_28
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RADIUS server compiled without IPv6 support"

l_.str.1:                               ; @.str.1
	.asciz	"No RADIUS clients configured"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to open UDP socket for RADIUS authentication server"

	.comm	_radius_server_receive_auth,4,2 ; @radius_server_receive_auth
l_.str.3:                               ; @.str.3
	.asciz	"Failed to open UDP socket for RADIUS accounting server"

	.comm	_radius_server_receive_acct,4,2 ; @radius_server_receive_acct
.subsections_via_symbols
