	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ft_connect
_wil_ft_connect:                        ## @wil_ft_connect
	.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	%rdx, %r12
	movq	%rsi, %rbx
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ndev_to_vif
	movq	%rax, %r15
	movq	_WMI_FW_CAPABILITY_FT_ROAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	28(%r12), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.2:
	movl	(%r12), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_wil_vif_fwconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	12(%r15), %edx
	movl	24(%r12), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.12:
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
	jmp	LBB0_7
LBB0_16:
	leaq	-56(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%r12), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, -48(%rbp)
	movl	-56(%rbp), %edi
	movl	(%r12), %esi
	callq	_ether_addr_copy
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_info
	movq	_wil_vif_ft_roam@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_set_bit
	movq	_WMI_FT_AUTH_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	$16, %r8d
	callq	_wmi_send
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_clear_bit
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_18:
	addq	$4, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$5000, %edi                     ## imm = 0x1388
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_FW_CAPABILITY_FT_ROAMING,4,2 ## @WMI_FW_CAPABILITY_FT_ROAMING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FT: FW does not support FT roaming\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"FT: prev_bssid was not set\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"FT: can not roam to same AP\n"

	.comm	_wil_vif_fwconnected,4,2        ## @wil_vif_fwconnected
L_.str.3:                               ## @.str.3
	.asciz	"FT: roam while not connected\n"

L_.str.4:                               ## @.str.4
	.asciz	"FT: privacy mismatch, current (%d) roam (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"FT: roam is not valid for PBSS\n"

L_.str.6:                               ## @.str.6
	.asciz	"FT: roaming\n"

	.comm	_wil_vif_ft_roam,4,2            ## @wil_vif_ft_roam
	.comm	_WMI_FT_AUTH_CMDID,4,2          ## @WMI_FT_AUTH_CMDID
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_wil_ft_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_ft_connect
_wil_ft_connect:                        ; @wil_ft_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x20, x1
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x0, x20
	bl	_ndev_to_vif
	mov	x20, x0
Lloh0:
	adrp	x8, _WMI_FW_CAPABILITY_FT_ROAMING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_FW_CAPABILITY_FT_ROAMING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x21, #28]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x21]
	bl	_ether_addr_equal
	cbz	x0, LBB0_9
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_err
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_wil_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_9:
Lloh13:
	adrp	x8, _wil_vif_fwconnected@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wil_vif_fwconnected@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.10:
	ldr	w8, [x20, #12]
	ldr	w9, [x21, #24]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_15
; %bb.12:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_13:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_14:
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_15:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [sp, #24]
	ldr	w0, [sp, #16]
	ldr	w1, [x21]
	bl	_ether_addr_copy
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_wil_info
Lloh24:
	adrp	x21, _wil_vif_ft_roam@GOTPAGE
Lloh25:
	ldr	x21, [x21, _wil_vif_ft_roam@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_set_bit
Lloh26:
	adrp	x8, _WMI_FT_AUTH_CMDID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WMI_FT_AUTH_CMDID@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	add	x3, sp, #16
	mov	x0, x19
	mov	w4, #16
	bl	_wmi_send
	cbz	w0, LBB0_17
; %bb.16:
	mov	x19, x0
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_clear_bit
	b	LBB0_8
LBB0_17:
	add	x19, x20, #4
Lloh29:
	adrp	x8, _jiffies@GOTPAGE
Lloh30:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
	mov	w0, #5000
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	mov	w19, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_FW_CAPABILITY_FT_ROAMING,4,2 ; @WMI_FW_CAPABILITY_FT_ROAMING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FT: FW does not support FT roaming\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"FT: prev_bssid was not set\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"FT: can not roam to same AP\n"

	.comm	_wil_vif_fwconnected,4,2        ; @wil_vif_fwconnected
l_.str.3:                               ; @.str.3
	.asciz	"FT: roam while not connected\n"

l_.str.4:                               ; @.str.4
	.asciz	"FT: privacy mismatch, current (%d) roam (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"FT: roam is not valid for PBSS\n"

l_.str.6:                               ; @.str.6
	.asciz	"FT: roaming\n"

	.comm	_wil_vif_ft_roam,4,2            ; @wil_vif_ft_roam
	.comm	_WMI_FT_AUTH_CMDID,4,2          ; @WMI_FT_AUTH_CMDID
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_wil_ft_connect
.subsections_via_symbols
