	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_method_register       ## -- Begin function eap_peer_method_register
	.p2align	4, 0x90
_eap_peer_method_register:              ## @eap_peer_method_register
	.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	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movq	_EAP_PEER_METHOD_INTERFACE_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_eap_methods@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	8(%rax), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rax
	cmpq	16(%r14), %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	32(%rbx), %rdi
	movq	32(%r14), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:
	movq	%r14, 24(%rbx)
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	callq	_eap_peer_method_free
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, (%rcx)
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	callq	_eap_peer_method_free
	movl	$-2, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_PEER_METHOD_INTERFACE_VERSION,8,3 ## @EAP_PEER_METHOD_INTERFACE_VERSION
	.comm	_eap_methods,8,3                ## @eap_methods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_method_register       ; -- Begin function eap_peer_method_register
	.p2align	2
_eap_peer_method_register:              ; @eap_peer_method_register
	.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
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EAP_PEER_METHOD_INTERFACE_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAP_PEER_METHOD_INTERFACE_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
Lloh3:
	adrp	x9, _eap_methods@GOTPAGE
Lloh4:
	ldr	x9, [x9, _eap_methods@GOTPAGEOFF]
	ldr	x8, [x9]
	cbz	x8, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #32]
	ldr	x1, [x19, #32]
	bl	_os_strcmp
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_4
; %bb.8:
	mov	w0, #0
	str	x19, [x20, #24]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_eap_peer_method_free
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #0
	str	x19, [x9]
	b	LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_eap_peer_method_free
	mov	w0, #-2
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_PEER_METHOD_INTERFACE_VERSION,8,3 ; @EAP_PEER_METHOD_INTERFACE_VERSION
	.comm	_eap_methods,8,3                ; @eap_methods
.subsections_via_symbols
