	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eapol_test_compare_pmk
_eapol_test_compare_pmk:                ## @eapol_test_compare_pmk
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PMK_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_eapol_sm_get_key
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$16, (%r15)
	jne	LBB0_7
## %bb.4:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_eapol_sm_get_key
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	cmpq	$0, 56(%r15)
	je	LBB0_9
## %bb.8:
	xorl	%r14d, %r14d
	cmpq	$0, 40(%r15)
	jne	LBB0_12
	jmp	LBB0_9
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movslq	(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	movq	64(%r15), %rsi
	movslq	(%r12), %rdx
	movq	%r14, %rdi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	movl	(%rbx), %edi
	movq	64(%r15), %rdx
	movslq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$16, %ecx
	movq	%r14, %rdx
	callq	_wpa_hexdump
	movq	64(%r15), %rsi
	movl	$16, %edx
	movq	%r14, %rdi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	movl	(%rbx), %edi
	movq	64(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_11:
	xorl	%r14d, %r14d
	cmpq	$0, 56(%r15)
	jne	LBB0_12
LBB0_9:
	movl	$1, %r14d
	cmpq	$0, 40(%r15)
	je	LBB0_10
LBB0_12:
	cmpq	$0, 40(%r15)
	jne	LBB0_15
## %bb.13:
	leaq	32(%r15), %rax
	jmp	LBB0_14
LBB0_10:
	leaq	48(%r15), %rax
	movl	$1, %r14d
LBB0_14:
	incl	(%rax)
LBB0_15:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_eapol_sm_get_session_id
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_20
## %bb.19:
	movq	16(%r15), %rdi
	movq	%rbx, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	leaq	L_.str.7(%rip), %rsi
	callq	_wpa_hexdump
	jmp	LBB0_23
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
LBB0_22:
	callq	_wpa_printf
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r14d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PMK_LEN,4,2                    ## @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMK from EAPOL"

L_.str.2:                               ## @.str.2
	.asciz	"PMK from AS"

L_.str.3:                               ## @.str.3
	.asciz	"LEAP PMK from EAPOL"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"No EAP-Key-Name received from server"

L_.str.5:                               ## @.str.5
	.asciz	"Locally derived EAP Session-Id does not match EAP-Key-Name from server"

L_.str.6:                               ## @.str.6
	.asciz	"EAP Session-Id"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-Key-Name from server"

L_.str.8:                               ## @.str.8
	.asciz	"Locally derived EAP Session-Id matches EAP-Key-Name from server"

L_str.9:                                ## @str.9
	.asciz	"WARNING: PMK mismatch"

	.no_dead_strip	_eapol_test_compare_pmk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eapol_test_compare_pmk
_eapol_test_compare_pmk:                ; @eapol_test_compare_pmk
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _PMK_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PMK_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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, [x0, #24]
	ldr	w0, [x8]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_eapol_sm_get_key
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #16
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #16
	bl	_eapol_sm_get_key
	cbz	x0, LBB0_9
LBB0_3:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_14
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
LBB0_6:
	mov	w20, #1
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_17
	b	LBB0_15
LBB0_7:
Lloh7:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldrsw	x3, [x21]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump
	ldr	x1, [x19, #64]
	ldrsw	x2, [x21]
	mov	x0, x20
	bl	_os_memcmp
	cbz	x0, LBB0_13
; %bb.8:
Lloh11:
	adrp	x0, l_str.9@PAGE
Lloh12:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	ldr	w0, [x22]
	ldr	x2, [x19, #64]
	ldrsw	x3, [x21]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	mov	w3, #16
	bl	_wpa_hexdump
	ldr	x1, [x19, #64]
	mov	x0, x20
	mov	w2, #16
	bl	_os_memcmp
	cbz	x0, LBB0_13
; %bb.10:
Lloh19:
	adrp	x0, l_str.9@PAGE
Lloh20:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	ldr	w0, [x21]
	ldr	x2, [x19, #64]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #16
LBB0_11:
	bl	_wpa_hexdump
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_6
LBB0_12:
	add	x8, x19, #48
	mov	w20, #1
	b	LBB0_16
LBB0_13:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
LBB0_14:
	mov	w20, #0
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_17
LBB0_15:
	add	x8, x19, #32
LBB0_16:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_17:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	sub	x1, x29, #48
	bl	_eapol_sm_get_session_id
	cbz	x0, LBB0_25
; %bb.18:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_22
; %bb.19:
	mov	x21, x0
	ldur	x8, [x29, #-48]
	cmp	x2, x8
	b.ne	LBB0_21
; %bb.20:
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_os_memcmp
	cbz	x0, LBB0_23
LBB0_21:
Lloh23:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh28:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldur	x3, [x29, #-48]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	w0, [x22]
	ldp	x3, x2, [x19, #8]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_25
LBB0_22:
Lloh34:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh39:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_24:
	bl	_wpa_printf
LBB0_25:
	ldur	x8, [x29, #-40]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x20
	sub	sp, x29, #32
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PMK_LEN,4,2                    ; @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMK from EAPOL"

l_.str.2:                               ; @.str.2
	.asciz	"PMK from AS"

l_.str.3:                               ; @.str.3
	.asciz	"LEAP PMK from EAPOL"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"No EAP-Key-Name received from server"

l_.str.5:                               ; @.str.5
	.asciz	"Locally derived EAP Session-Id does not match EAP-Key-Name from server"

l_.str.6:                               ; @.str.6
	.asciz	"EAP Session-Id"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-Key-Name from server"

l_.str.8:                               ; @.str.8
	.asciz	"Locally derived EAP Session-Id matches EAP-Key-Name from server"

l_str.9:                                ; @str.9
	.asciz	"WARNING: PMK mismatch"

	.no_dead_strip	_eapol_test_compare_pmk
.subsections_via_symbols
