	.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
	pushq	%rax
	.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, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movl	48(%rbx), %edx
	movq	%r15, %rdi
	callq	_eap_aka_verify_checkcode
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_aka_verify_mac
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r15)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_aka_state                  ## TAILCALL
LBB0_8:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	movl	16(%r15), %edx
	cmpl	%edx, 16(%rbx)
	jl	LBB0_12
## %bb.10:
	leal	(,%rdx,8), %eax
	cmpl	%eax, 20(%rbx)
	jne	LBB0_12
## %bb.11:
	movl	80(%r15), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	16(%rbx), %rdx
	movslq	20(%rbx), %rcx
	movslq	16(%r15), %r8
	shlq	$3, %r8
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_13:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%r14)
	je	LBB0_16
## %bb.14:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.15:
	movl	$1, 20(%r15)
	movq	_EAP_SIM_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r15)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_aka_state
	movq	64(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movl	48(%r15), %esi
	callq	_eap_sim_db_add_pseudonym
	movq	$0, 64(%r15)
LBB0_18:
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.19:
	movq	(%r15), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.20:
	movl	(%r14), %edi
	movl	48(%r15), %esi
	movq	40(%r15), %rcx
	incq	%rcx
	movl	32(%r15), %r8d
	callq	_eap_sim_db_add_reauth
LBB0_21:
	movq	$0, 24(%r15)
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: Processing Challenge"

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

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,8,3 ## @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ## @NOTIFICATION
L_.str.2:                               ## @.str.2
	.asciz	"EAP-AKA: Challenge message did not include valid AT_MAC"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-AKA: Challenge message did not include valid AT_RES (attr len=%lu, res len=%lu bits, expected %lu bits)"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-AKA: Challenge response includes the correct AT_MAC"

	.comm	_EAP_SIM_SUCCESS,8,3            ## @EAP_SIM_SUCCESS
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_KDF,8,3          ## @EAP_AKA_PRIME_KDF
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x1, [x21, #56]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w2, [x21, #48]
	mov	x0, x19
	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_11
LBB0_3:
	ldr	x2, [x21, #40]
	cbz	x2, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	bl	_eap_aka_verify_mac
	cbz	x0, LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w8, [x21, #16]
	ldr	w2, [x19, #16]
	cmp	w8, w2
	b.lt	LBB0_10
; %bb.8:
	ldr	w8, [x21, #20]
	cmp	w8, w2, lsl #3
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x19, #80]
	bl	_os_memcmp_const
	cbz	x0, LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldpsw	x8, x9, [x21, #16]
	ldrsw	x10, [x19, #16]
	lsl	x10, x10, #3
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	bl	_wpa_printf
Lloh19:
	adrp	x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #72]
Lloh22:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_eap_aka_state
LBB0_12:
	ldr	w0, [x23]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #20]
Lloh27:
	adrp	x8, _EAP_SIM_SUCCESS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAP_SIM_SUCCESS@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #72]
Lloh30:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh32:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_aka_state
	ldr	x2, [x19, #64]
	cbz	x2, LBB0_18
; %bb.17:
	ldr	w0, [x20]
	ldr	w1, [x19, #48]
	bl	_eap_sim_db_add_pseudonym
	str	xzr, [x19, #64]
LBB0_18:
	ldr	x2, [x19, #24]
	cbz	x2, LBB0_22
; %bb.19:
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
	ldr	w0, [x20]
	ldr	w1, [x19, #48]
	ldr	x8, [x19, #40]
	add	x3, x8, #1
	ldr	w4, [x19, #32]
	bl	_eap_sim_db_add_reauth
LBB0_21:
	str	xzr, [x19, #24]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Processing Challenge"

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

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,8,3 ; @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ; @NOTIFICATION
l_.str.2:                               ; @.str.2
	.asciz	"EAP-AKA: Challenge message did not include valid AT_MAC"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-AKA: Challenge message did not include valid AT_RES (attr len=%lu, res len=%lu bits, expected %lu bits)"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-AKA: Challenge response includes the correct AT_MAC"

	.comm	_EAP_SIM_SUCCESS,8,3            ; @EAP_SIM_SUCCESS
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
	.comm	_EAP_AKA_PRIME_KDF,8,3          ; @EAP_AKA_PRIME_KDF
	.no_dead_strip	_eap_aka_process_challenge
.subsections_via_symbols
