	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_validate_gpsk_3_mic
_eap_gpsk_validate_gpsk_3_mic:          ## @eap_gpsk_validate_gpsk_3_mic
	.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, %r13
	movq	%rsi, %r12
	movq	%rdi, %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
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_eap_gpsk_mic_len
	movq	%rax, %rcx
	subq	%r13, %rbx
	sarq	$2, %rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %edi
	movl	8(%r15), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r13, %r9
	subq	%r12, %r9
	shrq	$2, %r9
	subq	$8, %rsp
	movq	%r12, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	movq	%r14, %rbx
	pushq	%r14
	callq	_eap_gpsk_compute_mic
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_8:
	leaq	(,%r15,4), %r12
	addq	%r13, %r12
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_GPSK_MAX_MIC_LEN,4,2       ## @EAP_GPSK_MAX_MIC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Message too short for MIC (left=%lu miclen=%lu)"

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

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

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

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

	.no_dead_strip	_eap_gpsk_validate_gpsk_3_mic
.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_gpsk_3_mic
_eap_gpsk_validate_gpsk_3_mic:          ; @eap_gpsk_validate_gpsk_3_mic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
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
	cbz	x2, LBB0_3
; %bb.1:
	ldp	w1, w0, [x23]
	bl	_eap_gpsk_mic_len
	mov	x21, x0
	sub	x8, x24, x19
	asr	x8, x8, #2
	cmp	x8, w21, sxtw
	b.ge	LBB0_6
; %bb.2:
Lloh8:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	stp	x8, x21, [sp, #-16]!
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.5:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	w1, w0, [x23, #8]
	ldp	w3, w2, [x23]
	sub	x8, x19, x22
	lsr	x5, x8, #2
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	mov	x6, x20
	bl	_eap_gpsk_compute_mic
	tbnz	x0, #63, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_os_memcmp_const
	cbz	x0, LBB0_10
; %bb.8:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh21:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_wpa_hexdump
	ldr	w0, [x22]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_wpa_hexdump
	mov	x0, #0
	b	LBB0_4
LBB0_9:
Lloh27:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_4
LBB0_10:
	add	x0, x19, x21, lsl #2
	b	LBB0_4
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_GPSK_MAX_MIC_LEN,4,2       ; @EAP_GPSK_MAX_MIC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Message too short for MIC (left=%lu miclen=%lu)"

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

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

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

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

	.no_dead_strip	_eap_gpsk_validate_gpsk_3_mic
.subsections_via_symbols
