	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_process_reauth
_eap_aka_process_reauth:                ## @eap_aka_process_reauth
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	48(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	64(%r13), %ecx
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_eap_aka_verify_mac
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_eap_aka_state
	movl	(%r14), %edi
	movq	16(%r13), %rsi
	callq	_eap_sim_db_remove_reauth
	movq	$0, 16(%r13)
	movq	%r12, %rdi
	callq	_os_free
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	40(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r12, %rbx
	movl	60(%r13), %edi
	movl	32(%r15), %edx
	leaq	-96(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_eap_sim_parse_encr
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movl	-80(%rbp), %edx
	movl	44(%r13), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_10
## %bb.12:
	movq	%r12, %rdi
	callq	_os_free
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, -88(%rbp)
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eap_aka_fullauth
	jmp	LBB0_22
LBB0_6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_14:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%r14)
	je	LBB0_17
## %bb.15:
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movl	$1, (%r13)
	movq	_EAP_SIM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_eap_aka_state
	movq	32(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.18:
	movq	8(%r13), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	movl	(%r14), %edi
	movl	48(%r13), %esi
	movl	40(%r13), %r8d
	movl	44(%r13), %ecx
	incl	%ecx
	callq	_eap_sim_db_add_reauth
LBB0_20:
	movq	$0, 32(%r13)
	jmp	LBB0_22
LBB0_21:
	movl	(%r14), %edi
	movq	16(%r13), %rsi
	callq	_eap_sim_db_remove_reauth
	movq	$0, 16(%r13)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: Processing Reauthentication"

	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ## @EAP_SIM_NONCE_S_LEN
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: Re-authentication message did not include valid AT_MAC"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-AKA: Reauthentication message did not include encrypted data"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-AKA: Failed to parse encrypted data from reauthentication message"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-AKA: Re-authentication message used incorrect counter %u, expected %u"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-AKA: Re-authentication response includes the correct AT_MAC"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-AKA: Re-authentication response included AT_COUNTER_TOO_SMALL - starting full authentication"

	.comm	_EAP_SIM_SUCCESS,4,2            ## @EAP_SIM_SUCCESS
	.comm	_NOTIFICATION,4,2               ## @NOTIFICATION
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ## @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.no_dead_strip	_eap_aka_process_reauth
.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_reauth
_eap_aka_process_reauth:                ; @eap_aka_process_reauth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x2, [x21, #48]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w3, [x19, #64]
Lloh4:
	adrp	x8, _EAP_SIM_NONCE_S_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_SIM_NONCE_S_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_eap_aka_verify_mac
	cbz	x0, LBB0_6
LBB0_2:
Lloh7:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_wpa_printf
	mov	x22, #0
LBB0_4:
Lloh12:
	adrp	x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh15:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_aka_state
	ldr	w0, [x20]
	ldr	x1, [x19, #16]
	bl	_eap_sim_db_remove_reauth
	str	xzr, [x19, #16]
	mov	x0, x22
	bl	_os_free
LBB0_5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	ldr	x1, [x21, #40]
	cbz	x1, LBB0_12
; %bb.7:
	ldr	x3, [x21, #24]
	cbz	x3, LBB0_12
; %bb.8:
	ldr	w0, [x19, #60]
	ldr	w2, [x21, #32]
	add	x4, sp, #24
	mov	w5, #0
	bl	_eap_sim_parse_encr
	mov	x22, x0
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w8, [sp, #40]
	ldr	w9, [x19, #44]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x22
	bl	_os_free
	ldr	w0, [x23]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_16
; %bb.11:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x19
	bl	_eap_aka_fullauth
	b	LBB0_5
LBB0_12:
Lloh22:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_13:
Lloh27:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh32:
	adrp	x10, _MSG_WARNING@GOTPAGE
Lloh33:
	ldr	x10, [x10, _MSG_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	bl	_wpa_printf
	b	LBB0_4
LBB0_16:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x21]
	cbz	x8, LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x19]
Lloh37:
	adrp	x8, _EAP_SIM_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EAP_SIM_SUCCESS@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh40:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh42:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_aka_state
	ldr	x2, [x19, #32]
	cbz	x2, LBB0_24
; %bb.21:
	ldr	x8, [x19, #8]
Lloh44:
	adrp	x9, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh45:
	ldr	x9, [x9, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:
	ldr	w0, [x20]
	ldp	w8, w1, [x19, #44]
	ldr	w4, [x19, #40]
	add	w3, w8, #1
	bl	_eap_sim_db_add_reauth
LBB0_23:
	str	xzr, [x19, #32]
	b	LBB0_5
LBB0_24:
	ldr	w0, [x20]
	ldr	x1, [x19, #16]
	bl	_eap_sim_db_remove_reauth
	str	xzr, [x19, #16]
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Processing Reauthentication"

	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ; @EAP_SIM_NONCE_S_LEN
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: Re-authentication message did not include valid AT_MAC"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-AKA: Reauthentication message did not include encrypted data"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-AKA: Failed to parse encrypted data from reauthentication message"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-AKA: Re-authentication message used incorrect counter %u, expected %u"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-AKA: Re-authentication response includes the correct AT_MAC"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-AKA: Re-authentication response included AT_COUNTER_TOO_SMALL - starting full authentication"

	.comm	_EAP_SIM_SUCCESS,4,2            ; @EAP_SIM_SUCCESS
	.comm	_NOTIFICATION,4,2               ; @NOTIFICATION
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ; @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.no_dead_strip	_eap_aka_process_reauth
.subsections_via_symbols
