	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r15
	movq	%rdi, %r14
	movl	64(%rbx), %edi
	movq	56(%rbx), %rcx
	movq	_EAP_SIM_SRES_LEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	imull	(%rbx), %r8d
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_eap_sim_verify_mac
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_state                  ## TAILCALL
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%rbx)
	movq	_EAP_SIM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_sim_state
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movl	32(%rbx), %esi
	callq	_eap_sim_db_add_pseudonym
	movq	$0, 40(%rbx)
LBB0_7:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	movl	32(%rbx), %esi
	movq	24(%rbx), %rcx
	incq	%rcx
	movl	16(%rbx), %r8d
	callq	_eap_sim_db_add_reauth
	movq	$0, 8(%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SIM_SRES_LEN,4,2           ## @EAP_SIM_SRES_LEN
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: Challenge message did not include valid AT_MAC"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ## @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ## @NOTIFICATION
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM: Challenge response includes the correct AT_MAC"

	.comm	_EAP_SIM_SUCCESS,4,2            ## @EAP_SIM_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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x21, x3
	mov	x20, x0
	ldr	w0, [x19, #64]
	ldr	x3, [x19, #56]
	ldr	w9, [x19]
Lloh0:
	adrp	x10, _EAP_SIM_SRES_LEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EAP_SIM_SRES_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w4, w10, w9
	mov	x1, x2
	mov	x2, x8
	bl	_eap_sim_verify_mac
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh8:
	adrp	x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh11:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_eap_sim_state
LBB0_3:
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh19:
	adrp	x8, _EAP_SIM_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_SIM_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh22:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_sim_state
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	bl	_eap_sim_db_add_pseudonym
	str	xzr, [x19, #40]
LBB0_9:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	ldr	x8, [x19, #24]
	add	x3, x8, #1
	ldr	w4, [x19, #16]
	bl	_eap_sim_db_add_reauth
	str	xzr, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SIM_SRES_LEN,4,2           ; @EAP_SIM_SRES_LEN
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: Challenge message did not include valid AT_MAC"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ; @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ; @NOTIFICATION
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM: Challenge response includes the correct AT_MAC"

	.comm	_EAP_SIM_SUCCESS,4,2            ; @EAP_SIM_SUCCESS
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_eap_sim_process_challenge
.subsections_via_symbols
