	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_init_send_request          ## -- Begin function rad_init_send_request
	.p2align	4, 0x90
_rad_init_send_request:                 ## @rad_init_send_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	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:
	movq	%rdx, %r14
	movq	%rsi, %r15
	cmpl	$-1, 8(%rbx)
	je	LBB0_4
LBB0_8:
	movq	16(%rbx), %rax
	movq	_POS_CODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_RAD_ACCESS_REQUEST@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.12:
	cmpq	$0, 32(%rbx)
	je	LBB0_13
LBB0_18:
	movl	40(%rbx), %ecx
	sarl	$8, %ecx
	movq	_POS_LENGTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	40(%rbx), %ecx
	movl	%ecx, 4(%rax,%rdx,4)
	movl	$0, 44(%rbx)
	xorl	%edi, %edi
	callq	_time
	movl	48(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_32
## %bb.19:
	movq	56(%rbx), %r9
	leaq	-1(%r8), %rcx
	movl	%r8d, %edx
	andl	$3, %edx
	cmpq	$3, %rcx
	jae	LBB0_29
## %bb.20:
	xorl	%edi, %edi
	jmp	LBB0_21
LBB0_9:
	cmpq	$0, 24(%rbx)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 64(%rbx)
	je	LBB0_18
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_generr
	movl	$-1, %eax
	jmp	LBB0_43
LBB0_4:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, 8(%rbx)
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$16, -48(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	72(%rbx), %eax
	movl	%eax, -40(%rbp)
	xorl	%edi, %edi
	callq	_htons
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_generr
	movl	8(%rbx), %edi
	callq	_close
	movl	$-1, 8(%rbx)
	movl	$-1, %eax
	jmp	LBB0_43
LBB0_13:
	cmpq	$0, 24(%rbx)
	movq	64(%rbx), %rcx
	je	LBB0_14
## %bb.16:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_generr
	movl	$-1, %eax
	jmp	LBB0_43
LBB0_29:
	movl	%r8d, %ecx
	andl	$-4, %ecx
	leaq	120(%r9), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -96(%rsi)
	movq	$0, -64(%rsi)
	movq	$0, -32(%rsi)
	movq	$0, (%rsi)
	addq	$4, %rdi
	subq	$-128, %rsi
	cmpq	%rdi, %rcx
	jne	LBB0_30
LBB0_21:
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.22:
	shlq	$5, %rdi
	leaq	(%r9,%rdi), %rcx
	addq	$24, %rcx
	shlq	$5, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_23
LBB0_24:
	movq	56(%rbx), %rdx
	movq	%r8, %rsi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	incl	44(%rbx)
	addq	$32, %rdx
	decq	%rsi
	je	LBB0_32
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpq	$0, 16(%rdx)
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpq	%rax, 8(%rdx)
	jg	LBB0_31
## %bb.28:
	movq	$0, (%rdx)
LBB0_32:
	cmpl	%r8d, 44(%rbx)
	jne	LBB0_42
## %bb.33:
	testl	%r8d, %r8d
	jle	LBB0_41
## %bb.34:
	movq	56(%rbx), %rax
	leaq	-1(%r8), %rcx
	movl	%r8d, %edx
	andl	$7, %edx
	cmpq	$7, %rcx
	jae	LBB0_36
## %bb.35:
	xorl	%esi, %esi
	jmp	LBB0_38
LBB0_36:
	andl	$-8, %r8d
	leaq	224(%rax), %rdi
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, -224(%rdi)
	movups	%xmm0, -192(%rdi)
	movups	%xmm0, -160(%rdi)
	movups	%xmm0, -128(%rdi)
	movups	%xmm0, -96(%rdi)
	movups	%xmm0, -64(%rdi)
	movups	%xmm0, -32(%rdi)
	addq	$8, %rsi
	movups	%xmm0, (%rdi)
	addq	$256, %rdi                      ## imm = 0x100
	cmpq	%rsi, %r8
	jne	LBB0_37
LBB0_38:
	testq	%rdx, %rdx
	je	LBB0_41
## %bb.39:
	shlq	$5, %rsi
	addq	%rsi, %rax
	shlq	$5, %rdx
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_40
LBB0_41:
	movl	$0, 44(%rbx)
LBB0_42:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_rad_continue_send_request
LBB0_43:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_SERVER,8,3              ## @RADIUS_SERVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"denied function call"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
L_.str.1:                               ## @.str.1
	.asciz	"Cannot create socket: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.2:                               ## @.str.2
	.asciz	"bind: %s"

	.comm	_POS_CODE,8,3                   ## @POS_CODE
	.comm	_RAD_ACCESS_REQUEST,4,2         ## @RAD_ACCESS_REQUEST
L_.str.3:                               ## @.str.3
	.asciz	"User or Chap Password in accounting request"

L_.str.4:                               ## @.str.4
	.asciz	"No User or Chap Password attributes given"

L_.str.5:                               ## @.str.5
	.asciz	"Both User and Chap Password attributes given"

	.comm	_POS_LENGTH,8,3                 ## @POS_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_init_send_request          ; -- Begin function rad_init_send_request
	.p2align	2
_rad_init_send_request:                 ; @rad_init_send_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_18
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_11
LBB0_3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _POS_CODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POS_CODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh8:
	adrp	x10, _RAD_ACCESS_REQUEST@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RAD_ACCESS_REQUEST@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_14
LBB0_5:
	ldr	w9, [x19, #40]
	asr	w9, w9, #8
Lloh11:
	adrp	x10, _POS_LENGTH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _POS_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x8, x8, x10, lsl #2
	str	w9, [x8]
	ldr	w9, [x19, #40]
	str	w9, [x8, #4]
	str	wzr, [x19, #44]
	mov	x0, #0
	bl	_time
	ldr	w8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.6:
	ldr	x9, [x19, #56]
	cmp	w8, #4
	b.hs	LBB0_20
; %bb.7:
	mov	x10, #0
	b	LBB0_23
LBB0_8:
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_5
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_11:
Lloh16:
	adrp	x8, _PF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_socket
	str	w0, [x19, #8]
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.12:
	mov	w22, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh25:
	adrp	x8, _AF_INET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x8]
	ldr	w8, [x19, #72]
	str	w22, [sp, #16]
	stp	w8, w9, [sp, #24]
	mov	w0, #0
	bl	_htons
	str	w0, [sp, #20]
	ldr	w0, [x19, #8]
	add	x1, sp, #16
	mov	w2, #16
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.13:
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_generr
	ldr	w0, [x19, #8]
	bl	_close
	mov	w0, #-1
	str	w0, [x19, #8]
	b	LBB0_19
LBB0_14:
	ldr	x10, [x19, #24]
	ldr	x9, [x19, #64]
	cbz	x10, LBB0_37
; %bb.15:
	cbz	x9, LBB0_5
; %bb.16:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh35:
	adrp	x8, _errno@GOTPAGE
Lloh36:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_generr
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #88
	mov	x12, x10
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x11, #-64]
	stur	xzr, [x11, #-32]
	str	xzr, [x11]
	str	xzr, [x11, #32]
	add	x11, x11, #128
	subs	x12, x12, #4
	b.ne	LBB0_21
; %bb.22:
	cmp	x10, x8
	b.eq	LBB0_25
LBB0_23:
	add	x9, x9, x10, lsl #5
	add	x9, x9, #24
	sub	x10, x8, x10
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #32
	subs	x10, x10, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	x9, [x19, #56]
	mov	x10, x8
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w11, [x19, #44]
	add	w11, w11, #1
	str	w11, [x19, #44]
	add	x9, x9, #32
	subs	x10, x10, #1
	b.eq	LBB0_31
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x11, [x9, #16]
	cbz	x11, LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x11, [x9, #8]
	cmp	x11, x0
	b.gt	LBB0_26
; %bb.30:
	str	xzr, [x9]
LBB0_31:
	ldr	w9, [x19, #44]
	cmp	w9, w8
	b.ne	LBB0_36
; %bb.32:
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.33:
	ldr	x9, [x19, #56]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x9], #32
	subs	x8, x8, #1
	b.ne	LBB0_34
LBB0_35:
	str	wzr, [x19, #44]
LBB0_36:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	x3, x20
	bl	_rad_continue_send_request
	b	LBB0_19
LBB0_37:
	cbnz	x9, LBB0_5
; %bb.38:
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_SERVER,8,3              ; @RADIUS_SERVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"denied function call"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
l_.str.1:                               ; @.str.1
	.asciz	"Cannot create socket: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.2:                               ; @.str.2
	.asciz	"bind: %s"

	.comm	_POS_CODE,8,3                   ; @POS_CODE
	.comm	_RAD_ACCESS_REQUEST,4,2         ; @RAD_ACCESS_REQUEST
l_.str.3:                               ; @.str.3
	.asciz	"User or Chap Password in accounting request"

l_.str.4:                               ; @.str.4
	.asciz	"No User or Chap Password attributes given"

l_.str.5:                               ; @.str.5
	.asciz	"Both User and Chap Password attributes given"

	.comm	_POS_LENGTH,8,3                 ; @POS_LENGTH
.subsections_via_symbols
