	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_process_start
_eap_sim_process_start:                 ## @eap_sim_process_start
	.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	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.4:
	movq	(%r13), %rdi
	callq	_os_free
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	callq	_os_memdup
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, 8(%r13)
	incl	%eax
	cmpl	$3, %eax
	jb	LBB0_11
## %bb.7:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,8), %r15d
	shll	$8, %r15d
	addl	4(%rbx,%r14,8), %r15d
	movl	%r15d, %edi
	callq	_eap_sim_supported_ver
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movl	8(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r14
	jb	LBB0_8
	jmp	LBB0_11
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_UNSUPPORTED_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	jmp	LBB0_3
LBB0_10:
	testl	%r15d, %r15d
	js	LBB0_11
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	%r15d, 12(%r13)
	movl	4(%r12), %ecx
	cmpl	$128, %ecx
	je	LBB0_16
## %bb.13:
	cmpl	$130, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_18
## %bb.14:
	cmpl	$131, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_19
## %bb.15:
	movl	16(%r13), %eax
	leal	1(%rax), %edx
	movl	%edx, 16(%r13)
	testl	%eax, %eax
	jle	LBB0_19
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	jmp	LBB0_3
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_UNSUPPORTED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_client_error           ## TAILCALL
LBB0_16:
	movl	16(%r13), %eax
	leal	1(%rax), %edx
	movl	%edx, 16(%r13)
	cmpl	$3, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_17
	jmp	LBB0_19
LBB0_18:
	movl	16(%r13), %eax
	leal	1(%rax), %edx
	movl	%edx, 16(%r13)
	cmpl	$1, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jg	LBB0_17
LBB0_19:
	movq	%r13, %rsi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_response_start         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: subtype Start"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM: No AT_VERSION_LIST in SIM/Start"

	.comm	_EAP_SIM_UNSUPPORTED_VERSION,4,2 ## @EAP_SIM_UNSUPPORTED_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"EAP-SIM: Failed to allocate memory for version list"

	.comm	_EAP_SIM_UNABLE_TO_PROCESS_PACKET,4,2 ## @EAP_SIM_UNABLE_TO_PROCESS_PACKET
L_.str.3:                               ## @.str.3
	.asciz	"EAP-SIM: Could not find a supported version"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-SIM: Selected Version %d"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-SIM: Too many ID requests used within one authentication"

	.no_dead_strip	_eap_sim_process_start
.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_start
_eap_sim_process_start:                 ; @eap_sim_process_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, 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
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x0, [x20]
	bl	_os_free
	ldr	x0, [x22, #8]
	ldr	w1, [x22]
	bl	_os_memdup
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x22]
	str	w8, [x20, #8]
	add	w8, w8, #1
	cmp	w8, #3
	b.lo	LBB0_15
; %bb.3:
	mov	x23, x0
	mov	x26, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x23]
	add	w24, w9, w8, lsl #8
	mov	x0, x24
	bl	_eap_sim_supported_ver
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x23, x23, #8
	cmp	x26, w8, sxtw
	b.lo	LBB0_4
	b	LBB0_15
LBB0_6:
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_7:
	ldr	w0, [x25]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
Lloh11:
	adrp	x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_SIM_UNABLE_TO_PROCESS_PACKET@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	tbnz	w24, #31, LBB0_15
; %bb.10:
	ldr	w0, [x25]
	str	x24, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	str	w24, [x20, #12]
	ldr	w3, [x22, #4]
	cmp	w3, #128
	b.eq	LBB0_18
; %bb.11:
	cmp	w3, #130
	b.eq	LBB0_19
; %bb.12:
	cmp	w3, #131
	b.ne	LBB0_20
; %bb.13:
	ldr	w8, [x20, #16]
	add	w9, w8, #1
	str	w9, [x20, #16]
	cmp	w8, #0
	b.le	LBB0_20
LBB0_14:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_15:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_wpa_printf
Lloh25:
	adrp	x8, _EAP_SIM_UNSUPPORTED_VERSION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EAP_SIM_UNSUPPORTED_VERSION@GOTPAGEOFF]
LBB0_17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, 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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_eap_sim_client_error
LBB0_18:
	ldr	w8, [x20, #16]
	add	w9, w8, #1
	str	w9, [x20, #16]
	cmp	w8, #3
	b.ge	LBB0_14
	b	LBB0_20
LBB0_19:
	ldr	w8, [x20, #16]
	add	w9, w8, #1
	str	w9, [x20, #16]
	cmp	w8, #1
	b.gt	LBB0_14
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_eap_sim_response_start
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: subtype Start"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM: No AT_VERSION_LIST in SIM/Start"

	.comm	_EAP_SIM_UNSUPPORTED_VERSION,4,2 ; @EAP_SIM_UNSUPPORTED_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"EAP-SIM: Failed to allocate memory for version list"

	.comm	_EAP_SIM_UNABLE_TO_PROCESS_PACKET,4,2 ; @EAP_SIM_UNABLE_TO_PROCESS_PACKET
l_.str.3:                               ; @.str.3
	.asciz	"EAP-SIM: Could not find a supported version"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-SIM: Selected Version %d"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-SIM: Too many ID requests used within one authentication"

	.no_dead_strip	_eap_sim_process_start
.subsections_via_symbols
