	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_process_challenge
_eap_aka_process_challenge:             ## @eap_aka_process_challenge
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	72(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movl	68(%rbx), %edx
	movq	%r15, %rdi
	callq	_eap_aka_verify_checkcode
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_4:
	movq	$0, 152(%r15)
	cmpl	$0, 40(%rbx)
	movl	48(%rbx), %esi
	je	LBB0_10
## %bb.5:
	testl	%esi, %esi
	je	LBB0_11
## %bb.6:
	cmpl	$0, 44(%rbx)
	je	LBB0_12
## %bb.7:
	movq	144(%r15), %rdi
	movq	_EAP_AKA_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	136(%r15), %rdi
	movl	44(%rbx), %esi
	movq	_EAP_AKA_AUTN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_eap_aka_umts_auth
	cmpl	$-2, %eax
	je	LBB0_15
## %bb.8:
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.9:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_aka_authentication_reject  ## TAILCALL
LBB0_10:
	testl	%esi, %esi
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, %rdx
LBB0_13:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, 44(%rbx)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movq	_EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_aka_client_error           ## TAILCALL
LBB0_15:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_aka_synchronization_failure ## TAILCALL
LBB0_16:
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:
	movl	(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	je	LBB0_21
## %bb.20:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_3
LBB0_21:
	movq	120(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.22:
	movq	16(%r15), %rcx
LBB0_30:
	movq	%rcx, -56(%rbp)
LBB0_31:
	movl	(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%rdx, %r12
	callq	_wpa_hexdump_ascii
	movq	(%r15), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %rsi
	movl	104(%r15), %edx
	movl	100(%r15), %ecx
	cmpq	(%rdi), %rax
	jne	LBB0_33
## %bb.32:
	movl	92(%r15), %r9d
	movl	108(%r15), %r10d
	movl	88(%r15), %r11d
	movl	80(%r15), %r8d
	movl	84(%r15), %eax
	subq	$8, %rsp
	movq	%r12, %rdi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_eap_aka_prime_derive_keys
	addq	$32, %rsp
	jmp	LBB0_34
LBB0_33:
	movl	96(%r15), %r8d
	movq	%r12, %rdi
	callq	_eap_aka_derive_mk
	movl	96(%r15), %edi
	movl	92(%r15), %edx
	movl	88(%r15), %ecx
	movl	80(%r15), %esi
	movl	84(%r15), %r8d
	callq	_eap_sim_derive_keys
LBB0_34:
	movl	40(%rbx), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_eap_aka_verify_mac
	testq	%rax, %rax
	je	LBB0_37
## %bb.35:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_36:
	movq	_EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_eap_aka_client_error
	jmp	LBB0_49
LBB0_23:
	movq	112(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	movq	24(%r15), %rsi
	callq	_eap_sim_anonymous_username
	testl	%eax, %eax
	je	LBB0_29
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_get_config
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	(%rax), %rcx
	jmp	LBB0_30
LBB0_37:
	movq	_CLEAR_REAUTH_ID@GOTPCREL(%rip), %rax
	movq	_CLEAR_EAP_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_eap_aka_clear_identities
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_40
## %bb.38:
	movl	80(%r15), %edi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	leaq	-136(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_eap_sim_parse_encr
	testq	%rax, %rax
	je	LBB0_36
## %bb.39:
	movq	%rax, %r13
	leaq	-136(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_eap_aka_learn_ids
	movq	%r13, %rdi
	callq	_os_free
LBB0_40:
	cmpq	$0, 72(%r15)
	je	LBB0_43
## %bb.41:
	cmpq	$0, 16(%rbx)
	je	LBB0_43
## %bb.42:
	movl	$1, 32(%r15)
LBB0_43:
	movq	40(%r15), %rax
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_48
## %bb.44:
	cmpl	$0, 32(%r15)
	jne	LBB0_46
## %bb.45:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_28:
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_get_config_identity
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx
	jmp	LBB0_31
LBB0_29:
	movq	24(%r15), %rcx
	movq	112(%r15), %rdx
	jmp	LBB0_30
LBB0_46:
	movq	_RESULT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_aka_state
LBB0_48:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	movq	$0, 64(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_eap_aka_response_challenge
LBB0_49:
	movq	%rax, %rbx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: subtype Challenge"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: Invalid AT_CHECKCODE in the message"

	.comm	_EAP_AKA_UNABLE_TO_PROCESS_PACKET,4,2 ## @EAP_AKA_UNABLE_TO_PROCESS_PACKET
L_.str.2:                               ## @.str.2
	.asciz	"EAP-AKA: Challenge message did not include%s%s%s"

L_.str.3:                               ## @.str.3
	.asciz	" AT_MAC"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	" AT_RAND"

L_.str.6:                               ## @.str.6
	.asciz	" AT_AUTN"

	.comm	_EAP_AKA_RAND_LEN,4,2           ## @EAP_AKA_RAND_LEN
	.comm	_EAP_AKA_AUTN_LEN,4,2           ## @EAP_AKA_AUTN_LEN
L_.str.7:                               ## @.str.7
	.asciz	"EAP-AKA: UMTS authentication failed (AUTN)"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-AKA: UMTS authentication failed (AUTN seq# -> AUTS)"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-AKA: Wait for external USIM processing"

L_.str.10:                              ## @.str.10
	.asciz	"EAP-AKA: UMTS authentication failed"

L_.str.11:                              ## @.str.11
	.asciz	"EAP-AKA: Selected identity for MK derivation"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
L_.str.12:                              ## @.str.12
	.asciz	"EAP-AKA: Challenge message used invalid AT_MAC"

	.comm	_CLEAR_REAUTH_ID,4,2            ## @CLEAR_REAUTH_ID
	.comm	_CLEAR_EAP_ID,4,2               ## @CLEAR_EAP_ID
	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_RESULT_SUCCESS,4,2             ## @RESULT_SUCCESS
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_EAP_AKA_BIDDING_FLAG_D,4,2     ## @EAP_AKA_BIDDING_FLAG_D
	.comm	_EAP_AKA_PRIME_KDF,8,3          ## @EAP_AKA_PRIME_KDF
	.comm	_EAP_TYPE_AKA,8,3               ## @EAP_TYPE_AKA
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.no_dead_strip	_eap_aka_process_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_aka_process_challenge
_eap_aka_process_challenge:             ; @eap_aka_process_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x1, [x21, #72]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w2, [x21, #68]
	mov	x0, x20
	bl	_eap_aka_verify_checkcode
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_3:
	str	xzr, [x20, #152]
	ldr	w9, [x21, #40]
	ldr	w1, [x21, #48]
Lloh9:
	adrp	x8, l_.str.4@PAGE
Lloh10:
	add	x8, x8, l_.str.4@PAGEOFF
	cbz	w9, LBB0_9
; %bb.4:
	cbz	w1, LBB0_10
; %bb.5:
	ldr	w9, [x21, #44]
	cbz	w9, LBB0_11
; %bb.6:
	ldr	x0, [x20, #144]
Lloh11:
	adrp	x8, _EAP_AKA_RAND_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_AKA_RAND_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x0, [x20, #136]
	ldr	w1, [x21, #44]
Lloh14:
	adrp	x8, _EAP_AKA_AUTN_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_AKA_AUTN_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_os_memcpy
	mov	x0, x22
	mov	x1, x20
	bl	_eap_aka_umts_auth
	cmn	w0, #2
	b.eq	LBB0_14
; %bb.7:
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.8:
Lloh17:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_eap_aka_authentication_reject
LBB0_9:
Lloh22:
	adrp	x9, l_.str.5@PAGE
Lloh23:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w1, #0
	csel	x9, x9, x8, eq
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x10, l_.str.4@PAGE
Lloh27:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh28:
	adrp	x9, l_.str.5@PAGE
Lloh29:
	add	x9, x9, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x9, l_.str.4@PAGE
Lloh31:
	add	x9, x9, l_.str.4@PAGEOFF
	mov	x10, x9
LBB0_12:
Lloh32:
	adrp	x11, _MSG_WARNING@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MSG_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x11]
	ldr	w11, [x21, #44]
Lloh35:
	adrp	x12, l_.str.6@PAGE
Lloh36:
	add	x12, x12, l_.str.6@PAGEOFF
	cmp	w11, #0
	csel	x8, x12, x8, eq
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	bl	_wpa_printf
Lloh39:
	adrp	x8, _EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_eap_aka_client_error
LBB0_14:
Lloh42:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_eap_aka_synchronization_failure
LBB0_15:
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.16:
	ldr	w0, [x25]
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
LBB0_17:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_18:
	cbz	w0, LBB0_20
; %bb.19:
Lloh49:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_13
LBB0_20:
	ldr	x24, [x20, #120]
	cbz	x24, LBB0_29
; %bb.21:
	ldr	x3, [x20, #16]
LBB0_22:
	stur	x3, [x29, #-72]
LBB0_23:
	ldr	w0, [x25]
Lloh54:
	adrp	x1, l_.str.11@PAGE
Lloh55:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump_ascii
Lloh56:
	adrp	x8, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh58:
	ldr	x8, [x8]
	ldur	x1, [x29, #-72]
	ldp	w3, w2, [x20, #100]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldr	w6, [x20, #108]
	ldp	w7, w5, [x20, #88]
	ldp	w4, w8, [x20, #80]
	str	w8, [sp]
	mov	x0, x24
	bl	_eap_aka_prime_derive_keys
	b	LBB0_26
LBB0_25:
	ldr	w4, [x20, #96]
	mov	x0, x24
	bl	_eap_aka_derive_mk
	ldp	w2, w0, [x20, #92]
	ldp	w4, w3, [x20, #84]
	ldr	w1, [x20, #80]
	bl	_eap_sim_derive_keys
LBB0_26:
	ldr	w2, [x21, #40]
Lloh59:
	adrp	x3, l_.str.4@PAGE
Lloh60:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	mov	w4, #0
	bl	_eap_aka_verify_mac
	cbz	x0, LBB0_34
; %bb.27:
Lloh61:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x1, l_.str.12@PAGE
Lloh65:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
LBB0_28:
Lloh66:
	adrp	x8, _EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EAP_AKA_UNABLE_TO_PROCESS_PACKET@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_aka_client_error
	b	LBB0_17
LBB0_29:
	ldr	x0, [x20, #112]
	cbz	x0, LBB0_31
; %bb.30:
	ldr	x1, [x20, #24]
	bl	_eap_sim_anonymous_username
	cbz	w0, LBB0_44
LBB0_31:
	mov	x0, x22
	bl	_eap_get_config
	cbz	x0, LBB0_43
; %bb.32:
	ldr	x24, [x0, #8]
	cbz	x24, LBB0_43
; %bb.33:
	ldr	x3, [x0]
	b	LBB0_22
LBB0_34:
Lloh69:
	adrp	x8, _CLEAR_REAUTH_ID@GOTPAGE
Lloh70:
	ldr	x8, [x8, _CLEAR_REAUTH_ID@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
Lloh72:
	adrp	x9, _CLEAR_EAP_ID@GOTPAGE
Lloh73:
	ldr	x9, [x9, _CLEAR_EAP_ID@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x22
	mov	x1, x20
	bl	_eap_aka_clear_identities
	ldr	x1, [x21, #32]
	cbz	x1, LBB0_37
; %bb.35:
	ldr	w0, [x20, #80]
	ldp	w3, w2, [x21, #24]
	add	x4, sp, #24
	mov	w5, #0
	bl	_eap_sim_parse_encr
	cbz	x0, LBB0_28
; %bb.36:
	mov	x23, x0
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x20
	bl	_eap_aka_learn_ids
	mov	x0, x23
	bl	_os_free
LBB0_37:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_40
; %bb.38:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_40
; %bb.39:
	mov	w8, #1
	str	w8, [x20, #32]
LBB0_40:
	ldr	x8, [x20, #40]
Lloh75:
	adrp	x9, _FAILURE@GOTPAGE
Lloh76:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_42
; %bb.41:
Lloh78:
	adrp	x8, _RESULT_SUCCESS@GOTPAGE
Lloh79:
	ldr	x8, [x8, _RESULT_SUCCESS@GOTPAGEOFF]
	ldr	w9, [x20, #32]
Lloh80:
	adrp	x10, _SUCCESS@GOTPAGE
Lloh81:
	ldr	x10, [x10, _SUCCESS@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_aka_state
LBB0_42:
	stp	xzr, xzr, [x20, #48]
	str	xzr, [x20, #64]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_aka_response_challenge
	b	LBB0_17
LBB0_43:
	sub	x1, x29, #72
	mov	x0, x22
	bl	_eap_get_config_identity
	mov	x24, x0
	ldur	x3, [x29, #-72]
	b	LBB0_23
LBB0_44:
	ldr	x24, [x20, #112]
	ldr	x3, [x20, #24]
	b	LBB0_22
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: subtype Challenge"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: Invalid AT_CHECKCODE in the message"

	.comm	_EAP_AKA_UNABLE_TO_PROCESS_PACKET,4,2 ; @EAP_AKA_UNABLE_TO_PROCESS_PACKET
l_.str.2:                               ; @.str.2
	.asciz	"EAP-AKA: Challenge message did not include%s%s%s"

l_.str.3:                               ; @.str.3
	.asciz	" AT_MAC"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	" AT_RAND"

l_.str.6:                               ; @.str.6
	.asciz	" AT_AUTN"

	.comm	_EAP_AKA_RAND_LEN,4,2           ; @EAP_AKA_RAND_LEN
	.comm	_EAP_AKA_AUTN_LEN,4,2           ; @EAP_AKA_AUTN_LEN
l_.str.7:                               ; @.str.7
	.asciz	"EAP-AKA: UMTS authentication failed (AUTN)"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-AKA: UMTS authentication failed (AUTN seq# -> AUTS)"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-AKA: Wait for external USIM processing"

l_.str.10:                              ; @.str.10
	.asciz	"EAP-AKA: UMTS authentication failed"

l_.str.11:                              ; @.str.11
	.asciz	"EAP-AKA: Selected identity for MK derivation"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
l_.str.12:                              ; @.str.12
	.asciz	"EAP-AKA: Challenge message used invalid AT_MAC"

	.comm	_CLEAR_REAUTH_ID,4,2            ; @CLEAR_REAUTH_ID
	.comm	_CLEAR_EAP_ID,4,2               ; @CLEAR_EAP_ID
	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_RESULT_SUCCESS,4,2             ; @RESULT_SUCCESS
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_EAP_AKA_BIDDING_FLAG_D,4,2     ; @EAP_AKA_BIDDING_FLAG_D
	.comm	_EAP_AKA_PRIME_KDF,8,3          ; @EAP_AKA_PRIME_KDF
	.comm	_EAP_TYPE_AKA,8,3               ; @EAP_TYPE_AKA
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.no_dead_strip	_eap_aka_process_challenge
.subsections_via_symbols
