	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_learn_identity
_ieee802_1x_learn_identity:             ## @ieee802_1x_learn_identity
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$9, %rcx
	jb	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rax
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_4
## %bb.2:
	movq	64(%rdx), %rsi
	movq	_EAP_TYPE_IDENTITY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_10
## %bb.3:
	movq	_EAP_CODE_INITIATE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	je	LBB0_5
	jmp	LBB0_6
LBB0_4:
	movq	_EAP_CODE_INITIATE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_10
LBB0_5:
	movq	64(%rdx), %rax
	movq	_EAP_ERP_TYPE_REAUTH@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_10
LBB0_6:
	movl	24(%rbx), %edi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_eap_erp_update_identity
	movl	24(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_eap_get_identity
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_os_free
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dup_binstr
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	-32(%rbp), %rcx
	movq	%rcx, 8(%rbx)
	movl	20(%rbx), %esi
	movq	_HOSTAPD_MODULE_IEEE8021X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %r8
	movq	%r14, %rdi
	movq	%rax, %r9
	callq	_hostapd_logger
	incl	16(%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	$0, 8(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_CODE_RESPONSE,8,3          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_IDENTITY,8,3          ## @EAP_TYPE_IDENTITY
	.comm	_EAP_CODE_INITIATE,8,3          ## @EAP_CODE_INITIATE
	.comm	_EAP_ERP_TYPE_REAUTH,8,3        ## @EAP_ERP_TYPE_REAUTH
	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ## @HOSTAPD_MODULE_IEEE8021X
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ## @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA identity '%s'"

	.no_dead_strip	_ieee802_1x_learn_identity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_learn_identity
_ieee802_1x_learn_identity:             ; @ieee802_1x_learn_identity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	x3, #9
	b.lo	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _EAP_CODE_RESPONSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x2, #64]
Lloh3:
	adrp	x10, _EAP_TYPE_IDENTITY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EAP_TYPE_IDENTITY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.3:
Lloh6:
	adrp	x9, _EAP_CODE_INITIATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EAP_CODE_INITIATE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x9, _EAP_CODE_INITIATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAP_CODE_INITIATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x2, #64]
Lloh12:
	adrp	x9, _EAP_ERP_TYPE_REAUTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAP_ERP_TYPE_REAUTH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:
	ldr	w0, [x19, #24]
	mov	x1, x2
	mov	x2, x3
	bl	_eap_erp_update_identity
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	bl	_eap_get_identity
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_os_free
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_dup_binstr
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x5, x0
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	ldr	w1, [x19, #20]
Lloh15:
	adrp	x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x4, l_.str@PAGE
Lloh22:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hostapd_logger
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_9:
	str	xzr, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_CODE_RESPONSE,8,3          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_IDENTITY,8,3          ; @EAP_TYPE_IDENTITY
	.comm	_EAP_CODE_INITIATE,8,3          ; @EAP_CODE_INITIATE
	.comm	_EAP_ERP_TYPE_REAUTH,8,3        ; @EAP_ERP_TYPE_REAUTH
	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ; @HOSTAPD_MODULE_IEEE8021X
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ; @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA identity '%s'"

	.no_dead_strip	_ieee802_1x_learn_identity
.subsections_via_symbols
