	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_kay_move_live_peer
_ieee802_1x_kay_move_live_peer:         ## @ieee802_1x_kay_move_live_peer
	.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
	movl	%edx, %r12d
	movq	%rdi, %r14
	callq	_ieee802_1x_kay_get_potential_peer
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	12(%r14), %r13
	movq	%r13, %rdi
	callq	_ieee802_1x_kay_init_receive_sc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	movl	%r12d, 16(%rbx)
	xorl	%edi, %edi
	callq	_time
	movq	_MKA_LIFE_TIME@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_ieee802_1x_kay_dump_peer
	movq	%rbx, %rdi
	callq	_dl_list_del
	movl	8(%r14), %edi
	movq	%r15, %rsi
	callq	_secy_create_receive_sc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_os_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	callq	_dl_list_add_tail
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dl_list_add
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MKA_LIFE_TIME,4,2              ## @MKA_LIFE_TIME
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: Move potential peer to live peer"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"KaY: Can't create SC, discard peer"

	.no_dead_strip	_ieee802_1x_kay_move_live_peer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_kay_move_live_peer
_ieee802_1x_kay_move_live_peer:         ; @ieee802_1x_kay_move_live_peer
	.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
	mov	x22, x2
	mov	x20, x0
	bl	_ieee802_1x_kay_get_potential_peer
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x23, x20, #12
	mov	x0, x23
	bl	_ieee802_1x_kay_init_receive_sc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	add	x0, x19, #20
	mov	x1, x23
	mov	w2, #4
	bl	_os_memcpy
	str	w22, [x19, #16]
	mov	x0, #0
	bl	_time
Lloh0:
	adrp	x8, _MKA_LIFE_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MKA_LIFE_TIME@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	add	x8, x0, w8, sxtw
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_ieee802_1x_kay_dump_peer
	mov	x0, x19
	bl	_dl_list_del
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_secy_create_receive_sc
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_os_free
	mov	x0, x19
	bl	_os_free
LBB0_4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	add	x0, x20, #4
	mov	x1, x19
	bl	_dl_list_add_tail
	mov	x0, x20
	mov	x1, x21
	bl	_dl_list_add
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MKA_LIFE_TIME,4,2              ; @MKA_LIFE_TIME
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: Move potential peer to live peer"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"KaY: Can't create SC, discard peer"

	.no_dead_strip	_ieee802_1x_kay_move_live_peer
.subsections_via_symbols
