	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fst_session_initiate_switch    ## -- Begin function fst_session_initiate_switch
	.p2align	4, 0x90
_fst_session_initiate_switch:           ## @fst_session_initiate_switch
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_fst_session_is_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	24(%rbx), %edi
	callq	_fst_group_assign_dialog_token
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_WPA_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_WPA_ASSERT
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%rbx), %rdi
	callq	_fst_iface_get_name
	movl	%eax, %r13d
	movq	8(%rbx), %rdi
	callq	_fst_iface_get_name
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fst_printf_session
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	_FST_ACTION_ACK_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r15d, -52(%rbp)
	movl	(%rbx), %edi
	callq	_host_to_le32
	movl	%eax, -56(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$12, %ecx
	xorl	%r8d, %r8d
	callq	_fst_session_send_action
	movl	(%r13), %esi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	callq	_fst_printf_sframe
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_fst_printf_session
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	callq	_fst_printf_sframe
	movq	_FST_SESSION_STATE_TRANSITION_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_fst_session_set_state
	movq	%rbx, %rdi
	callq	_fst_session_stt_arm
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot initiate switch due to wrong setup state (%d)"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"initiating FST switch: %s => %s"

	.comm	_FST_ACTION_ACK_REQUEST,4,2     ## @FST_ACTION_ACK_REQUEST
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"FST Ack Request sent"

	.comm	_FST_SESSION_STATE_TRANSITION_DONE,4,2 ## @FST_SESSION_STATE_TRANSITION_DONE
L_.str.3:                               ## @.str.3
	.asciz	"Cannot send FST Ack Request"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fst_session_initiate_switch    ; -- Begin function fst_session_initiate_switch
	.p2align	2
_fst_session_initiate_switch:           ; @fst_session_initiate_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_fst_session_is_ready
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_fst_group_assign_dialog_token
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_WPA_ASSERT
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_WPA_ASSERT
Lloh0:
	adrp	x23, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_INFO@GOTPAGEOFF]
	ldr	w21, [x23]
	ldr	x0, [x19, #16]
	bl	_fst_iface_get_name
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_fst_iface_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_fst_printf_session
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
Lloh4:
	adrp	x8, _FST_ACTION_ACK_REQUEST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FST_ACTION_ACK_REQUEST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w20, w8, [sp, #20]
	ldr	w0, [x19]
	bl	_host_to_le32
	str	w0, [sp, #16]
Lloh7:
	adrp	x21, _FALSE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #12
	mov	x4, #0
	bl	_fst_session_send_action
	mov	x20, x0
	ldr	w1, [x21]
	cbz	w0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fst_printf_sframe
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x19, #28]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fst_printf_session
	mov	w20, #-1
	b	LBB0_5
LBB0_4:
	ldr	w2, [x23]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fst_printf_sframe
Lloh21:
	adrp	x8, _FST_SESSION_STATE_TRANSITION_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FST_SESSION_STATE_TRANSITION_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_fst_session_set_state
	mov	x0, x19
	bl	_fst_session_stt_arm
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot initiate switch due to wrong setup state (%d)"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"initiating FST switch: %s => %s"

	.comm	_FST_ACTION_ACK_REQUEST,4,2     ; @FST_ACTION_ACK_REQUEST
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"FST Ack Request sent"

	.comm	_FST_SESSION_STATE_TRANSITION_DONE,4,2 ; @FST_SESSION_STATE_TRANSITION_DONE
l_.str.3:                               ; @.str.3
	.asciz	"Cannot send FST Ack Request"

.subsections_via_symbols
