	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_process_challenge
_eap_sim_process_challenge:             ## @eap_sim_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	$72, %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, -56(%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	$0, 144(%r15)
	cmpl	$0, 32(%rbx)
	movq	40(%rbx), %rax
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%r12), %edi
	movslq	(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movslq	(%rbx), %rdx
	cmpl	(%r15), %edx
	jge	LBB0_9
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_INSUFFICIENT_NUM_OF_CHAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
LBB0_6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movq	_EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_client_error           ## TAILCALL
LBB0_9:
	cmpl	$4, %edx
	jl	LBB0_11
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_11:
	movq	40(%rbx), %rdi
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	%rdx, %rsi
	addq	%rdi, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movl	(%rbx), %edx
	cmpl	$3, %edx
	jl	LBB0_16
## %bb.13:
	movq	40(%rbx), %rdi
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	(%rdi,%rdx,2), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	40(%rbx), %rax
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	(%rax,%rdx,2), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movl	(%rbx), %edx
LBB0_16:
	movl	136(%r15), %edi
	movq	40(%rbx), %rsi
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	callq	_os_memcpy
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_eap_sim_gsm_auth
	testl	%eax, %eax
	jle	LBB0_20
## %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	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_RAND_NOT_FRESH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_20:
	je	LBB0_22
## %bb.21:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_22:
	movq	128(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.23:
	movq	8(%r15), %rcx
LBB0_31:
	movq	%rcx, -48(%rbp)
LBB0_32:
	movl	(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%rdx, %r12
	callq	_wpa_hexdump_ascii
	movq	-48(%rbp), %rsi
	movl	4(%r15), %r10d
	movl	76(%r15), %edx
	movl	112(%r15), %ecx
	movl	108(%r15), %r8d
	movl	104(%r15), %r9d
	movl	92(%r15), %eax
	subq	$8, %rsp
	movq	%r12, %rdi
	pushq	%rax
	pushq	96(%r15)
	pushq	%r10
	callq	_eap_sim_derive_mk
	addq	$32, %rsp
	movl	92(%r15), %edi
	movl	72(%r15), %esi
	movl	80(%r15), %edx
	movl	88(%r15), %ecx
	movl	84(%r15), %r8d
	callq	_eap_sim_derive_keys
	movl	76(%r15), %ecx
	movl	80(%r15), %edi
	movl	32(%rbx), %edx
	movq	_EAP_SIM_NONCE_MT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rsi
	callq	_eap_sim_verify_mac
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_34:
	movq	_EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_eap_sim_client_error
	jmp	LBB0_47
LBB0_24:
	movq	120(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	movq	16(%r15), %rsi
	callq	_eap_sim_anonymous_username
	testl	%eax, %eax
	je	LBB0_30
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_get_config
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.28:
	movq	(%rax), %rcx
	jmp	LBB0_31
LBB0_35:
	movq	_CLEAR_REAUTH_ID@GOTPCREL(%rip), %rax
	movq	_CLEAR_EAP_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_eap_sim_clear_identities
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_38
## %bb.36:
	movl	72(%r15), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	leaq	-104(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_eap_sim_parse_encr
	testq	%rax, %rax
	je	LBB0_34
## %bb.37:
	movq	%rax, %r13
	leaq	-104(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_eap_sim_learn_ids
	movq	%r13, %rdi
	callq	_os_free
LBB0_38:
	cmpq	$0, 64(%r15)
	je	LBB0_41
## %bb.39:
	cmpq	$0, 8(%rbx)
	je	LBB0_41
## %bb.40:
	movl	$1, 24(%r15)
LBB0_41:
	movq	32(%r15), %rax
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_46
## %bb.42:
	cmpl	$0, 24(%r15)
	jne	LBB0_44
## %bb.43:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_29:
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_get_config_identity
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx
	jmp	LBB0_32
LBB0_30:
	movq	16(%r15), %rcx
	movq	120(%r15), %rdx
	jmp	LBB0_31
LBB0_44:
	movq	_RESULT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_45:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_sim_state
LBB0_46:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_eap_sim_response_challenge
LBB0_47:
	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-SIM: subtype Challenge"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM: Challenge message did not include%s%s"

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

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

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

	.comm	_EAP_SIM_UNABLE_TO_PROCESS_PACKET,4,2 ## @EAP_SIM_UNABLE_TO_PROCESS_PACKET
L_.str.5:                               ## @.str.5
	.asciz	"EAP-SIM: %lu challenges"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.6:                               ## @.str.6
	.asciz	"EAP-SIM: Insufficient number of challenges (%lu)"

	.comm	_EAP_SIM_INSUFFICIENT_NUM_OF_CHAL,4,2 ## @EAP_SIM_INSUFFICIENT_NUM_OF_CHAL
L_.str.7:                               ## @.str.7
	.asciz	"EAP-SIM: Too many challenges (%lu)"

	.comm	_GSM_RAND_LEN,4,2               ## @GSM_RAND_LEN
L_.str.8:                               ## @.str.8
	.asciz	"EAP-SIM: Same RAND used multiple times"

	.comm	_EAP_SIM_RAND_NOT_FRESH,4,2     ## @EAP_SIM_RAND_NOT_FRESH
L_.str.9:                               ## @.str.9
	.asciz	"EAP-SIM: Wait for external SIM processing"

L_.str.10:                              ## @.str.10
	.asciz	"EAP-SIM: GSM authentication failed"

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

	.comm	_EAP_SIM_NONCE_MT_LEN,4,2       ## @EAP_SIM_NONCE_MT_LEN
L_.str.12:                              ## @.str.12
	.asciz	"EAP-SIM: 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
	.no_dead_strip	_eap_sim_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_sim_process_challenge
_eap_sim_process_challenge:             ; @eap_sim_process_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	xzr, [x20, #144]
	ldr	w9, [x21, #32]
	ldr	x8, [x21, #40]
	cbz	w9, LBB0_4
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w0, [x25]
	ldrsw	x8, [x21]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.5@PAGE
Lloh5:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldrsw	x8, [x21]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.3:
Lloh6:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh11:
	adrp	x8, _EAP_SIM_INSUFFICIENT_NUM_OF_CHAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_SIM_INSUFFICIENT_NUM_OF_CHAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh15:
	adrp	x10, l_.str.4@PAGE
Lloh16:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x9, x10, x9, eq
Lloh17:
	adrp	x8, l_.str.2@PAGE
Lloh18:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, l_.str.3@PAGE
Lloh20:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh21:
	adrp	x9, l_.str.4@PAGE
Lloh22:
	add	x9, x9, l_.str.4@PAGEOFF
LBB0_6:
Lloh23:
	adrp	x10, _MSG_WARNING@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MSG_WARNING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
Lloh28:
	adrp	x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_eap_sim_client_error
LBB0_9:
	cmp	w8, #4
	b.lt	LBB0_11
; %bb.10:
Lloh30:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x9]
	and	x8, x8, #0xffffffff
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
LBB0_11:
	ldr	x0, [x21, #40]
Lloh35:
	adrp	x24, _GSM_RAND_LEN@GOTPAGE
Lloh36:
	ldr	x24, [x24, _GSM_RAND_LEN@GOTPAGEOFF]
	ldrsw	x2, [x24]
	add	x1, x0, x2
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbz	x0, LBB0_19
; %bb.12:
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_16
; %bb.13:
	ldr	x0, [x21, #40]
	ldrsw	x2, [x24]
	add	x1, x0, x2, lsl #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbz	x0, LBB0_19
; %bb.14:
	ldr	x8, [x21, #40]
	ldrsw	x2, [x24]
	add	x0, x8, x2
	add	x1, x8, x2, lsl #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbz	x0, LBB0_19
; %bb.15:
	ldr	w8, [x21]
LBB0_16:
	ldr	w0, [x20, #136]
	ldr	x1, [x21, #40]
	ldr	w9, [x24]
	mul	w2, w9, w8
	bl	_os_memcpy
	ldr	w8, [x21]
	str	w8, [x20, #4]
	mov	x0, x22
	mov	x1, x20
	bl	_eap_sim_gsm_auth
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.17:
	ldr	w0, [x25]
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
LBB0_18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
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
	bl	_wpa_printf
Lloh44:
	adrp	x8, _EAP_SIM_RAND_NOT_FRESH@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EAP_SIM_RAND_NOT_FRESH@GOTPAGEOFF]
	b	LBB0_8
LBB0_20:
	cbz	w0, LBB0_22
; %bb.21:
Lloh46:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.10@PAGE
Lloh50:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_7
LBB0_22:
	ldr	x24, [x20, #128]
	cbz	x24, LBB0_28
; %bb.23:
	ldr	x3, [x20, #8]
LBB0_24:
	str	x3, [sp, #72]
LBB0_25:
	ldr	w0, [x25]
Lloh51:
	adrp	x1, l_.str.11@PAGE
Lloh52:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump_ascii
	ldr	x1, [sp, #72]
	ldr	w2, [x20, #76]
	ldp	w4, w3, [x20, #108]
	ldr	w5, [x20, #104]
	ldr	w6, [x20, #4]
	ldr	x7, [x20, #96]
	ldr	w8, [x20, #92]
	str	w8, [sp]
	mov	x0, x24
	bl	_eap_sim_derive_mk
	ldr	w1, [x20, #72]
	ldp	w3, w0, [x20, #88]
	ldp	w2, w4, [x20, #80]
	bl	_eap_sim_derive_keys
	ldr	w2, [x21, #32]
	ldp	w3, w0, [x20, #76]
Lloh53:
	adrp	x8, _EAP_SIM_NONCE_MT_LEN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EAP_SIM_NONCE_MT_LEN@GOTPAGEOFF]
Lloh55:
	ldr	w4, [x8]
	mov	x1, x23
	bl	_eap_sim_verify_mac
	cbz	x0, LBB0_33
; %bb.26:
Lloh56:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
LBB0_27:
Lloh61:
	adrp	x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_sim_client_error
	b	LBB0_18
LBB0_28:
	ldr	x0, [x20, #120]
	cbz	x0, LBB0_30
; %bb.29:
	ldr	x1, [x20, #16]
	bl	_eap_sim_anonymous_username
	cbz	w0, LBB0_43
LBB0_30:
	mov	x0, x22
	bl	_eap_get_config
	cbz	x0, LBB0_42
; %bb.31:
	ldr	x24, [x0, #8]
	cbz	x24, LBB0_42
; %bb.32:
	ldr	x3, [x0]
	b	LBB0_24
LBB0_33:
Lloh64:
	adrp	x8, _CLEAR_REAUTH_ID@GOTPAGE
Lloh65:
	ldr	x8, [x8, _CLEAR_REAUTH_ID@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x9, _CLEAR_EAP_ID@GOTPAGE
Lloh68:
	ldr	x9, [x9, _CLEAR_EAP_ID@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x22
	mov	x1, x20
	bl	_eap_sim_clear_identities
	ldr	x1, [x21, #24]
	cbz	x1, LBB0_36
; %bb.34:
	ldr	w0, [x20, #72]
	ldp	w3, w2, [x21, #16]
	add	x4, sp, #24
	mov	w5, #0
	bl	_eap_sim_parse_encr
	cbz	x0, LBB0_27
; %bb.35:
	mov	x23, x0
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x20
	bl	_eap_sim_learn_ids
	mov	x0, x23
	bl	_os_free
LBB0_36:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_39
; %bb.37:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_39
; %bb.38:
	mov	w8, #1
	str	w8, [x20, #24]
LBB0_39:
	ldr	x8, [x20, #32]
Lloh70:
	adrp	x9, _FAILURE@GOTPAGE
Lloh71:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_41
; %bb.40:
Lloh73:
	adrp	x8, _RESULT_SUCCESS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _RESULT_SUCCESS@GOTPAGEOFF]
	ldr	w9, [x20, #24]
Lloh75:
	adrp	x10, _SUCCESS@GOTPAGE
Lloh76:
	ldr	x10, [x10, _SUCCESS@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_sim_state
LBB0_41:
	stp	xzr, xzr, [x20, #40]
	str	xzr, [x20, #56]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_sim_response_challenge
	b	LBB0_18
LBB0_42:
	add	x1, sp, #72
	mov	x0, x22
	bl	_eap_get_config_identity
	mov	x24, x0
	ldr	x3, [sp, #72]
	b	LBB0_25
LBB0_43:
	ldr	x24, [x20, #120]
	ldr	x3, [x20, #16]
	b	LBB0_24
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: subtype Challenge"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM: Challenge message did not include%s%s"

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

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

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

	.comm	_EAP_SIM_UNABLE_TO_PROCESS_PACKET,4,2 ; @EAP_SIM_UNABLE_TO_PROCESS_PACKET
l_.str.5:                               ; @.str.5
	.asciz	"EAP-SIM: %lu challenges"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.6:                               ; @.str.6
	.asciz	"EAP-SIM: Insufficient number of challenges (%lu)"

	.comm	_EAP_SIM_INSUFFICIENT_NUM_OF_CHAL,4,2 ; @EAP_SIM_INSUFFICIENT_NUM_OF_CHAL
l_.str.7:                               ; @.str.7
	.asciz	"EAP-SIM: Too many challenges (%lu)"

	.comm	_GSM_RAND_LEN,4,2               ; @GSM_RAND_LEN
l_.str.8:                               ; @.str.8
	.asciz	"EAP-SIM: Same RAND used multiple times"

	.comm	_EAP_SIM_RAND_NOT_FRESH,4,2     ; @EAP_SIM_RAND_NOT_FRESH
l_.str.9:                               ; @.str.9
	.asciz	"EAP-SIM: Wait for external SIM processing"

l_.str.10:                              ; @.str.10
	.asciz	"EAP-SIM: GSM authentication failed"

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

	.comm	_EAP_SIM_NONCE_MT_LEN,4,2       ; @EAP_SIM_NONCE_MT_LEN
l_.str.12:                              ; @.str.12
	.asciz	"EAP-SIM: 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
	.no_dead_strip	_eap_sim_process_challenge
.subsections_via_symbols
