	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sake_process_challenge
_eap_sake_process_challenge:            ## @eap_sake_process_challenge
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_SAKE_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	(%r13), %rax
	movq	_CHALLENGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_eap_sake_parse_attributes
	testq	%rax, %rax
	jne	LBB0_22
## %bb.2:
	movl	-72(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	cmpl	$0, -88(%rbp)
	je	LBB0_4
## %bb.5:
	movl	24(%r13), %edi
	movq	_EAP_SAKE_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	16(%r13), %rdi
	callq	_os_free
	movq	$0, 16(%r13)
	movl	$0, 8(%r13)
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movl	-84(%rbp), %esi
	callq	_os_memdup
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movl	-84(%rbp), %eax
	movl	%eax, 8(%r13)
LBB0_8:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	_EAP_SAKE_ROOT_SECRET_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leal	(%rcx,%rcx), %edx
	cmpl	%edx, (%rax)
	jne	LBB0_11
## %bb.12:
	leaq	(%rdi,%rcx,4), %rsi
	movl	24(%r13), %ecx
	movl	28(%r13), %edx
	leaq	32(%r13), %r8
	movl	40(%r13), %r9d
	movl	36(%r13), %eax
	subq	$8, %rsp
	pushq	%rax
	callq	_eap_sake_derive_keys
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_13
## %bb.16:
	movl	32(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	28(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %r14d
	movq	16(%r13), %r12
	movl	8(%r13), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_wpabuf_head
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	movl	-88(%rbp), %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	movq	-120(%rbp), %r14                ## 8-byte Reload
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	$1
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_eap_sake_compute_mic
	addq	$48, %rsp
	testq	%rax, %rax
	js	LBB0_17
## %bb.18:
	movl	-88(%rbp), %edi
	movq	_EAP_SAKE_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
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_22
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_SAKE_ROOT_SECRET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_22:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_20:
	movq	_CONFIRM@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_eap_sake_state
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SAKE_MIC_LEN,4,2           ## @EAP_SAKE_MIC_LEN
	.comm	_CHALLENGE,8,3                  ## @CHALLENGE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SAKE: Received Response/Challenge"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SAKE: Response/Challenge did not include AT_RAND_P or AT_MIC_P"

	.comm	_EAP_SAKE_RAND_LEN,4,2          ## @EAP_SAKE_RAND_LEN
	.comm	_EAP_SAKE_ROOT_SECRET_LEN,4,2   ## @EAP_SAKE_ROOT_SECRET_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-SAKE: Plaintext password with %d-byte key not configured"

	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-SAKE: Failed to derive keys"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-SAKE: Failed to compute MIC"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-SAKE: Incorrect AT_MIC_P"

	.comm	_CONFIRM,8,3                    ## @CONFIRM
	.no_dead_strip	_eap_sake_process_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sake_process_challenge
_eap_sake_process_challenge:            ; @eap_sake_process_challenge
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _EAP_SAKE_MIC_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _EAP_SAKE_MIC_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x1]
Lloh7:
	adrp	x9, _CHALLENGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHALLENGE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.1:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	sub	x2, x29, #112
	mov	x0, x24
	mov	x1, x23
	bl	_eap_sake_parse_attributes
	cbnz	x0, LBB0_17
; %bb.2:
	ldur	w1, [x29, #-96]
	cbz	w1, LBB0_14
; %bb.3:
	ldur	w8, [x29, #-112]
	cbz	w8, LBB0_14
; %bb.4:
	ldr	w0, [x19, #24]
Lloh15:
	adrp	x8, _EAP_SAKE_RAND_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_SAKE_RAND_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x0, [x19, #16]
	bl	_os_free
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	ldur	x0, [x29, #-104]
	cbz	x0, LBB0_7
; %bb.5:
	ldur	w1, [x29, #-108]
	bl	_os_memdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.6:
	ldur	w8, [x29, #-108]
	str	w8, [x19, #8]
LBB0_7:
	ldr	x9, [x22, #8]
Lloh18:
	adrp	x8, _EAP_SAKE_ROOT_SECRET_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_SAKE_ROOT_SECRET_LEN@GOTPAGEOFF]
	cbz	x9, LBB0_15
; %bb.8:
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_15
; %bb.9:
	ldr	w10, [x9]
	ldrsw	x9, [x8]
	cmp	w10, w9, lsl #1
	b.ne	LBB0_15
; %bb.10:
	add	x1, x0, x9, lsl #2
	ldp	w3, w2, [x19, #24]
	add	x4, x19, #32
	ldp	w6, w5, [x19, #36]
	bl	_eap_sake_derive_keys
	tbnz	x0, #63, LBB0_19
; %bb.11:
	ldp	w24, w23, [x19, #28]
	ldr	w9, [x19, #24]
	ldr	w8, [x22, #4]
	stp	w8, w9, [x29, #-120]            ; 8-byte Folded Spill
	ldr	w8, [x22]
	stur	w8, [x29, #-124]                ; 4-byte Folded Spill
	ldr	x27, [x19, #16]
	ldr	w28, [x19, #8]
	mov	x0, x21
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	ldur	w8, [x29, #-112]
	sub	sp, sp, #32
	str	x20, [sp, #16]
	stp	w0, w8, [sp, #4]
	str	w22, [sp]
	mov	x0, x23
	mov	x1, x24
	ldp	w3, w2, [x29, #-120]            ; 8-byte Folded Reload
	ldur	w4, [x29, #-124]                ; 4-byte Folded Reload
	mov	x5, x27
	mov	x6, x28
	mov	w7, #1
	bl	_eap_sake_compute_mic
	add	sp, sp, #32
	tbnz	x0, #63, LBB0_20
; %bb.12:
	ldur	w0, [x29, #-112]
	ldr	w2, [x26]
	mov	x1, x20
	bl	_os_memcmp_const
	cbz	x0, LBB0_22
; %bb.13:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh25:
	adrp	x8, _FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_23
LBB0_14:
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_15:
Lloh32:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x9]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	x8, [sp, #-16]!
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_16:
Lloh37:
	adrp	x8, _FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_17:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.18:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh43:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh48:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_21:
	bl	_wpa_printf
	b	LBB0_16
LBB0_22:
Lloh53:
	adrp	x8, _CONFIRM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CONFIRM@GOTPAGEOFF]
LBB0_23:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_eap_sake_state
	b	LBB0_17
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SAKE_MIC_LEN,4,2           ; @EAP_SAKE_MIC_LEN
	.comm	_CHALLENGE,8,3                  ; @CHALLENGE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SAKE: Received Response/Challenge"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SAKE: Response/Challenge did not include AT_RAND_P or AT_MIC_P"

	.comm	_EAP_SAKE_RAND_LEN,4,2          ; @EAP_SAKE_RAND_LEN
	.comm	_EAP_SAKE_ROOT_SECRET_LEN,4,2   ; @EAP_SAKE_ROOT_SECRET_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-SAKE: Plaintext password with %d-byte key not configured"

	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-SAKE: Failed to derive keys"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-SAKE: Failed to compute MIC"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-SAKE: Incorrect AT_MIC_P"

	.comm	_CONFIRM,8,3                    ; @CONFIRM
	.no_dead_strip	_eap_sake_process_challenge
.subsections_via_symbols
