	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_process_gpsk_4
_eap_gpsk_process_gpsk_4:               ## @eap_gpsk_process_gpsk_4
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_GPSK_MAX_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, %r14
	movq	(%r15), %rax
	movq	_GPSK_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$1, %rbx
	jg	LBB0_6
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	movq	%r12, %rdi
	callq	_WPA_GET_BE16
	leaq	-8(,%rbx,4), %rcx
	sarq	$2, %rcx
	movslq	%eax, %r13
	cmpq	%r13, %rcx
	jge	LBB0_8
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_gpsk_state                 ## TAILCALL
LBB0_8:
	leaq	(%r12,%rbx,4), %rbx
	leaq	8(%r12), %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rcx
	callq	_wpa_hexdump
	leaq	(%r12,%r13,4), %r13
	addq	$8, %r13
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	callq	_eap_gpsk_mic_len
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	movq	%rax, %rbx
	subq	%r13, %rdx
	sarq	$2, %rdx
	movslq	%ebx, %rax
	cmpq	%rax, %rdx
	jge	LBB0_11
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_11:
	movl	20(%r15), %edi
	movl	16(%r15), %esi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	movq	%r13, %r9
	subq	%r12, %r9
	shrq	$2, %r9
	subq	$8, %rsp
	movq	%r12, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r14
	callq	_eap_gpsk_compute_mic
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_12
## %bb.14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_12:
	movq	_MSG_DEBUG@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_19
LBB0_16:
	leaq	(,%rbx,4), %rax
	addq	%r13, %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	je	LBB0_18
## %bb.17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	%rax, %rdx
	sarq	$2, %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_gpsk_state
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_GPSK_MAX_MIC_LEN,4,2       ## @EAP_GPSK_MAX_MIC_LEN
	.comm	_GPSK_3,8,3                     ## @GPSK_3
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Received Response/GPSK-4"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Too short message for PD_Payload_1 length"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: Too short message for PD_Payload_1"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-GPSK: PD_Payload_1"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-GPSK: Message too short for MIC (left=%lu miclen=%lu)"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-GPSK: Failed to compute MIC"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.6:                               ## @.str.6
	.asciz	"EAP-GPSK: Incorrect MIC in GPSK-4"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-GPSK: Received MIC"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-GPSK: Computed MIC"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-GPSK: Ignored %lu bytes of extra data in the end of GPSK-4"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_eap_gpsk_process_gpsk_4
.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_4
_eap_gpsk_process_gpsk_4:               ; @eap_gpsk_process_gpsk_4
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _EAP_GPSK_MAX_MIC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_GPSK_MAX_MIC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	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]
Lloh8:
	adrp	x9, _GPSK_3@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GPSK_3@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.1:
Lloh11:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cmp	x22, #1
	b.gt	LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_WPA_GET_BE16
                                        ; kill: def $w0 killed $w0 def $x0
	lsl	x8, x22, #2
	sub	x8, x8, #8
	sxtw	x23, w0
	cmp	x23, x8, asr #2
	b.le	LBB0_8
; %bb.4:
	ldr	w0, [x24]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_wpa_printf
LBB0_6:
Lloh19:
	adrp	x8, _FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.7:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_eap_gpsk_state
LBB0_8:
	add	x25, x21, x22, lsl #2
	add	x22, x21, #8
	ldr	w0, [x24]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_wpa_hexdump
	add	x23, x22, x23, lsl #2
	ldp	w1, w0, [x19, #8]
	bl	_eap_gpsk_mic_len
	mov	x22, x0
	sub	x8, x25, x23
	asr	x8, x8, #2
	cmp	x8, w22, sxtw
	b.ge	LBB0_10
; %bb.9:
	ldr	w0, [x24]
	stp	x8, x22, [sp, #-16]!
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	b	LBB0_6
LBB0_10:
	ldp	w1, w0, [x19, #16]
	ldp	w3, w2, [x19, #8]
	sub	x8, x23, x21
	lsr	x5, x8, #2
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	mov	x6, x20
	bl	_eap_gpsk_compute_mic
	tbnz	x0, #63, LBB0_13
; %bb.11:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_os_memcmp_const
	cbz	x0, LBB0_15
; %bb.12:
Lloh29:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x24]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump
	ldr	w0, [x24]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_wpa_hexdump
	b	LBB0_14
LBB0_13:
	ldr	w0, [x24]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
LBB0_14:
Lloh40:
	adrp	x8, _FAILURE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	add	x8, x23, x22, lsl #2
	cmp	x8, x25
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x24]
	sub	x8, x25, x8
	asr	x8, x8, #2
	str	x8, [sp, #-16]!
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_17:
Lloh44:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_gpsk_state
LBB0_19:
	ldur	x8, [x29, #-72]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_GPSK_MAX_MIC_LEN,4,2       ; @EAP_GPSK_MAX_MIC_LEN
	.comm	_GPSK_3,8,3                     ; @GPSK_3
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Received Response/GPSK-4"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Too short message for PD_Payload_1 length"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: Too short message for PD_Payload_1"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-GPSK: PD_Payload_1"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-GPSK: Message too short for MIC (left=%lu miclen=%lu)"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-GPSK: Failed to compute MIC"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.6:                               ; @.str.6
	.asciz	"EAP-GPSK: Incorrect MIC in GPSK-4"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-GPSK: Received MIC"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-GPSK: Computed MIC"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-GPSK: Ignored %lu bytes of extra data in the end of GPSK-4"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_eap_gpsk_process_gpsk_4
.subsections_via_symbols
