	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_verify_checkcode
_eap_aka_verify_checkcode:              ## @eap_aka_verify_checkcode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$-1, %r14d
	testq	%r13, %r13
	je	LBB0_11
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	_EAP_AKA_PRIME_CHECKCODE_LEN@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_8
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	testq	%r15, %r15
	je	LBB0_14
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	movq	_EAP_AKA_CHECKCODE_LEN@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
LBB0_8:
	callq	_wpabuf_head
	movq	%rax, -72(%rbp)
	movq	8(%rbx), %rdi
	callq	_wpabuf_len
	movq	%rax, -64(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$1, %edi
	movq	%r12, %rcx
	callq	_sha1_vector
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_14:
	xorl	%r14d, %r14d
LBB0_11:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.12:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: Checkcode from server indicates that AKA/Identity messages were used, but they were not"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_CHECKCODE_LEN,8,3 ## @EAP_AKA_PRIME_CHECKCODE_LEN
	.comm	_EAP_AKA_CHECKCODE_LEN,8,3      ## @EAP_AKA_CHECKCODE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: Checkcode from server indicates that AKA/Identity message were not used, but they were"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-AKA: Mismatch in AT_CHECKCODE"

	.no_dead_strip	_eap_aka_verify_checkcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_aka_verify_checkcode
_eap_aka_verify_checkcode:              ; @eap_aka_verify_checkcode
	.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, #32
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x23, sp
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, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA256_MAC_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	x21, x9, x8
	mov	sp, x21
	cbz	x1, LBB0_9
; %bb.1:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _EAP_AKA_PRIME_CHECKCODE_LEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EAP_AKA_PRIME_CHECKCODE_LEN@GOTPAGEOFF]
Lloh13:
	adrp	x11, _EAP_AKA_CHECKCODE_LEN@GOTPAGE
Lloh14:
	ldr	x11, [x11, _EAP_AKA_CHECKCODE_LEN@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.3:
	bl	_wpabuf_head
	stur	x0, [x29, #-64]
	ldr	x0, [x22, #8]
	bl	_wpabuf_len
	stur	x0, [x29, #-72]
	sub	x1, x29, #64
	sub	x2, x29, #72
	mov	w0, #1
	mov	x3, x21
	bl	_sha1_vector
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_os_memcmp_const
	cbz	x0, LBB0_10
; %bb.4:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:
	cbz	x19, LBB0_12
; %bb.6:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_wpa_printf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	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_12:
	mov	w0, #0
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Checkcode from server indicates that AKA/Identity messages were used, but they were not"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_CHECKCODE_LEN,8,3 ; @EAP_AKA_PRIME_CHECKCODE_LEN
	.comm	_EAP_AKA_CHECKCODE_LEN,8,3      ; @EAP_AKA_CHECKCODE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: Checkcode from server indicates that AKA/Identity message were not used, but they were"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-AKA: Mismatch in AT_CHECKCODE"

	.no_dead_strip	_eap_aka_verify_checkcode
.subsections_via_symbols
