	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_get_phase2_types           ## -- Begin function eap_get_phase2_types
	.p2align	4, 0x90
_eap_get_phase2_types:                  ## @eap_get_phase2_types
	.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	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_eap_peer_get_methods
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	$0, (%r15)
	movq	-56(%rbp), %rdi
	shlq	$4, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	shlq	$4, %rax
	movl	%r13d, (%r12,%rax)
	movq	%r14, 8(%r12,%rax)
	incq	(%r15)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r13d
	movq	8(%rbx), %r14
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_eap_allowed_phase2_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_EAP_TYPE_TLS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLS,8,3               ## @EAP_TYPE_TLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_get_phase2_types           ; -- Begin function eap_get_phase2_types
	.p2align	2
_eap_get_phase2_types:                  ; @eap_get_phase2_types
	.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	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_eap_peer_get_methods
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	str	xzr, [x19]
	ldr	x8, [sp, #8]
	lsl	x0, x8, #4
	bl	_os_malloc
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x25, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	adrp	x26, _EAP_TYPE_TLS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EAP_TYPE_TLS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	add	x8, x22, x8, lsl #4
	str	w23, [x8]
	str	x24, [x8, #8]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21]
	ldr	x24, [x21, #8]
	mov	x0, x23
	mov	x1, x24
	bl	_eap_allowed_phase2_type
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cmp	w23, w8
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x20, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cmp	x24, x8
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
	b	LBB0_4
LBB0_10:
	mov	x22, #0
LBB0_11:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLS,8,3               ; @EAP_TYPE_TLS
.subsections_via_symbols
