	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sm_Policy_getNextMethod
_eap_sm_Policy_getNextMethod:           ## @eap_sm_Policy_getNextMethod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	cmpl	$-1, 4(%rdi)
	je	LBB0_2
## %bb.3:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movslq	(%rdi), %rcx
	movq	_EAP_MAX_METHODS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_5
## %bb.7:
	movq	(%rax), %rdx
	shlq	$4, %rcx
	movl	(%rdx,%rcx), %eax
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r8
	movq	8(%rdx,%rcx), %rbx
	cmpl	(%r8), %eax
	jne	LBB0_9
## %bb.8:
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_6
LBB0_9:
	movl	%eax, (%rsi)
	incl	(%rdi)
	jmp	LBB0_10
LBB0_2:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	_EAP_TYPE_IDENTITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	jmp	LBB0_10
LBB0_5:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
LBB0_6:
	movl	%eax, (%rsi)
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	callq	_wpa_printf
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IDENTITY,8,3          ## @EAP_TYPE_IDENTITY
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EAP_MAX_METHODS,4,2            ## @EAP_MAX_METHODS
	.comm	_EAP_TYPE_NONE,8,3              ## @EAP_TYPE_NONE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP: getNextMethod: vendor %d type %d"

	.no_dead_strip	_eap_sm_Policy_getNextMethod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sm_Policy_getNextMethod
_eap_sm_Policy_getNextMethod:           ; @eap_sm_Policy_getNextMethod
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x0, #4]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.2:
	ldrsw	x8, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _EAP_MAX_METHODS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EAP_MAX_METHODS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w8, w10, #0, ne
	b.lt	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EAP_TYPE_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x9]
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _EAP_TYPE_IDENTITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAP_TYPE_IDENTITY@GOTPAGEOFF]
	str	w8, [x1]
Lloh14:
	ldr	x19, [x9]
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	b	LBB0_8
LBB0_5:
	ldr	x9, [x9]
	add	x9, x9, x8, lsl #4
	ldr	w8, [x9]
Lloh18:
	adrp	x10, _EAP_VENDOR_IETF@GOTPAGE
Lloh19:
	ldr	x10, [x10, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	ldr	x19, [x9, #8]
Lloh21:
	adrp	x9, _EAP_TYPE_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	w8, w10
	ccmp	x19, x9, #0, eq
	b.eq	LBB0_7
; %bb.6:
	str	w8, [x1]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	b	LBB0_8
LBB0_7:
	str	w8, [x1]
LBB0_8:
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w2, [x1]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_wpa_printf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IDENTITY,8,3          ; @EAP_TYPE_IDENTITY
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EAP_MAX_METHODS,4,2            ; @EAP_MAX_METHODS
	.comm	_EAP_TYPE_NONE,8,3              ; @EAP_TYPE_NONE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP: getNextMethod: vendor %d type %d"

	.no_dead_strip	_eap_sm_Policy_getNextMethod
.subsections_via_symbols
