	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_validate_crypto_binding
_eap_teap_validate_crypto_binding:      ## @eap_teap_validate_crypto_binding
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	%r13d, %r15d
	andl	$15, %r15d
	movl	%r13d, %r14d
	sarl	$4, %r14d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rsi), %rdx
	movq	16(%rsi), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	24(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movq	40(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	_EAP_TEAP_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.2:
	addl	$-64, %r13d
	cmpl	$-48, %r13d
	jb	LBB0_4
## %bb.3:
	movq	_TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_4
## %bb.5:
	movq	24(%rbx), %rcx
	movq	_EAP_TEAP_NONCE_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	xorl	%eax, %eax
	testb	$1, -4(%rcx,%rdx,4)
	je	LBB0_8
## %bb.6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Nonce"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: EMSK Compound MAC"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: MSK Compound MAC"

	.comm	_EAP_TEAP_VERSION,8,3           ## @EAP_TEAP_VERSION
	.comm	_TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST,4,2 ## @TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: Invalid Version/Flags/Sub-Type in Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u"

	.comm	_EAP_TEAP_NONCE_LEN,4,2         ## @EAP_TEAP_NONCE_LEN
L_.str.5:                               ## @.str.5
	.asciz	"EAP-TEAP: Invalid Crypto-Binding TLV Nonce in request"

	.no_dead_strip	_eap_teap_validate_crypto_binding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_validate_crypto_binding
_eap_teap_validate_crypto_binding:      ; @eap_teap_validate_crypto_binding
	.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
	mov	x20, x0
	ldr	w23, [x1]
	and	w22, w23, #0xf
	asr	w21, w23, #4
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x8, x9, [x1, #8]
	mov	x10, x22
	mov	x11, x21
	stp	x11, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x24, _MSG_MSGDUMP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x2, [x19, #24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
	ldr	w0, [x24]
	ldr	x2, [x19, #32]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
	ldr	w0, [x24]
	ldr	x2, [x19, #40]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
Lloh13:
	adrp	x8, _EAP_TEAP_VERSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAP_TEAP_VERSION@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x8]
	ldp	x8, x9, [x19, #8]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.2:
	sub	w10, w23, #64
	cmn	w10, #48
	b.lo	LBB0_6
; %bb.3:
Lloh16:
	adrp	x10, _TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w22, w10
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #24]
Lloh19:
	adrp	x9, _EAP_TEAP_NONCE_LEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EAP_TEAP_NONCE_LEN@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	tbnz	w8, #0, LBB0_9
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh22:
	adrp	x10, _MSG_INFO@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MSG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x10]
	stp	x21, x22, [sp, #16]
	stp	x8, x9, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_7:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_8:
	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_9:
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Nonce"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: EMSK Compound MAC"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: MSK Compound MAC"

	.comm	_EAP_TEAP_VERSION,8,3           ; @EAP_TEAP_VERSION
	.comm	_TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST,4,2 ; @TEAP_CRYPTO_BINDING_SUBTYPE_REQUEST
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: Invalid Version/Flags/Sub-Type in Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u"

	.comm	_EAP_TEAP_NONCE_LEN,4,2         ; @EAP_TEAP_NONCE_LEN
l_.str.5:                               ; @.str.5
	.asciz	"EAP-TEAP: Invalid Crypto-Binding TLV Nonce in request"

	.no_dead_strip	_eap_teap_validate_crypto_binding
.subsections_via_symbols
