	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_das_init                ## -- Begin function radius_das_init
	.p2align	4, 0x90
_radius_das_init:                       ## @radius_das_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, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_9
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.3:
	movl	$56, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movl	52(%rbx), %eax
	movl	%eax, 48(%r14)
	movl	48(%rbx), %eax
	movl	%eax, 44(%r14)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 28(%r14)
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	24(%rbx), %rsi
	movl	$4, %edx
	callq	_os_memcpy
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_os_memdup
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	(%rbx), %rdi
	callq	_radius_das_open_socket
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_radius_das_receive@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	movq	%r14, %rdi
	callq	_radius_das_deinit
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open UDP socket for RADIUS DAS"

	.comm	_radius_das_receive,4,2         ## @radius_das_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_das_init                ; -- Begin function radius_das_init
	.p2align	2
_radius_das_init:                       ; @radius_das_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]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.3:
	mov	w0, #56
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
	ldr	d0, [x20, #48]
	stur	d0, [x19, #44]
	ldr	q0, [x20, #32]
	stur	q0, [x19, #28]
	add	x0, x19, #24
	ldr	x1, [x20, #24]
	mov	w2, #4
	bl	_os_memcpy
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	bl	_os_memdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
	ldr	x0, [x20]
	bl	_radius_das_open_socket
	str	x0, [x19]
	tbnz	x0, #63, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _radius_das_receive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radius_das_receive@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, #0
	bl	_eloop_register_read_sock
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	x0, x19
	bl	_radius_das_deinit
LBB0_9:
	mov	x19, #0
LBB0_10:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open UDP socket for RADIUS DAS"

	.comm	_radius_das_receive,4,2         ; @radius_das_receive
.subsections_via_symbols
