	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_validate_id_server
_eap_gpsk_validate_id_server:           ## @eap_gpsk_validate_id_server
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$7, %rax
	jg	LBB0_4
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	%rdi, %r15
	movq	%r12, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %r14
	addq	$8, %r12
	subq	%r12, %rbx
	sarq	$2, %rbx
	movslq	%r14d, %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_7:
	cmpq	(%r15), %r14
	jne	LBB0_9
## %bb.8:
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_ascii
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	(%r12,%r14,4), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Message too short for length(ID_Server)"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Message too short for ID_Server"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: ID_Server did not match with the one used in GPSK-1"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-GPSK: ID_Server in GPSK-1"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-GPSK: ID_Server in GPSK-3"

	.no_dead_strip	_eap_gpsk_validate_id_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_validate_id_server
_eap_gpsk_validate_id_server:           ; @eap_gpsk_validate_id_server
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_9
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	sub	x8, x2, x1
	cmp	x8, #7
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	mov	x0, x20
	bl	_WPA_GET_BE16
	mov	x19, x0
	add	x20, x20, #8
	sub	x8, x22, x20
	asr	x8, x8, #2
	cmp	x8, w19, sxtw
	b.ge	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_wpa_printf
	b	LBB0_9
LBB0_6:
	ldr	x8, [x21]
	cmp	x19, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x21, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_os_memcmp
	cbz	x0, LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh15:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	x3, x2, [x21]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldr	w0, [x22]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump_ascii
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	x0, x20, x19, lsl #2
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Message too short for length(ID_Server)"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Message too short for ID_Server"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: ID_Server did not match with the one used in GPSK-1"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-GPSK: ID_Server in GPSK-1"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-GPSK: ID_Server in GPSK-3"

	.no_dead_strip	_eap_gpsk_validate_id_server
.subsections_via_symbols
