	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_get_session_id
_eap_aka_get_session_id:                ## @eap_aka_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	cmpl	$0, 24(%rsi)
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %r12
	movq	_EAP_AKA_RAND_LEN@GOTPCREL(%rip), %rax
	cmovneq	%r12, %rax
	movl	(%rax), %eax
	movq	_EAP_SIM_MAC_LEN@GOTPCREL(%rip), %r13
	movq	_EAP_AKA_AUTN_LEN@GOTPCREL(%rip), %rcx
	cmovneq	%r13, %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	movslq	%eax, %rdi
	movq	%rdi, (%rdx)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movl	28(%r15), %eax
	movl	%eax, (%rbx)
	leaq	4(%rbx), %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	$0, 24(%r15)
	sete	%r14b
	cmoveq	_EAP_AKA_RAND_LEN@GOTPCREL(%rip), %r12
	movl	12(%r15,%r14,8), %esi
	movl	(%r12), %edx
	cmoveq	_EAP_AKA_AUTN_LEN@GOTPCREL(%rip), %r13
	callq	_os_memcpy
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	addq	$4, %rdi
	movl	8(%r15,%r14,8), %esi
	movl	(%r13), %edx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_EAP_AKA_RAND_LEN,4,2           ## @EAP_AKA_RAND_LEN
	.comm	_EAP_AKA_AUTN_LEN,4,2           ## @EAP_AKA_AUTN_LEN
	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ## @EAP_SIM_NONCE_S_LEN
	.comm	_EAP_SIM_MAC_LEN,4,2            ## @EAP_SIM_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: Derived Session-Id"

	.no_dead_strip	_eap_aka_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_aka_get_session_id
_eap_aka_get_session_id:                ; @eap_aka_get_session_id
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1, #24]
Lloh3:
	adrp	x25, _EAP_AKA_RAND_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EAP_AKA_RAND_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x26, _EAP_SIM_NONCE_S_LEN@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EAP_SIM_NONCE_S_LEN@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x25, x26, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x23, _EAP_AKA_AUTN_LEN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EAP_AKA_AUTN_LEN@GOTPAGEOFF]
Lloh9:
	adrp	x24, _EAP_SIM_MAC_LEN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _EAP_SIM_MAC_LEN@GOTPAGEOFF]
	csel	x9, x23, x24, eq
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w8, w8, #1
	sxtw	x0, w8
	str	x0, [x2]
	bl	_os_malloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #28]
	mov	x22, x21
	str	w8, [x22], #4
	ldr	w8, [x20, #24]
	cmp	w8, #0
	mov	w8, #12
	mov	w9, #20
	csel	x8, x9, x8, eq
	csel	x25, x25, x26, eq
	mov	w9, #8
	mov	w10, #16
	csel	x26, x10, x9, eq
	ldr	w1, [x20, x8]
	ldr	w2, [x25]
	csel	x23, x23, x24, eq
	mov	x0, x22
	bl	_os_memcpy
	ldrsw	x8, [x25]
	add	x0, x22, x8, lsl #2
	ldr	w1, [x20, x26]
	ldr	w2, [x23]
	bl	_os_memcpy
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x3, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_EAP_AKA_RAND_LEN,4,2           ; @EAP_AKA_RAND_LEN
	.comm	_EAP_AKA_AUTN_LEN,4,2           ; @EAP_AKA_AUTN_LEN
	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ; @EAP_SIM_NONCE_S_LEN
	.comm	_EAP_SIM_MAC_LEN,4,2            ; @EAP_SIM_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Derived Session-Id"

	.no_dead_strip	_eap_aka_get_session_id
.subsections_via_symbols
