	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fst_session_send_tear_down
_fst_session_send_tear_down:            ## @fst_session_send_tear_down
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_fst_session_is_in_progress
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_WPA_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_WPA_ASSERT
	leaq	-40(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	_FST_ACTION_TEAR_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%rbx), %edi
	callq	_host_to_le32
	movl	%eax, -40(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_fst_session_send_action
	movl	(%r12), %esi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%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
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_fst_printf_session
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_fst_printf_sframe
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	"No FST setup to tear down"

	.comm	_FST_ACTION_TEAR_DOWN,4,2       ## @FST_ACTION_TEAR_DOWN
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"FST TearDown sent"

L_.str.2:                               ## @.str.2
	.asciz	"failed to send FST TearDown"

	.no_dead_strip	_fst_session_send_tear_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fst_session_send_tear_down
_fst_session_send_tear_down:            ; @fst_session_send_tear_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_fst_session_is_in_progress
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_WPA_ASSERT
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_WPA_ASSERT
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
Lloh0:
	adrp	x8, _FST_ACTION_TEAR_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FST_ACTION_TEAR_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x19]
	bl	_host_to_le32
	str	w0, [sp, #8]
Lloh3:
	adrp	x21, _TRUE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	mov	x4, #0
	bl	_fst_session_send_action
	mov	x20, x0
	ldr	w1, [x21]
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fst_printf_session
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_fst_printf_sframe
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No FST setup to tear down"

	.comm	_FST_ACTION_TEAR_DOWN,4,2       ; @FST_ACTION_TEAR_DOWN
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"FST TearDown sent"

l_.str.2:                               ; @.str.2
	.asciz	"failed to send FST TearDown"

	.no_dead_strip	_fst_session_send_tear_down
.subsections_via_symbols
