	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sake_check
_eap_sake_check:                        ## @eap_sake_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_SAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$23, -24(%rbp)
	jbe	LBB0_2
## %bb.3:
	movq	(%rax), %rdx
	movq	_EAP_SAKE_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.5:
	movq	8(%rax), %rdx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.7:
	movq	16(%rax), %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%rbx), %rcx
	movq	_IDENTITY@GOTPCREL(%rip), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_EAP_SAKE_SUBTYPE_IDENTITY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r14
	je	LBB0_16
LBB0_9:
	movq	_CHALLENGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movq	_EAP_SAKE_SUBTYPE_CHALLENGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r14
	je	LBB0_16
LBB0_11:
	movq	_CONFIRM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorq	%rcx, %rdx
	movq	_EAP_SAKE_SUBTYPE_CONFIRM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorq	%r14, %rsi
	orq	%rdx, %rsi
	je	LBB0_16
## %bb.12:
	movq	_EAP_SAKE_SUBTYPE_AUTH_REJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r14
	je	LBB0_16
## %bb.13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_14
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_SAKE,4,2              ## @EAP_TYPE_SAKE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SAKE: Invalid frame"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EAP_SAKE_VERSION,8,3           ## @EAP_SAKE_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SAKE: Unknown version %d"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-SAKE: Session ID mismatch (%d,%d)"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"EAP-SAKE: Received frame: subtype=%d"

	.comm	_IDENTITY,8,3                   ## @IDENTITY
	.comm	_EAP_SAKE_SUBTYPE_IDENTITY,8,3  ## @EAP_SAKE_SUBTYPE_IDENTITY
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CHALLENGE,8,3                  ## @CHALLENGE
	.comm	_EAP_SAKE_SUBTYPE_CHALLENGE,8,3 ## @EAP_SAKE_SUBTYPE_CHALLENGE
	.comm	_CONFIRM,8,3                    ## @CONFIRM
	.comm	_EAP_SAKE_SUBTYPE_CONFIRM,8,3   ## @EAP_SAKE_SUBTYPE_CONFIRM
	.comm	_EAP_SAKE_SUBTYPE_AUTH_REJECT,8,3 ## @EAP_SAKE_SUBTYPE_AUTH_REJECT
L_.str.4:                               ## @.str.4
	.asciz	"EAP-SAKE: Unexpected subtype=%d in state=%d"

	.no_dead_strip	_eap_sake_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sake_check
_eap_sake_check:                        ; @eap_sake_check
	.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, 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_SAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_SAKE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	bl	_eap_hdr_validate
	ldr	x8, [sp, #24]
	cmp	x0, #0
	ccmp	x8, #23, #0, ne
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _EAP_SAKE_VERSION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EAP_SAKE_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x0, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	x20, [x0, #16]
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _IDENTITY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IDENTITY@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _EAP_SAKE_SUBTYPE_IDENTITY@GOTPAGE
Lloh23:
	ldr	x10, [x10, _EAP_SAKE_SUBTYPE_IDENTITY@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x20, x10, #0, eq
	b.eq	LBB0_8
; %bb.5:
Lloh25:
	adrp	x9, _CHALLENGE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CHALLENGE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh28:
	adrp	x9, _EAP_SAKE_SUBTYPE_CHALLENGE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EAP_SAKE_SUBTYPE_CHALLENGE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x20, x9
	b.eq	LBB0_8
LBB0_7:
Lloh31:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
Lloh34:
	adrp	x10, _EAP_SAKE_SUBTYPE_CONFIRM@GOTPAGE
Lloh35:
	ldr	x10, [x10, _EAP_SAKE_SUBTYPE_CONFIRM@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	cmp	x20, x10
	ccmp	x8, x9, #0, eq
Lloh37:
	adrp	x9, _EAP_SAKE_SUBTYPE_AUTH_REJECT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _EAP_SAKE_SUBTYPE_AUTH_REJECT@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ccmp	x20, x9, #4, ne
	b.ne	LBB0_13
LBB0_8:
Lloh40:
	adrp	x8, _FALSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh42:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh47:
	adrp	x10, _MSG_INFO@GOTPAGE
Lloh48:
	ldr	x10, [x10, _MSG_INFO@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wpa_printf
Lloh52:
	adrp	x8, _TRUE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
Lloh54:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh55:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x9]
	stp	x20, x8, [sp]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_SAKE,4,2              ; @EAP_TYPE_SAKE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SAKE: Invalid frame"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EAP_SAKE_VERSION,8,3           ; @EAP_SAKE_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SAKE: Unknown version %d"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-SAKE: Session ID mismatch (%d,%d)"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"EAP-SAKE: Received frame: subtype=%d"

	.comm	_IDENTITY,8,3                   ; @IDENTITY
	.comm	_EAP_SAKE_SUBTYPE_IDENTITY,8,3  ; @EAP_SAKE_SUBTYPE_IDENTITY
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CHALLENGE,8,3                  ; @CHALLENGE
	.comm	_EAP_SAKE_SUBTYPE_CHALLENGE,8,3 ; @EAP_SAKE_SUBTYPE_CHALLENGE
	.comm	_CONFIRM,8,3                    ; @CONFIRM
	.comm	_EAP_SAKE_SUBTYPE_CONFIRM,8,3   ; @EAP_SAKE_SUBTYPE_CONFIRM
	.comm	_EAP_SAKE_SUBTYPE_AUTH_REJECT,8,3 ; @EAP_SAKE_SUBTYPE_AUTH_REJECT
l_.str.4:                               ; @.str.4
	.asciz	"EAP-SAKE: Unexpected subtype=%d in state=%d"

	.no_dead_strip	_eap_sake_check
.subsections_via_symbols
