	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_phase1_done
_eap_teap_phase1_done:                  ## @eap_teap_phase1_done
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	4(%r15), %edi
	callq	_tls_connection_get_cipher_suite
	movl	%eax, 8(%r15)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %edi
	movl	4(%r15), %esi
	leaq	-96(%rbp), %rdx
	movl	$64, %ecx
	callq	_tls_get_cipher
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %rdi
	callq	_os_strstr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r15)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_eap_teap_derive_key_auth
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_5
## %bb.6:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_PHASE2_START@GOTPCREL(%rip), %rax
LBB0_7:
	sarq	$63, %rbx
LBB0_8:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_teap_state
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Phase 1 done, starting Phase 2"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: TLS cipher suite 0x%04x"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Failed to get cipher information"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"ADH"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: Anonymous provisioning"

	.comm	_PHASE2_START,4,2               ## @PHASE2_START
	.no_dead_strip	_eap_teap_phase1_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_phase1_done
_eap_teap_phase1_done:                  ; @eap_teap_phase1_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #4]
	bl	_tls_connection_get_cipher_suite
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #8]
	ldr	w8, [x21]
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	add	x2, sp, #8
	mov	w3, #64
	bl	_tls_get_cipher
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_os_strstr
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_eap_teap_derive_key_auth
Lloh13:
	adrp	x8, _PHASE2_START@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHASE2_START@GOTPAGEOFF]
Lloh15:
	adrp	x9, _FAILURE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, lt
	asr	x20, x0, #63
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w20, #-1
Lloh19:
	adrp	x8, _FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Phase 1 done, starting Phase 2"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: TLS cipher suite 0x%04x"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Failed to get cipher information"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"ADH"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: Anonymous provisioning"

	.comm	_PHASE2_START,4,2               ; @PHASE2_START
	.no_dead_strip	_eap_teap_phase1_done
.subsections_via_symbols
