	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_process_phase2_start
_eap_teap_process_phase2_start:         ## @eap_teap_process_phase2_start
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 16(%rsi)
	je	LBB0_10
## %bb.1:
	movq	32(%rbx), %rdi
	callq	_os_free
	movq	16(%r14), %rsi
	movq	%rsi, 32(%rbx)
	movq	$0, 16(%r14)
	movq	8(%r14), %rdx
	movq	%rdx, 24(%rbx)
	movq	$0, 8(%r14)
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_eap_user_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	_PHASE2_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_teap_state
	jmp	LBB0_14
LBB0_10:
	cmpl	$1, (%rbx)
	jne	LBB0_13
## %bb.11:
	movq	_PHASE2_BASIC_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_teap_state
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_eap_teap_derive_cmk_basic_pw_auth
	movq	_CRYPTO_BINDING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_13:
	movq	_PHASE2_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_teap_state
	movq	_EAP_TYPE_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_teap_phase2_init           ## TAILCALL
LBB0_6:
	cmpl	$1, (%rbx)
	jne	LBB0_9
## %bb.7:
	movq	_PHASE2_BASIC_AUTH@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_teap_state
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
	movl	$1, 4(%rbx)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Phase 2 Identity not found in the user database"

	.comm	_EAP_TYPE_NONE,4,2              ## @EAP_TYPE_NONE
	.comm	_PHASE2_METHOD,4,2              ## @PHASE2_METHOD
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Used PAC and identity already known - skip inner auth"

	.comm	_CRYPTO_BINDING,4,2             ## @CRYPTO_BINDING
	.comm	_PHASE2_BASIC_AUTH,4,2          ## @PHASE2_BASIC_AUTH
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Identity already known - skip Phase 2 Identity Request"

	.comm	_PHASE2_ID,4,2                  ## @PHASE2_ID
	.comm	_EAP_TYPE_IDENTITY,4,2          ## @EAP_TYPE_IDENTITY
	.no_dead_strip	_eap_teap_process_phase2_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_process_phase2_start
_eap_teap_process_phase2_start:         ; @eap_teap_process_phase2_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x20, #32]
	bl	_os_free
	ldp	x2, x1, [x19, #8]
	stp	x2, x1, [x20, #24]
	stp	xzr, xzr, [x19, #8]
	mov	x0, x20
	mov	w3, #1
	bl	_eap_user_get
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x3, x2, [x20, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_ascii
Lloh5:
	adrp	x8, _EAP_TYPE_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_3:
Lloh8:
	adrp	x8, _PHASE2_METHOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHASE2_METHOD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	b	LBB0_9
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _PHASE2_BASIC_AUTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHASE2_BASIC_AUTH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldp	w1, w0, [x19]
	bl	_eap_teap_derive_cmk_basic_pw_auth
Lloh19:
	adrp	x8, _CRYPTO_BINDING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CRYPTO_BINDING@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh21:
	adrp	x8, _PHASE2_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PHASE2_ID@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
Lloh24:
	adrp	x8, _EAP_TYPE_IDENTITY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAP_TYPE_IDENTITY@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_eap_teap_phase2_init
LBB0_10:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.11:
Lloh27:
	adrp	x8, _PHASE2_BASIC_AUTH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PHASE2_BASIC_AUTH@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh29:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w21, [x8]
	mov	w8, #1
	str	w8, [x20, #4]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Phase 2 Identity not found in the user database"

	.comm	_EAP_TYPE_NONE,4,2              ; @EAP_TYPE_NONE
	.comm	_PHASE2_METHOD,4,2              ; @PHASE2_METHOD
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Used PAC and identity already known - skip inner auth"

	.comm	_CRYPTO_BINDING,4,2             ; @CRYPTO_BINDING
	.comm	_PHASE2_BASIC_AUTH,4,2          ; @PHASE2_BASIC_AUTH
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Identity already known - skip Phase 2 Identity Request"

	.comm	_PHASE2_ID,4,2                  ; @PHASE2_ID
	.comm	_EAP_TYPE_IDENTITY,4,2          ; @EAP_TYPE_IDENTITY
	.no_dead_strip	_eap_teap_process_phase2_start
.subsections_via_symbols
