	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_process_gpsk_3
_eap_gpsk_process_gpsk_3:               ## @eap_gpsk_process_gpsk_3
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	(%rsi), %rax
	movq	_GPSK_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%r9, %rbx
	movq	%r8, %r13
	movq	%rsi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	(,%rbx,4), %rbx
	addq	%r13, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_eap_gpsk_validate_rand
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_eap_gpsk_validate_id_server
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_eap_gpsk_validate_csuite
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_eap_gpsk_validate_pd_payload_2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_eap_gpsk_validate_gpsk_3_mic
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpq	%rbx, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	%rax, %rbx
	sarq	$2, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_eap_gpsk_send_gpsk_4
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_gpsk_state
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DECISION_UNCOND_SUCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_8
LBB0_7:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_gpsk_state
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPSK_3,8,3                     ## @GPSK_3
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Received Request/GPSK-3"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Ignored %lu bytes of extra data in the end of GPSK-2"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_UNCOND_SUCC,4,2       ## @DECISION_UNCOND_SUCC
	.no_dead_strip	_eap_gpsk_process_gpsk_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_process_gpsk_3
_eap_gpsk_process_gpsk_3:               ; @eap_gpsk_process_gpsk_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _GPSK_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPSK_3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x23, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x1
Lloh3:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x23, x22, x23, lsl #2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_eap_gpsk_validate_rand
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_eap_gpsk_validate_id_server
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_eap_gpsk_validate_csuite
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_eap_gpsk_validate_pd_payload_2
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x23
	bl	_eap_gpsk_validate_gpsk_3_mic
	cbz	x0, LBB0_7
; %bb.2:
	cmp	x0, x23
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x24]
	sub	x9, x23, x0
	asr	x9, x9, #2
	str	x9, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_eap_gpsk_send_gpsk_4
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_gpsk_state
Lloh12:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DECISION_UNCOND_SUCC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DECISION_UNCOND_SUCC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_8
LBB0_6:
	mov	x21, #0
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_gpsk_state
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GPSK_3,8,3                     ; @GPSK_3
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Received Request/GPSK-3"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Ignored %lu bytes of extra data in the end of GPSK-2"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_UNCOND_SUCC,4,2       ; @DECISION_UNCOND_SUCC
	.no_dead_strip	_eap_gpsk_process_gpsk_3
.subsections_via_symbols
