	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_add_checkcode
_eap_aka_add_checkcode:                 ## @eap_aka_add_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsp, %r13
	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, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	movq	8(%r12), %rdi
	callq	_wpabuf_len
	movq	%rax, -56(%rbp)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_wpa_hexdump
	movq	(%r12), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$1, %edi
	movq	%r15, %rcx
	callq	_sha256_vector
	jmp	LBB0_5
LBB0_1:
	movq	_EAP_SIM_AT_CHECKCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_4:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$1, %edi
	movq	%r15, %rcx
	callq	_sha1_vector
LBB0_5:
	movq	_EAP_SIM_AT_CHECKCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_EAP_AKA_PRIME_CHECKCODE_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_EAP_AKA_CHECKCODE_LEN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%r15, %rcx
LBB0_9:
	callq	_eap_sim_msg_add
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	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	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   AT_CHECKCODE"

	.comm	_EAP_SIM_AT_CHECKCODE,4,2       ## @EAP_SIM_AT_CHECKCODE
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: AT_CHECKCODE data"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_CHECKCODE_LEN,4,2 ## @EAP_AKA_PRIME_CHECKCODE_LEN
	.comm	_EAP_AKA_CHECKCODE_LEN,4,2      ## @EAP_AKA_CHECKCODE_LEN
	.no_dead_strip	_eap_aka_add_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_add_checkcode
_eap_aka_add_checkcode:                 ; @eap_aka_add_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, x1
	mov	x20, 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
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_wpabuf_head
	mov	x22, x0
	stur	x0, [x29, #-64]
	ldr	x0, [x20, #8]
	bl	_wpabuf_len
	mov	x3, x0
	stur	x0, [x29, #-72]
Lloh13:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump
	ldr	x8, [x20]
Lloh18:
	adrp	x22, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh19:
	ldr	x22, [x22, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
	ldr	x9, [x22]
	sub	x1, x29, #64
	sub	x2, x29, #72
	mov	w0, #1
	mov	x3, x21
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	bl	_sha256_vector
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _EAP_SIM_AT_CHECKCODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAP_SIM_AT_CHECKCODE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	b	LBB0_6
LBB0_4:
	bl	_sha1_vector
LBB0_5:
Lloh23:
	adrp	x8, _EAP_SIM_AT_CHECKCODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_SIM_AT_CHECKCODE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x20]
Lloh26:
	adrp	x9, _EAP_AKA_PRIME_CHECKCODE_LEN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EAP_AKA_PRIME_CHECKCODE_LEN@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh28:
	adrp	x11, _EAP_AKA_CHECKCODE_LEN@GOTPAGE
Lloh29:
	ldr	x11, [x11, _EAP_AKA_CHECKCODE_LEN@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
LBB0_6:
	bl	_eap_sim_msg_add
	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_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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	"   AT_CHECKCODE"

	.comm	_EAP_SIM_AT_CHECKCODE,4,2       ; @EAP_SIM_AT_CHECKCODE
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: AT_CHECKCODE data"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_CHECKCODE_LEN,4,2 ; @EAP_AKA_PRIME_CHECKCODE_LEN
	.comm	_EAP_AKA_CHECKCODE_LEN,4,2      ; @EAP_AKA_CHECKCODE_LEN
	.no_dead_strip	_eap_aka_add_checkcode
.subsections_via_symbols
