	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_fast_select_phase2_method
_eap_fast_select_phase2_method:         ## @eap_fast_select_phase2_method
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	24(%r14), %rcx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$8, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rcx
	decq	%rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rcx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	%rdx, 8(%r14)
	movq	%rbx, 16(%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	cmpq	%rbx, 16(%r14)
	setne	%al
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	negl	%eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_MSCHAPV2,8,3          ## @EAP_TYPE_MSCHAPV2
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-FAST: Only EAP-MSCHAPv2 is allowed during unauthenticated provisioning; reject phase2 type %d"

	.comm	_EAP_VENDOR_IETF,8,3            ## @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-FAST: Selected Phase 2 EAP vendor %d method %d"

	.comm	_EAP_TYPE_NONE,8,3              ## @EAP_TYPE_NONE
	.comm	_EAP_TYPE_TNC,8,3               ## @EAP_TYPE_TNC
	.no_dead_strip	_eap_fast_select_phase2_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_fast_select_phase2_method
_eap_fast_select_phase2_method:         ; @eap_fast_select_phase2_method
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x9, [x20, #24]
Lloh3:
	adrp	x10, _EAP_VENDOR_IETF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x10]
	add	x9, x9, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x2
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9]
	cmp	x10, x19
	b.ne	LBB0_3
; %bb.6:
	stp	x2, x19, [x20, #8]
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	ldr	x8, [x20, #16]
	cmp	x8, x19
Lloh11:
	adrp	x8, _EAP_TYPE_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ccmp	x8, x19, #4, eq
	cset	w8, eq
	sbfx	w0, w8, #0, #1
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_MSCHAPV2,8,3          ; @EAP_TYPE_MSCHAPV2
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-FAST: Only EAP-MSCHAPv2 is allowed during unauthenticated provisioning; reject phase2 type %d"

	.comm	_EAP_VENDOR_IETF,8,3            ; @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-FAST: Selected Phase 2 EAP vendor %d method %d"

	.comm	_EAP_TYPE_NONE,8,3              ; @EAP_TYPE_NONE
	.comm	_EAP_TYPE_TNC,8,3               ; @EAP_TYPE_TNC
	.no_dead_strip	_eap_fast_select_phase2_method
.subsections_via_symbols
