	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_get_session_id
_eap_sim_get_session_id:                ## @eap_sim_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_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	cmpl	$0, 28(%rsi)
	je	LBB0_4
## %bb.2:
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EAP_SIM_MAC_LEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	8(%rbx), %eax
	movq	_EAP_SIM_NONCE_MT_LEN@GOTPCREL(%rip), %rcx
LBB0_5:
	cltq
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rdi
	incq	%rdi
	movq	%rdi, (%r14)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r15
	movq	_EAP_TYPE_SIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %r12
	addq	$4, %r12
	cmpl	$0, 28(%rbx)
	je	LBB0_9
## %bb.7:
	movl	16(%rbx), %esi
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_os_memcpy
	movl	(%r13), %eax
	movq	_EAP_SIM_MAC_LEN@GOTPCREL(%rip), %rcx
	movl	$12, %edx
	jmp	LBB0_10
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_9:
	movl	24(%rbx), %esi
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	imull	8(%rbx), %edx
	movq	%r12, %rdi
	callq	_os_memcpy
	movl	(%r13), %eax
	imull	8(%rbx), %eax
	movq	_EAP_SIM_NONCE_MT_LEN@GOTPCREL(%rip), %rcx
	movl	$20, %edx
LBB0_10:
	cltq
	leaq	(%r12,%rax,4), %rdi
	movl	(%rbx,%rdx), %esi
	movl	(%rcx), %edx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
LBB0_11:
	movq	%r15, %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	_GSM_RAND_LEN,4,2               ## @GSM_RAND_LEN
	.comm	_EAP_SIM_NONCE_MT_LEN,4,2       ## @EAP_SIM_NONCE_MT_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	_EAP_TYPE_SIM,4,2               ## @EAP_TYPE_SIM
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: Derived Session-Id"

	.no_dead_strip	_eap_sim_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_sim_get_session_id
_eap_sim_get_session_id:                ; @eap_sim_get_session_id
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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, #28]
Lloh3:
	adrp	x23, _EAP_SIM_NONCE_S_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EAP_SIM_NONCE_S_LEN@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _EAP_SIM_MAC_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EAP_SIM_MAC_LEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x21, #0
	b	LBB0_10
LBB0_4:
	ldr	w8, [x20, #8]
Lloh7:
	adrp	x9, _GSM_RAND_LEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GSM_RAND_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh10:
	adrp	x9, _EAP_SIM_NONCE_MT_LEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EAP_SIM_NONCE_MT_LEN@GOTPAGEOFF]
LBB0_5:
	ldrsw	x9, [x9]
	add	x8, x9, w8, sxtw
	add	x0, x8, #1
	str	x0, [x19]
	bl	_os_malloc
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.6:
Lloh12:
	adrp	x8, _EAP_TYPE_SIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TYPE_SIM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x22, x21
	str	w8, [x22], #4
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w1, [x20, #16]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_os_memcpy
	ldr	w8, [x23]
Lloh15:
	adrp	x9, _EAP_SIM_MAC_LEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAP_SIM_MAC_LEN@GOTPAGEOFF]
	mov	w10, #12
	b	LBB0_9
LBB0_8:
	ldr	w1, [x20, #24]
	ldr	w8, [x20, #8]
Lloh17:
	adrp	x23, _GSM_RAND_LEN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _GSM_RAND_LEN@GOTPAGEOFF]
	ldr	w9, [x23]
	mul	w2, w9, w8
	mov	x0, x22
	bl	_os_memcpy
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	mul	w8, w9, w8
Lloh19:
	adrp	x9, _EAP_SIM_NONCE_MT_LEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EAP_SIM_NONCE_MT_LEN@GOTPAGEOFF]
	mov	w10, #20
LBB0_9:
	ldr	w1, [x20, x10]
	ldr	w2, [x9]
	add	x0, x22, w8, sxtw #2
	bl	_os_memcpy
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x3, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_GSM_RAND_LEN,4,2               ; @GSM_RAND_LEN
	.comm	_EAP_SIM_NONCE_MT_LEN,4,2       ; @EAP_SIM_NONCE_MT_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	_EAP_TYPE_SIM,4,2               ; @EAP_TYPE_SIM
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: Derived Session-Id"

	.no_dead_strip	_eap_sim_get_session_id
.subsections_via_symbols
