	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_tls_derive_session_id ## -- Begin function eap_peer_tls_derive_session_id
	.p2align	4, 0x90
_eap_peer_tls_derive_session_id:        ## @eap_peer_tls_derive_session_id
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_TYPE_TLS@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movq	%r14, -72(%rbp)
	movq	$65, (%r15)
	movl	$65, %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	movl	$64, %r9d
	callq	_eap_peer_tls_derive_key
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, (%r12)
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rax, %rsi
	movl	$64, %edx
	callq	_os_memcpy
	jmp	LBB0_13
LBB0_5:
	movl	(%r13), %edi
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdx
	callq	_tls_connection_get_random
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	cmpq	$0, -72(%rbp)
	je	LBB0_14
## %bb.7:
	cmpq	$0, -64(%rbp)
	je	LBB0_14
## %bb.8:
	movslq	-56(%rbp), %rax
	movslq	-52(%rbp), %rcx
	leaq	(%rax,%rcx), %rdi
	incq	%rdi
	movq	%rdi, (%r15)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r12
	movq	%r14, (%rax)
	leaq	8(%rax), %rdi
	movq	-72(%rbp), %rsi
	movl	-56(%rbp), %edx
	callq	_os_memcpy
	movslq	-56(%rbp), %rax
	leaq	(%r12,%rax,8), %rdi
	addq	$8, %rdi
	movq	-64(%rbp), %rsi
	movl	-52(%rbp), %edx
	callq	_os_memcpy
	jmp	LBB0_14
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rbx
	xorl	%r12d, %r12d
LBB0_13:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TLS,8,3               ## @EAP_TYPE_TLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EXPORTER_EAP_TLS_Method-Id"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_tls_derive_session_id ; -- Begin function eap_peer_tls_derive_session_id
	.p2align	2
_eap_peer_tls_derive_session_id:        ; @eap_peer_tls_derive_session_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _EAP_TYPE_TLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_TLS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	str	x20, [sp]
	mov	w8, #65
	str	x8, [x19]
	mov	w0, #65
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.3:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, sp
	mov	x0, x22
	mov	x1, x21
	mov	w4, #1
	mov	w5, #64
	bl	_eap_peer_tls_derive_key
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	str	x20, [x0], #8
	mov	x1, x21
	mov	w2, #64
	bl	_os_memcpy
	b	LBB0_10
LBB0_5:
	ldr	w0, [x22]
	ldr	w1, [x21]
	mov	x2, sp
	bl	_tls_connection_get_random
	ldp	x8, x9, [sp]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:
	mov	x19, #0
	b	LBB0_11
LBB0_7:
	ldpsw	x8, x9, [sp, #16]
	add	x8, x8, x9
	add	x0, x8, #1
	str	x0, [x19]
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x19
	str	x20, [x21], #8
	ldr	x1, [sp]
	ldr	w2, [sp, #16]
	mov	x0, x21
	bl	_os_memcpy
	ldp	w8, w2, [sp, #16]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x0, x21, x8, lsl #3
	ldr	x1, [sp, #8]
	bl	_os_memcpy
	b	LBB0_11
LBB0_9:
	mov	x21, x19
	mov	x19, #0
LBB0_10:
	mov	x0, x21
	bl	_os_free
LBB0_11:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TLS,8,3               ; @EAP_TYPE_TLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EXPORTER_EAP_TLS_Method-Id"

.subsections_via_symbols
