	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_session_id
_eap_teap_session_id:                   ## @eap_teap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_os_free
	movl	$100, %edi
	callq	_os_malloc
	movq	%rax, 8(%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_EAP_TYPE_TEAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	16(%rbx), %edi
	addl	$4, %eax
	movl	$99, %edx
	movl	%eax, %esi
	callq	_tls_get_tls_unique
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	incl	%eax
	movl	%eax, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_wpa_hexdump
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_os_free
	movq	$0, 8(%rbx)
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TEAP,4,2              ## @EAP_TYPE_TEAP
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Failed to derive Session-Id"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Derived Session-Id"

	.no_dead_strip	_eap_teap_session_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_session_id
_eap_teap_session_id:                   ; @eap_teap_session_id
	.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
	ldr	x0, [x0, #8]
	bl	_os_free
	mov	w0, #100
	bl	_os_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EAP_TYPE_TEAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_TYPE_TEAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w8, [x19, #16]
	add	w1, w0, #4
	mov	x0, x8
	mov	w2, #99
	bl	_tls_get_tls_unique
	tbnz	w0, #31, LBB0_3
; %bb.2:
	add	w3, w0, #1
	str	w3, [x19]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_os_free
	str	xzr, [x19, #8]
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TEAP,4,2              ; @EAP_TYPE_TEAP
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Failed to derive Session-Id"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Derived Session-Id"

	.no_dead_strip	_eap_teap_session_id
.subsections_via_symbols
