	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wil_cfg80211_start_ap
__wil_cfg80211_start_ap:                ## @_wil_cfg80211_start_ap
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	48(%rbp), %r15
	callq	_wiphy_to_wil
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ndev_to_vif
	movq	%rax, %r14
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rbx
	movq	(%rbx), %rdi
	callq	_wil_iftype_nl2wmi
	movq	(%rbx), %r13
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	xorl	%ecx, %ecx
	cmpq	%rbx, %r13
	sete	%cl
	movq	$0, -72(%rbp)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_WMI_NETTYPE_P2P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	68(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	callq	_wil_dbg_misc
	testq	%r15, %r15
	movq	%r12, %r14
	jne	LBB0_6
## %bb.3:
	cmpq	%rbx, %r13
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_wil_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_6:
	movq	32(%rbp), %r12
	movq	_fw_recovery_idle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wil_set_recovery_state
	movl	(%r12), %esi
	movl	4(%r12), %edi
	leaq	-72(%rbp), %rdx
	callq	__wil_cfg80211_get_proberesp_ies
	testq	%rax, %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	je	LBB0_12
## %bb.7:
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	jle	LBB0_12
## %bb.8:
	movq	_WLAN_EID_MOBILITY_DOMAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_WMI_FW_CAPABILITY_FT_ROAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_wil_vif_ft_roam@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	64(%rbx), %esi
	callq	_set_bit
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_wil_has_other_active_ifaces
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wmi_set_ssid
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	__wil_cfg80211_set_ies
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.16:
	movq	40(%rbp), %rcx
	movq	24(%rbp), %rdx
	movq	16(%rbp), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	movq	%rsi, 48(%rbx)
	movq	%rdx, 40(%rbx)
	movq	%rcx, 32(%rbx)
	movq	48(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%rbx)
	movl	16(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	%r13, 8(%rbx)
	movq	%r15, %rdi
	callq	_netif_carrier_on
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_wil_has_other_active_ifaces
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_WIL_MAX_BUS_REQUEST_KBPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wil6210_bus_request
LBB0_18:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	24(%rbp), %r8
	movq	40(%rbp), %r9
	callq	_wmi_pcp_start
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%rbx, %rdi
	callq	_wil_bcast_init
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_wmi_pcp_stop
LBB0_22:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_wil_has_other_active_ifaces
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	_WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wil6210_bus_request
	jmp	LBB0_24
LBB0_13:
	movq	%r14, %rdi
	callq	___wil_down
	movq	%r14, %rdi
	callq	___wil_up
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_14
LBB0_24:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_25:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_20:
	xorl	%r13d, %r13d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ## @NL80211_IFTYPE_P2P_GO
	.comm	_WMI_NETTYPE_P2P,8,3            ## @WMI_NETTYPE_P2P
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start_ap: mid=%d, is_go=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"P2P GO must be in PBSS\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_fw_recovery_idle,4,2           ## @fw_recovery_idle
	.comm	_WLAN_EID_MOBILITY_DOMAIN,4,2   ## @WLAN_EID_MOBILITY_DOMAIN
	.comm	_WMI_FW_CAPABILITY_FT_ROAMING,4,2 ## @WMI_FW_CAPABILITY_FT_ROAMING
L_.str.2:                               ## @.str.2
	.asciz	"FW does not support FT roaming\n"

	.comm	_wil_vif_ft_roam,4,2            ## @wil_vif_ft_roam
	.comm	_WIL_MAX_BUS_REQUEST_KBPS,4,2   ## @WIL_MAX_BUS_REQUEST_KBPS
	.comm	_WIL_DEFAULT_BUS_REQUEST_KBPS,4,2 ## @WIL_DEFAULT_BUS_REQUEST_KBPS
	.no_dead_strip	__wil_cfg80211_start_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _wil_cfg80211_start_ap
__wil_cfg80211_start_ap:                ; @_wil_cfg80211_start_ap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x6, x7, [sp, #24]               ; 16-byte Folded Spill
	str	w5, [sp, #20]                   ; 4-byte Folded Spill
	mov	x22, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	ldr	x28, [x29, #32]
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x0, x20
	bl	_ndev_to_vif
	mov	x21, x0
	ldr	x23, [x20]
	ldr	x0, [x23]
	bl	_wil_iftype_nl2wmi
	ldr	x23, [x23]
Lloh0:
	adrp	x8, _NL80211_IFTYPE_P2P_GO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_P2P_GO@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	cmp	x23, x24
	cset	w25, eq
	str	xzr, [sp, #40]
Lloh3:
	adrp	x8, _WMI_NETTYPE_P2P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_NETTYPE_P2P@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x28, #0
	csel	x8, x8, x0, ne
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w2, [x21, #68]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x25
	bl	_wil_dbg_misc
	cbnz	x28, LBB0_4
; %bb.1:
	cmp	x23, x24
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_wil_err
Lloh10:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_20
LBB0_4:
	ldr	x23, [x29, #16]
Lloh13:
	adrp	x8, _fw_recovery_idle@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fw_recovery_idle@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wil_set_recovery_state
	ldp	w1, w0, [x23]
	add	x2, sp, #40
	bl	__wil_cfg80211_get_proberesp_ies
	ldr	x2, [sp, #40]
	cmp	x0, #0
	ccmp	x2, #1, #8, ne
	b.lt	LBB0_8
; %bb.5:
	mov	x1, x0
Lloh16:
	adrp	x8, _WLAN_EID_MOBILITY_DOMAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WLAN_EID_MOBILITY_DOMAIN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_8
; %bb.6:
Lloh19:
	adrp	x8, _WMI_FW_CAPABILITY_FT_ROAMING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WMI_FW_CAPABILITY_FT_ROAMING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbz	w0, LBB0_21
; %bb.7:
Lloh22:
	adrp	x8, _wil_vif_ft_roam@GOTPAGE
Lloh23:
	ldr	x8, [x8, _wil_vif_ft_roam@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x21, #64]
	bl	_set_bit
LBB0_8:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_wil_has_other_active_ifaces
	cbz	w0, LBB0_18
LBB0_9:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	bl	_wmi_set_ssid
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.10:
	mov	x0, x21
	mov	x1, x23
	bl	__wil_cfg80211_set_ies
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.11:
	ldr	x23, [x29, #24]
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	stp	x24, x22, [x21, #48]
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	stp	x23, x22, [x21, #32]
	str	x28, [x21, #24]
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	str	w28, [x21]
	ldr	w0, [x21, #16]
	mov	x1, x27
	mov	x2, x26
	bl	_memcpy
	str	x26, [x21, #8]
	mov	x0, x20
	bl	_netif_carrier_on
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_wil_has_other_active_ifaces
	cbnz	w0, LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _WIL_MAX_BUS_REQUEST_KBPS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WIL_MAX_BUS_REQUEST_KBPS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wil6210_bus_request
LBB0_13:
	mov	x0, x21
	mov	x1, x28
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x24
	mov	x4, x22
	mov	x5, x23
	mov	x6, x25
	bl	_wmi_pcp_start
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_wil_bcast_init
	mov	x24, x0
	cbz	w0, LBB0_19
; %bb.15:
	mov	x0, x21
	bl	_wmi_pcp_stop
LBB0_16:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_wil_has_other_active_ifaces
	cbnz	w0, LBB0_19
; %bb.17:
Lloh28:
	adrp	x8, _WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wil6210_bus_request
	b	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	___wil_down
	mov	x0, x19
	bl	___wil_up
	mov	x24, x0
	cbz	w0, LBB0_9
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ; @NL80211_IFTYPE_P2P_GO
	.comm	_WMI_NETTYPE_P2P,8,3            ; @WMI_NETTYPE_P2P
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start_ap: mid=%d, is_go=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"P2P GO must be in PBSS\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_fw_recovery_idle,4,2           ; @fw_recovery_idle
	.comm	_WLAN_EID_MOBILITY_DOMAIN,4,2   ; @WLAN_EID_MOBILITY_DOMAIN
	.comm	_WMI_FW_CAPABILITY_FT_ROAMING,4,2 ; @WMI_FW_CAPABILITY_FT_ROAMING
l_.str.2:                               ; @.str.2
	.asciz	"FW does not support FT roaming\n"

	.comm	_wil_vif_ft_roam,4,2            ; @wil_vif_ft_roam
	.comm	_WIL_MAX_BUS_REQUEST_KBPS,4,2   ; @WIL_MAX_BUS_REQUEST_KBPS
	.comm	_WIL_DEFAULT_BUS_REQUEST_KBPS,4,2 ; @WIL_DEFAULT_BUS_REQUEST_KBPS
	.no_dead_strip	__wil_cfg80211_start_ap
.subsections_via_symbols
