	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_check
_eap_gpsk_check:                        ## @eap_gpsk_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, %r14
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_GPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, -24(%rbp)
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rcx
	movq	_GPSK_1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	_EAP_GPSK_OPCODE_GPSK_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
LBB0_6:
	movq	_GPSK_3@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdx
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.7:
	movq	_EAP_GPSK_OPCODE_GPSK_4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_11:
	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_GPSK,4,2              ## @EAP_TYPE_GPSK
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Invalid frame"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Received frame: opcode=%d"

	.comm	_GPSK_1,8,3                     ## @GPSK_1
	.comm	_EAP_GPSK_OPCODE_GPSK_2,8,3     ## @EAP_GPSK_OPCODE_GPSK_2
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GPSK_3,8,3                     ## @GPSK_3
	.comm	_EAP_GPSK_OPCODE_GPSK_4,8,3     ## @EAP_GPSK_OPCODE_GPSK_4
L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: Unexpected opcode=%d in state=%d"

	.no_dead_strip	_eap_gpsk_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_check
_eap_gpsk_check:                        ; @eap_gpsk_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	x20, 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_GPSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_GPSK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	bl	_eap_hdr_validate
	ldr	x8, [sp, #24]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	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_6
LBB0_2:
	mov	x19, x0
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _GPSK_1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GPSK_1@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x19]
Lloh19:
	adrp	x10, _EAP_GPSK_OPCODE_GPSK_2@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EAP_GPSK_OPCODE_GPSK_2@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
LBB0_4:
Lloh22:
	adrp	x9, _GPSK_3@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GPSK_3@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x9]
	ldr	x9, [x19]
Lloh25:
	adrp	x11, _EAP_GPSK_OPCODE_GPSK_4@GOTPAGE
Lloh26:
	ldr	x11, [x11, _EAP_GPSK_OPCODE_GPSK_4@GOTPAGEOFF]
Lloh27:
	ldr	x11, [x11]
	cmp	x8, x10
	ccmp	x9, x11, #0, eq
	b.eq	LBB0_7
; %bb.5:
Lloh28:
	adrp	x10, _MSG_INFO@GOTPAGE
Lloh29:
	ldr	x10, [x10, _MSG_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x10]
	stp	x9, x8, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_wpa_printf
Lloh33:
	adrp	x8, _TRUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh35:
	adrp	x8, _FALSE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GPSK,4,2              ; @EAP_TYPE_GPSK
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Invalid frame"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Received frame: opcode=%d"

	.comm	_GPSK_1,8,3                     ; @GPSK_1
	.comm	_EAP_GPSK_OPCODE_GPSK_2,8,3     ; @EAP_GPSK_OPCODE_GPSK_2
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GPSK_3,8,3                     ; @GPSK_3
	.comm	_EAP_GPSK_OPCODE_GPSK_4,8,3     ; @EAP_GPSK_OPCODE_GPSK_4
l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: Unexpected opcode=%d in state=%d"

	.no_dead_strip	_eap_gpsk_check
.subsections_via_symbols
