	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tnc_process
_eap_tnc_process:                       ## @eap_tnc_process
	.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	%rsi, %rbx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_TNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_33
## %bb.1:
	movq	-56(%rbp), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	cmpq	$1, %rcx
	jne	LBB0_7
## %bb.4:
	movq	(%rbx), %rdx
	movq	_DONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.5:
	movq	_FAIL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_6
LBB0_7:
	leaq	4(%rax), %r13
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r13
	xorl	%r14d, %r14d
LBB0_8:
	leaq	(%rax,%rcx,4), %r15
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.9:
	movq	%r15, %rax
	subq	%r13, %rax
	cmpq	$15, %rax
	jg	LBB0_11
## %bb.10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_11:
	movq	%r13, %rdi
	callq	_WPA_GET_BE32
	movl	%eax, %r12d
	addq	$16, %r13
	movq	%r15, %rcx
	subq	%r13, %rcx
	sarq	$2, %rcx
	cmpl	%ecx, %eax
	jl	LBB0_13
## %bb.12:
	cmpl	$75001, %r12d                   ## imm = 0x124F9
	jge	LBB0_13
LBB0_14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.15:
	cmpq	$2, -56(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jb	LBB0_18
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_21
LBB0_19:
	cmpq	$0, 8(%rbx)
	je	LBB0_23
## %bb.20:
	movq	%r15, %rdx
	subq	%r13, %rdx
	shrq	$2, %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_eap_tnc_process_cont
	testq	%rax, %rax
	js	LBB0_21
LBB0_23:
	movq	_EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_26
## %bb.24:
	subq	%r13, %r15
	shrq	$2, %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%r15d, %r8d
	callq	_eap_tnc_process_fragment
	testq	%rax, %rax
	js	LBB0_21
## %bb.25:
	movq	_FRAG_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_33
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_21:
	movq	_FAIL@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_eap_tnc_set_state
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_CONTINUE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_26:
	movq	(%rbx), %rax
	movq	_FRAG_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_CONTINUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_eap_tnc_set_state
LBB0_28:
	movq	8(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_30
## %bb.29:
	subq	%r13, %r15
	shrq	$2, %r15
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_wpabuf_set
	movq	%r14, 8(%rbx)
LBB0_30:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_wpabuf_head
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	callq	_wpabuf_len
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_tncs_process
	movq	8(%rbx), %rdi
	leaq	-48(%rbp), %rax
	cmpq	%rax, %rdi
	je	LBB0_32
## %bb.31:
	callq	_wpabuf_free
LBB0_32:
	movq	$0, 8(%rbx)
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TNC,4,2               ## @EAP_TYPE_TNC
	.comm	_DONE,8,3                       ## @DONE
	.comm	_FAIL,8,3                       ## @FAIL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TNC: Peer acknowledged the last message"

	.comm	_EAP_TNC_FLAGS_LENGTH_INCLUDED,4,2 ## @EAP_TNC_FLAGS_LENGTH_INCLUDED
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TNC: Message underflow"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TNC: Invalid Message Length (%d; %ld remaining in this msg)"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TNC: Received packet: Flags 0x%x Message Length %u"

	.comm	_WAIT_FRAG_ACK,8,3              ## @WAIT_FRAG_ACK
L_.str.4:                               ## @.str.4
	.asciz	"EAP-TNC: Unexpected payload in WAIT_FRAG_ACK state"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TNC: Fragment acknowledged"

	.comm	_CONTINUE,8,3                   ## @CONTINUE
	.comm	_EAP_TNC_FLAGS_MORE_FRAGMENTS,4,2 ## @EAP_TNC_FLAGS_MORE_FRAGMENTS
	.comm	_FRAG_ACK,8,3                   ## @FRAG_ACK
L_.str.6:                               ## @.str.6
	.asciz	"EAP-TNC: All fragments received"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.7:                               ## @.str.7
	.asciz	"EAP-TNC: Received payload"

	.no_dead_strip	_eap_tnc_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tnc_process
_eap_tnc_process:                       ; @eap_tnc_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_TNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_TNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	bl	_eap_hdr_validate
	cbz	x0, LBB0_23
; %bb.1:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.2:
	cmp	x8, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x19]
Lloh6:
	adrp	x10, _DONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DONE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _FAIL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FAIL@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_5:
	mov	x20, x0
	ldr	w21, [x20], #4
	b	LBB0_7
LBB0_6:
	mov	w21, #0
	mov	x20, x0
LBB0_7:
	add	x23, x0, x8, lsl #2
Lloh17:
	adrp	x8, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.8:
	sub	x8, x23, x20
	cmp	x8, #15
	b.gt	LBB0_11
; %bb.9:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_10:
	mov	w22, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_WPA_GET_BE32
	mov	x22, x0
	add	x20, x20, #16
	sub	x8, x23, x20
	asr	x8, x8, #2
	cmp	w0, w8
	mov	w9, #9465
	movk	w9, #1, lsl #16
	ccmp	w0, w9, #0, ge
	b.lt	LBB0_13
; %bb.12:
Lloh25:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x8, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_13:
Lloh30:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh31:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	stp	x21, x22, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _WAIT_FRAG_ACK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WAIT_FRAG_ACK@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [sp, #24]
	ldr	w0, [x24]
	cmp	x8, #2
	b.lo	LBB0_24
; %bb.15:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_16:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.17:
	sub	x8, x23, x20
	lsr	x2, x8, #2
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_eap_tnc_process_cont
	tbnz	x0, #63, LBB0_21
LBB0_18:
Lloh39:
	adrp	x8, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_25
; %bb.19:
	sub	x8, x23, x20
	lsr	x4, x8, #2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_eap_tnc_process_fragment
	tbnz	x0, #63, LBB0_21
; %bb.20:
Lloh42:
	adrp	x8, _FRAG_ACK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FRAG_ACK@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh44:
	adrp	x8, _FAIL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
LBB0_22:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_eap_tnc_set_state
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh48:
	adrp	x8, _CONTINUE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CONTINUE@GOTPAGEOFF]
	b	LBB0_22
LBB0_25:
	ldr	x8, [x19]
Lloh50:
	adrp	x9, _FRAG_ACK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FRAG_ACK@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.26:
	ldr	w0, [x24]
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh55:
	adrp	x8, _CONTINUE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CONTINUE@GOTPAGEOFF]
Lloh57:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_eap_tnc_set_state
LBB0_27:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_29
; %bb.28:
	sub	x8, x23, x20
	lsr	x2, x8, #2
	add	x21, sp, #16
	add	x0, sp, #16
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wpabuf_set
	str	x21, [x19, #8]
LBB0_29:
Lloh58:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh60:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_wpabuf_head
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_wpabuf_len
	mov	x3, x0
Lloh61:
	adrp	x1, l_.str.7@PAGE
Lloh62:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_wpa_hexdump_ascii
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_tncs_process
	ldr	x0, [x19, #8]
	add	x8, sp, #16
	cmp	x0, x8
	b.eq	LBB0_31
; %bb.30:
	bl	_wpabuf_free
LBB0_31:
	str	xzr, [x19, #8]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TNC,4,2               ; @EAP_TYPE_TNC
	.comm	_DONE,8,3                       ; @DONE
	.comm	_FAIL,8,3                       ; @FAIL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TNC: Peer acknowledged the last message"

	.comm	_EAP_TNC_FLAGS_LENGTH_INCLUDED,4,2 ; @EAP_TNC_FLAGS_LENGTH_INCLUDED
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TNC: Message underflow"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TNC: Invalid Message Length (%d; %ld remaining in this msg)"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TNC: Received packet: Flags 0x%x Message Length %u"

	.comm	_WAIT_FRAG_ACK,8,3              ; @WAIT_FRAG_ACK
l_.str.4:                               ; @.str.4
	.asciz	"EAP-TNC: Unexpected payload in WAIT_FRAG_ACK state"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TNC: Fragment acknowledged"

	.comm	_CONTINUE,8,3                   ; @CONTINUE
	.comm	_EAP_TNC_FLAGS_MORE_FRAGMENTS,4,2 ; @EAP_TNC_FLAGS_MORE_FRAGMENTS
	.comm	_FRAG_ACK,8,3                   ; @FRAG_ACK
l_.str.6:                               ; @.str.6
	.asciz	"EAP-TNC: All fragments received"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.7:                               ; @.str.7
	.asciz	"EAP-TNC: Received payload"

	.no_dead_strip	_eap_tnc_process
.subsections_via_symbols
