	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_process
_eap_sim_process:                       ## @eap_sim_process
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_SIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	-64(%rbp), %r15
	cmpq	$3, %r15
	jb	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eap_sim_unexpected_subtype
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	movl	$130, %esi
LBB0_5:
	callq	_eap_sim_state
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	(%rbx,%r15,8), %rsi
	addq	$24, %rbx
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_parse_attr
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_12
LBB0_9:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_10:
	movq	_EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_14
## %bb.11:
	leaq	-48(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_sim_process_client_error
	jmp	LBB0_6
LBB0_12:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.13:
	cmpl	$2, %eax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_14:
	movl	(%r14), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	ja	LBB0_17
## %bb.15:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_sim_process_start
	jmp	LBB0_6
LBB0_17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_18:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_sim_process_reauth
	jmp	LBB0_6
LBB0_19:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_sim_process_notification
	jmp	LBB0_6
LBB0_20:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_sim_process_challenge
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_SIM,4,2               ## @EAP_TYPE_SIM
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: Unrecognized or unexpected EAP-SIM Subtype in EAP Response"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,8,3 ## @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM: Failed to parse attributes"

	.comm	_EAP_SIM_SUBTYPE_CLIENT_ERROR,8,3 ## @EAP_SIM_SUBTYPE_CLIENT_ERROR
	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-SIM: Unknown state %d in process"

	.no_dead_strip	_eap_sim_process
.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
_eap_sim_process:                       ; @eap_sim_process
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_SIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_SIM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	bl	_eap_hdr_validate
	ldr	x24, [sp, #24]
	cmp	x0, #0
	ccmp	x24, #3, #0, ne
	b.lo	LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x22, [x0]
	mov	x0, x19
	mov	x1, x22
	bl	_eap_sim_unexpected_subtype
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_3:
Lloh11:
	adrp	x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #130
LBB0_4:
	bl	_eap_sim_state
LBB0_5:
	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
LBB0_6:
	add	x0, x23, #24
	add	x1, x23, x24, lsl #3
	add	x2, sp, #16
	mov	w3, #0
	mov	w4, #0
	bl	_eap_sim_parse_attr
	cbz	x0, LBB0_9
; %bb.7:
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
Lloh19:
	adrp	x8, _EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_11
LBB0_8:
Lloh22:
	adrp	x8, _FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_4
LBB0_9:
Lloh25:
	adrp	x8, _EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EAP_SIM_SUBTYPE_CLIENT_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_13
; %bb.10:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_sim_process_client_error
	b	LBB0_5
LBB0_11:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.12:
	cmp	w8, #2
	b.ne	LBB0_3
	b	LBB0_8
LBB0_13:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_16
; %bb.14:
Lloh28:
	adrp	x8, lJTI0_0@PAGE
Lloh29:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_sim_process_start
	b	LBB0_5
LBB0_16:
Lloh30:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_5
LBB0_17:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_sim_process_reauth
	b	LBB0_5
LBB0_18:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_sim_process_notification
	b	LBB0_5
LBB0_19:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_sim_process_challenge
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_SIM,4,2               ; @EAP_TYPE_SIM
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: Unrecognized or unexpected EAP-SIM Subtype in EAP Response"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,8,3 ; @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM: Failed to parse attributes"

	.comm	_EAP_SIM_SUBTYPE_CLIENT_ERROR,8,3 ; @EAP_SIM_SUBTYPE_CLIENT_ERROR
	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-SIM: Unknown state %d in process"

	.no_dead_strip	_eap_sim_process
.subsections_via_symbols
