	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_receive_auth
_ieee802_1x_receive_auth:               ## @ieee802_1x_receive_auth
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_radius_msg_get_hdr
	movq	%rax, %r12
	cmpl	$128, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_radius_msg_get_attr
	testq	%rax, %rax
	jns	LBB0_7
## %bb.2:
	movq	_RADIUS_ATTR_EAP_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_radius_msg_get_attr
	testq	%rax, %rax
	js	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	$1, %r8d
	callq	_radius_msg_verify
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_4:
	movl	(%r12), %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.5:
	movq	_RADIUS_CODE_ACCESS_CHALLENGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.6:
	leaq	L_str(%rip), %rdi
LBB0_9:
	callq	_puts
	movq	_RADIUS_RX_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_19:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$-1, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	32(%rbx), %rdi
	callq	_radius_msg_free
	movq	%r14, 32(%rbx)
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_13
## %bb.11:
	movq	%r15, %r8
	cmpl	$129, %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_14
## %bb.12:
	movl	$1, 4(%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_ieee802_1x_get_keys
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$1, 8(%r15)
LBB0_14:
	movq	%r15, %rdi
	callq	_ieee802_1x_decapsulate_radius
	movl	(%r12), %eax
	movq	_RADIUS_RX_QUEUED@GOTPCREL(%rip), %rbx
	cmpl	$128, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.16:
	cmpq	$0, 16(%r15)
	jns	LBB0_19
LBB0_17:
	cmpl	$0, 24(%r15)
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_eloop_terminate
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR,4,2 ## @RADIUS_ATTR_MESSAGE_AUTHENTICATOR
	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ## @RADIUS_ATTR_EAP_MESSAGE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allowing RADIUS Access-Reject without Message-Authenticator since it does not include EAP-Message\n"

	.comm	_RADIUS_RX_UNKNOWN,4,2          ## @RADIUS_RX_UNKNOWN
	.comm	_RADIUS_CODE_ACCESS_CHALLENGE,4,2 ## @RADIUS_CODE_ACCESS_CHALLENGE
L_.str.3:                               ## @.str.3
	.asciz	"RADIUS packet matching with station"

	.comm	_RADIUS_RX_QUEUED,4,2           ## @RADIUS_RX_QUEUED
L_str:                                  ## @str
	.asciz	"Unknown RADIUS message code"

L_str.4:                                ## @str.4
	.asciz	"Incoming RADIUS packet did not have correct Message-Authenticator - dropped"

	.no_dead_strip	_ieee802_1x_receive_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_receive_auth
_ieee802_1x_receive_auth:               ; @ieee802_1x_receive_auth
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_radius_msg_get_hdr
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, #0
	mov	w3, #0
	bl	_radius_msg_get_attr
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, #0
	mov	w3, #0
	bl	_radius_msg_get_attr
	tbnz	x0, #63, LBB0_5
LBB0_3:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	w4, #1
	bl	_radius_msg_verify
	cbz	x0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x0, l_str.4@PAGE
Lloh7:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	ldr	w8, [x20]
	and	w9, w8, #0xfffffffe
Lloh13:
	adrp	x10, _RADIUS_CODE_ACCESS_CHALLENGE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RADIUS_CODE_ACCESS_CHALLENGE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w9, #128
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_10
; %bb.7:
	mov	w8, #-1
	str	w8, [x19]
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #32]
	bl	_radius_msg_free
	str	x24, [x19, #32]
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_ieee802_1x_get_keys
	b	LBB0_13
LBB0_10:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
LBB0_11:
	bl	_puts
Lloh23:
	adrp	x8, _RADIUS_RX_UNKNOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RADIUS_RX_UNKNOWN@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_13:
	mov	x0, x19
	bl	_ieee802_1x_decapsulate_radius
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #129
	b.ne	LBB0_18
; %bb.15:
	ldr	x8, [x19, #16]
	tbz	x8, #63, LBB0_18
LBB0_16:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_18
; %bb.17:
	bl	_eloop_terminate
LBB0_18:
Lloh25:
	adrp	x8, _RADIUS_RX_QUEUED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RADIUS_RX_QUEUED@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR,4,2 ; @RADIUS_ATTR_MESSAGE_AUTHENTICATOR
	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ; @RADIUS_ATTR_EAP_MESSAGE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allowing RADIUS Access-Reject without Message-Authenticator since it does not include EAP-Message\n"

	.comm	_RADIUS_RX_UNKNOWN,4,2          ; @RADIUS_RX_UNKNOWN
	.comm	_RADIUS_CODE_ACCESS_CHALLENGE,4,2 ; @RADIUS_CODE_ACCESS_CHALLENGE
l_.str.3:                               ; @.str.3
	.asciz	"RADIUS packet matching with station"

	.comm	_RADIUS_RX_QUEUED,4,2           ; @RADIUS_RX_QUEUED
l_str:                                  ; @str
	.asciz	"Unknown RADIUS message code"

l_str.4:                                ; @str.4
	.asciz	"Incoming RADIUS packet did not have correct Message-Authenticator - dropped"

	.no_dead_strip	_ieee802_1x_receive_auth
.subsections_via_symbols
