	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_create_request             ## -- Begin function rad_create_request
	.p2align	4, 0x90
_rad_create_request:                    ## @rad_create_request
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_RADIUS_SERVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.5:
	movq	16(%r12), %rax
	movq	_POS_CODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%esi, (%rax,%rcx,4)
	movl	24(%r12), %ecx
	incl	%ecx
	movl	%ecx, 24(%r12)
	movq	_POS_IDENT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_RAD_ACCESS_REQUEST@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_9
## %bb.6:
	movq	_LEN_AUTH@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.7:
	movq	_POS_AUTH@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	movq	16(%r12), %rcx
	movslq	(%r15), %rdx
	addq	%rbx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	shrq	$8, %rax
	movl	(%r15), %edx
	addl	%ebx, %edx
	incl	%edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addq	$2, %rbx
	cmpl	(%r14), %ebx
	jl	LBB0_8
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_generr
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_POS_AUTH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	_LEN_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_10:
	movq	_POS_ATTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	%r12, %rdi
	callq	_clear_password
	movq	$0, 32(%r12)
	movl	$1, 28(%r12)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_SERVER,8,3              ## @RADIUS_SERVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"denied function call"

L_.str.1:                               ## @.str.1
	.asciz	"No RADIUS servers specified"

	.comm	_POS_CODE,8,3                   ## @POS_CODE
	.comm	_POS_IDENT,8,3                  ## @POS_IDENT
	.comm	_RAD_ACCESS_REQUEST,4,2         ## @RAD_ACCESS_REQUEST
	.comm	_LEN_AUTH,4,2                   ## @LEN_AUTH
	.comm	_POS_AUTH,4,2                   ## @POS_AUTH
	.comm	_POS_ATTRS,4,2                  ## @POS_ATTRS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_create_request             ; -- Begin function rad_create_request
	.p2align	2
_rad_create_request:                    ; @rad_create_request
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RADIUS_SERVER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADIUS_SERVER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _POS_CODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POS_CODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	w1, [x8, x9, lsl #2]
	ldr	w9, [x19, #24]
	add	w9, w9, #1
	str	w9, [x19, #24]
Lloh8:
	adrp	x10, _POS_IDENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _POS_IDENT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
Lloh11:
	adrp	x9, _RAD_ACCESS_REQUEST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RAD_ACCESS_REQUEST@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_9
; %bb.4:
Lloh14:
	adrp	x20, _LEN_AUTH@GOTPAGE
Lloh15:
	ldr	x20, [x20, _LEN_AUTH@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x21, #0
Lloh16:
	adrp	x22, _POS_AUTH@GOTPAGE
Lloh17:
	ldr	x22, [x22, _POS_AUTH@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_random
	ldr	x8, [x19, #16]
	ldrsw	x9, [x22]
	add	x9, x21, x9
	str	w0, [x8, x9, lsl #2]
	lsr	x9, x0, #8
	ldr	w10, [x22]
	add	w10, w21, w10
	add	w10, w10, #1
	str	w9, [x8, w10, sxtw #2]
	ldr	w8, [x20]
	add	x21, x21, #2
	cmp	w21, w8
	b.lt	LBB0_6
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_generr
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x9, _POS_AUTH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _POS_AUTH@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
Lloh23:
	adrp	x8, _LEN_AUTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LEN_AUTH@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
LBB0_10:
Lloh26:
	adrp	x8, _POS_ATTRS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _POS_ATTRS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_clear_password
	mov	w0, #0
	str	xzr, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_SERVER,8,3              ; @RADIUS_SERVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"denied function call"

l_.str.1:                               ; @.str.1
	.asciz	"No RADIUS servers specified"

	.comm	_POS_CODE,8,3                   ; @POS_CODE
	.comm	_POS_IDENT,8,3                  ; @POS_IDENT
	.comm	_RAD_ACCESS_REQUEST,4,2         ; @RAD_ACCESS_REQUEST
	.comm	_LEN_AUTH,4,2                   ; @LEN_AUTH
	.comm	_POS_AUTH,4,2                   ; @POS_AUTH
	.comm	_POS_ATTRS,4,2                  ; @POS_ATTRS
.subsections_via_symbols
