	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_validate_rand
_eap_gpsk_validate_rand:                ## @eap_gpsk_validate_rand
	.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
	movq	%rdx, %rbx
	movq	%rdx, %rax
	subq	%rsi, %rax
	sarq	$2, %rax
	movq	_EAP_GPSK_RAND_LEN@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_3
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	(%rbx), %edi
	movq	8(%r14), %rdx
	movl	(%r12), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r15, %rdx
	callq	_wpa_hexdump
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movslq	(%r12), %rdx
	leaq	(%r15,%rdx,4), %r15
	subq	%r15, %rbx
	sarq	$2, %rbx
	cmpq	%rdx, %rbx
	jge	LBB0_10
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movq	(%r14), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movl	(%rbx), %edi
	movq	(%r14), %rdx
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	movl	(%r12), %ecx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_GPSK_RAND_LEN,4,2          ## @EAP_GPSK_RAND_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Message too short for RAND_Peer"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: RAND_Peer in GPSK-2 and GPSK-3 did not match"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: RAND_Peer in GPSK-2"

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

L_.str.4:                               ## @.str.4
	.asciz	"EAP-GPSK: Message too short for RAND_Server"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-GPSK: RAND_Server in GPSK-1 and GPSK-3 did not match"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-GPSK: RAND_Server in GPSK-1"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-GPSK: RAND_Server in GPSK-3"

	.no_dead_strip	_eap_gpsk_validate_rand
.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_rand
_eap_gpsk_validate_rand:                ; @eap_gpsk_validate_rand
	.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
	mov	x21, x2
	sub	x8, x2, x1
Lloh0:
	adrp	x22, _EAP_GPSK_RAND_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EAP_GPSK_RAND_LEN@GOTPAGEOFF]
	ldrsw	x2, [x22]
	cmp	x2, x8, asr #2
	b.le	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_wpa_printf
	b	LBB0_6
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x0, #8]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbz	x0, LBB0_8
; %bb.4:
Lloh7:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21]
	ldr	x2, [x19, #8]
	ldr	w3, [x22]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	ldr	w0, [x21]
	ldr	w3, [x22]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_5:
	mov	x2, x20
	bl	_wpa_hexdump
LBB0_6:
	mov	x0, #0
LBB0_7:
	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_8:
	ldrsw	x2, [x22]
	add	x20, x20, x2, lsl #2
	sub	x8, x21, x20
	cmp	x2, x8, asr #2
	b.le	LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_10:
	ldr	x1, [x19]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbz	x0, LBB0_12
; %bb.11:
Lloh20:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21]
	ldr	x2, [x19]
	ldr	w3, [x22]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump
	ldr	w0, [x21]
	ldr	w3, [x22]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_12:
	ldrsw	x8, [x22]
	add	x0, x20, x8, lsl #2
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_GPSK_RAND_LEN,4,2          ; @EAP_GPSK_RAND_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Message too short for RAND_Peer"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: RAND_Peer in GPSK-2 and GPSK-3 did not match"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: RAND_Peer in GPSK-2"

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

l_.str.4:                               ; @.str.4
	.asciz	"EAP-GPSK: Message too short for RAND_Server"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-GPSK: RAND_Server in GPSK-1 and GPSK-3 did not match"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-GPSK: RAND_Server in GPSK-1"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-GPSK: RAND_Server in GPSK-3"

	.no_dead_strip	_eap_gpsk_validate_rand
.subsections_via_symbols
