	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ikev2_get_session_id
_eap_ikev2_get_session_id:              ## @eap_ikev2_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 24(%rsi)
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	movslq	8(%rbx), %rax
	movslq	12(%rbx), %rcx
	leaq	(%rax,%rcx), %r15
	incq	%r15
	movq	%r15, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	movq	_EAP_TYPE_IKEV2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	leaq	4(%r12), %rdi
	movl	8(%rbx), %edx
	movl	20(%rbx), %esi
	callq	_os_memcpy
	movslq	8(%rbx), %rax
	leaq	(%r12,%rax,4), %rdi
	addq	$4, %rdi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_os_memcpy
	movq	%r15, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	jmp	LBB0_7
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DONE,8,3                       ## @DONE
	.comm	_EAP_TYPE_IKEV2,4,2             ## @EAP_TYPE_IKEV2
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-IKEV2: Derived Session-Id"

	.no_dead_strip	_eap_ikev2_get_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_ikev2_get_session_id
_eap_ikev2_get_session_id:              ; @eap_ikev2_get_session_id
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x1
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x2
	ldpsw	x8, x9, [x22, #8]
	add	x8, x8, x9
	add	x21, x8, #1
	mov	x0, x21
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _EAP_TYPE_IKEV2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_IKEV2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x19
	str	w8, [x0], #4
	ldr	w1, [x22, #20]
	ldr	w2, [x22, #8]
	bl	_os_memcpy
	ldp	w8, w2, [x22, #8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x8, x19, x8, lsl #2
	add	x0, x8, #4
	ldr	w1, [x22, #16]
	bl	_os_memcpy
	str	x21, [x20]
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_wpa_hexdump
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DONE,8,3                       ; @DONE
	.comm	_EAP_TYPE_IKEV2,4,2             ; @EAP_TYPE_IKEV2
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: Derived Session-Id"

	.no_dead_strip	_eap_ikev2_get_session_id
.subsections_via_symbols
