	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_parse               ## -- Begin function radius_msg_parse
	.p2align	4, 0x90
_radius_msg_parse:                      ## @radius_msg_parse
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$4, %rsi
	jb	LBB0_19
## %bb.2:
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_be_to_host16
	cmpq	$4, %rax
	jb	LBB0_4
## %bb.3:
	movq	%rax, %r15
	cmpq	%rbx, %rax
	ja	LBB0_4
## %bb.5:
	jae	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	%r15, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_alloc_copy
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%r14, %rdi
	callq	_radius_msg_initialize
	testq	%rax, %rax
	je	LBB0_10
LBB0_17:
	movq	%r14, %rdi
	callq	_radius_msg_free
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_19:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r14), %rdi
	callq	_wpabuf_mhead
	movl	%eax, 8(%r14)
	movq	(%r14), %rdi
	callq	_wpabuf_mhead_u8
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	(%r14), %rdi
	callq	_wpabuf_mhead_u8
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_wpabuf_len
	movslq	%eax, %r12
	addq	%r15, %r12
	cmpq	%r12, %rbx
	jae	LBB0_19
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$4, %rax
	jb	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	(%rbx), %rcx
	cmpq	$4, %rcx
	jb	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rcx, %rax
	jl	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_radius_msg_add_attr_to_array
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	(%rbx), %rax
	addq	%rax, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_12
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RADIUS: Invalid message length"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"RADIUS: Ignored %lu extra bytes after RADIUS message"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_parse               ; -- Begin function radius_msg_parse
	.p2align	2
_radius_msg_parse:                      ; @radius_msg_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, #0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x1
	cmp	x1, #4
	b.lo	LBB0_11
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_be_to_host16
	cmp	x0, #4
	ccmp	x0, x22, #2, hs
	b.ls	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_10
LBB0_4:
	mov	x21, x0
	cmp	x0, x22
	b.hs	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	sub	x8, x22, x21
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_alloc_copy
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_radius_msg_initialize
	cbz	x0, LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_radius_msg_free
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	ldr	x0, [x19]
	bl	_wpabuf_mhead
	str	w0, [x19, #8]
	ldr	x0, [x19]
	bl	_wpabuf_mhead_u8
	add	x20, x0, #4
	ldr	x0, [x19]
	bl	_wpabuf_mhead_u8
	mov	x21, x0
	ldr	x0, [x19]
	bl	_wpabuf_len
	add	x21, x21, w0, sxtw
	cmp	x20, x21
	b.hs	LBB0_11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x21, x20
	cmp	x8, #4
	b.lo	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x9, [x20]
	cmp	w9, #4
	ccmp	x8, x9, #8, hs
	b.lt	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_radius_msg_add_attr_to_array
	cbnz	x0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x8, [x20]
	add	x20, x20, x8
	cmp	x20, x21
	b.lo	LBB0_13
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RADIUS: Invalid message length"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"RADIUS: Ignored %lu extra bytes after RADIUS message"

.subsections_via_symbols
