	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_receive_request            ## -- Begin function rad_receive_request
	.p2align	4, 0x90
_rad_receive_request:                   ## @rad_receive_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_RADIUS_SERVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	$-1, 8(%rbx)
	movl	$16, -12(%rbp)
	movl	40(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	_MSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MSG_WAITALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	leaq	-12(%rbp), %r9
	callq	_recvfrom
	movl	%eax, 12(%rbx)
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.3:
	movl	24(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	32(%rbx), %rcx
	movq	-24(%rbp), %rsi
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rcx)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	addq	$16, %rcx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_10:
	cmpl	$-1, 8(%rbx)
	jne	LBB0_7
## %bb.11:
	movl	$-2, %eax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_generr
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_14:
	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_13
LBB0_6:
	movl	-32(%rbp), %eax
	movl	%eax, -8(%rcx)
	movl	%edx, 8(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_is_valid_request
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	16(%rbx), %rax
	movq	_POS_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	shll	$8, %edx
	orl	4(%rax,%rcx,4), %edx
	movl	%edx, 12(%rbx)
	movq	_POS_ATTRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movq	_POS_CODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_13
LBB0_8:
	movl	$-3, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	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"

	.comm	_MSGSIZE,4,2                    ## @MSGSIZE
	.comm	_MSG_WAITALL,4,2                ## @MSG_WAITALL
L_.str.1:                               ## @.str.1
	.asciz	"recvfrom: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_POS_LENGTH,8,3                 ## @POS_LENGTH
	.comm	_POS_ATTRS,4,2                  ## @POS_ATTRS
	.comm	_POS_CODE,8,3                   ## @POS_CODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_receive_request            ; -- Begin function rad_receive_request
	.p2align	2
_rad_receive_request:                   ; @rad_receive_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_8
; %bb.1:
	mov	w8, #-1
	str	w8, [x19, #8]
	mov	w8, #16
	str	w8, [sp, #12]
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #16]
Lloh3:
	adrp	x8, _MSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MSG_WAITALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_WAITALL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #16
	add	x5, sp, #12
	bl	_recvfrom
	str	w0, [x19, #12]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.2:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x9, #0
	ldr	x10, [x19, #32]
	ldr	x11, [sp, #24]
	add	x10, x10, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_6:
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.ne	LBB0_13
; %bb.7:
	mov	w0, #-2
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_generr
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	ldr	w8, [sp, #16]
	stur	w8, [x10, #-8]
	str	w9, [x19, #8]
LBB0_13:
	mov	x0, x19
	bl	_is_valid_request
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x19, #16]
Lloh16:
	adrp	x9, _POS_LENGTH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _POS_LENGTH@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #2
	ldp	w10, w9, [x9]
	orr	w9, w9, w10, lsl #8
	str	w9, [x19, #12]
Lloh19:
	adrp	x9, _POS_ATTRS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _POS_ATTRS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	str	w9, [x19, #28]
Lloh22:
	adrp	x9, _POS_CODE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _POS_CODE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_11
LBB0_15:
	mov	w0, #-3
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_SERVER,8,3              ; @RADIUS_SERVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"denied function call"

	.comm	_MSGSIZE,4,2                    ; @MSGSIZE
	.comm	_MSG_WAITALL,4,2                ; @MSG_WAITALL
l_.str.1:                               ; @.str.1
	.asciz	"recvfrom: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_POS_LENGTH,8,3                 ; @POS_LENGTH
	.comm	_POS_ATTRS,4,2                  ; @POS_ATTRS
	.comm	_POS_CODE,8,3                   ; @POS_CODE
.subsections_via_symbols
