	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_select_phase2_method
_eap_teap_select_phase2_method:         ## @eap_teap_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_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_eap_teap_allowed_anon_prov_phase2_method
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	24(%r14), %rcx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$8, %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rcx
	decq	%rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rcx)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, (%rcx)
	jne	LBB0_8
## %bb.7:
	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_9:
	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
	jmp	LBB0_10
LBB0_2:
	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
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: EAP type %u not allowed during unauthenticated provisioning"

	.comm	_EAP_VENDOR_IETF,8,3            ## @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: 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_teap_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_teap_select_phase2_method
_eap_teap_select_phase2_method:         ; @eap_teap_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
	mov	x20, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_eap_teap_allowed_anon_prov_phase2_method
	cbz	w0, LBB0_9
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x9, [x20, #24]
Lloh0:
	adrp	x10, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x10]
	add	x9, x9, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x2
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x9]
	cmp	x10, x19
	b.ne	LBB0_4
; %bb.7:
	stp	x2, x19, [x20, #8]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	ldr	x8, [x20, #16]
	cmp	x8, x19
Lloh8:
	adrp	x8, _EAP_TYPE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ccmp	x8, x19, #4, eq
	cset	w8, eq
	sbfx	w0, w8, #0, #1
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	w0, #-1
LBB0_10:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: EAP type %u not allowed during unauthenticated provisioning"

	.comm	_EAP_VENDOR_IETF,8,3            ; @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: 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_teap_select_phase2_method
.subsections_via_symbols
