	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_move_go_csa
_wpas_p2p_move_go_csa:                  ## @wpas_p2p_move_go_csa
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_WPA_DRIVER_FLAGS_AP_CSA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %r14
	movl	(%r14), %r12d
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpas_p2p_init_go_params
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	%rbx, %rdi
	callq	_wpa_dbg
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %eax
	cmpl	-48(%rbp), %eax
	jne	LBB0_8
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	callq	_hostapd_config_defaults
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r15
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_wpa_supplicant_conf_ap_ht
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_17
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_4
LBB0_12:
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	movq	_P2P_GO_CSA_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_P2P_GO_CSA_BLOCK_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	-48(%rbp), %edi
	movl	%edi, -104(%rbp)
	movq	32(%r15), %rsi
	movq	%rsi, -72(%rbp)
	testq	%rsi, %rsi
	movl	$20, %eax
	movl	$40, %ecx
	cmovel	%eax, %ecx
	movl	40(%r15), %eax
	movl	%eax, -80(%rbp)
	movl	%ecx, -100(%rbp)
	cmpq	$0, 16(%r15)
	je	LBB0_28
## %bb.14:
	movl	8(%r15), %edx
	leaq	-52(%rbp), %rcx
	leaq	-108(%rbp), %r8
	callq	_ieee80211_freq_to_channel_ext
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_18
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_17:
	movq	%rbx, %rdi
	callq	_wpa_dbg
LBB0_18:
	movl	$-1, %ebx
LBB0_19:
	movl	%r12d, (%r14)
	movq	%r15, %rdi
	callq	_hostapd_config_free
	jmp	LBB0_5
LBB0_20:
	movl	28(%r15), %edx
	xorl	%ecx, %ecx
	movl	$0, %r13d
	testl	%edx, %edx
	je	LBB0_22
## %bb.21:
	movl	-52(%rbp), %esi
	xorl	%edi, %edi
	callq	_ieee80211_chan_to_freq
	xorl	%ecx, %ecx
	movl	%eax, %r13d
LBB0_22:
	movl	24(%r15), %edx
	testl	%edx, %edx
	je	LBB0_24
## %bb.23:
	movl	-52(%rbp), %esi
	xorl	%edi, %edi
	callq	_ieee80211_chan_to_freq
	movl	%eax, %ecx
LBB0_24:
	testl	%r13d, %r13d
	js	LBB0_29
## %bb.25:
	testl	%ecx, %ecx
	js	LBB0_29
## %bb.26:
	movq	16(%r15), %rax
	movq	%rax, -88(%rbp)
	movl	%r13d, -96(%rbp)
	movl	%ecx, -92(%rbp)
	movl	8(%r15), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_28
## %bb.27:
	cltq
	leaq	l_switch.table.wpas_p2p_move_go_csa(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -100(%rbp)
LBB0_28:
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ap_switch_channel
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_29:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_DRIVER_FLAGS_AP_CSA,4,2    ## @WPA_DRIVER_FLAGS_AP_CSA
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSA is not enabled"

L_.str.1:                               ## @.str.1
	.asciz	"P2P CSA: Failed to select new frequency for GO"

L_.str.2:                               ## @.str.2
	.asciz	"P2P CSA: Selected same frequency - not moving GO"

L_.str.3:                               ## @.str.3
	.asciz	"P2P CSA: Failed to allocate default config"

L_.str.4:                               ## @.str.4
	.asciz	"P2P CSA: Failed to create new GO config"

L_.str.5:                               ## @.str.5
	.asciz	"P2P CSA: CSA to a different band is not supported"

	.comm	_P2P_GO_CSA_COUNT,4,2           ## @P2P_GO_CSA_COUNT
	.comm	_P2P_GO_CSA_BLOCK_TX,4,2        ## @P2P_GO_CSA_BLOCK_TX
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"P2P CSA: Bad freq"

L_.str.7:                               ## @.str.7
	.asciz	"P2P CSA: Selected invalid VHT center freqs"

	.no_dead_strip	_wpas_p2p_move_go_csa
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wpas_p2p_move_go_csa
l_switch.table.wpas_p2p_move_go_csa:
	.long	80                              ## 0x50
	.long	80                              ## 0x50
	.long	160                             ## 0xa0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_move_go_csa
_wpas_p2p_move_go_csa:                  ; @wpas_p2p_move_go_csa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WPA_DRIVER_FLAGS_AP_CSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_AP_CSA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x19, [x20, #16]
	ldr	w23, [x19]
	str	xzr, [sp]
	sub	x1, x29, #56
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_wpas_p2p_init_go_params
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_wpa_dbg
	mov	w20, #-1
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #144
	ret
LBB0_6:
	ldr	w8, [x19]
	ldur	w9, [x29, #-56]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	mov	w20, #0
	b	LBB0_5
LBB0_8:
	bl	_hostapd_config_defaults
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
	ldur	w8, [x29, #-56]
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_wpa_supplicant_conf_ap_ht
	cbz	x0, LBB0_12
; %bb.10:
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_11:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
Lloh28:
	adrp	x8, _P2P_GO_CSA_COUNT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _P2P_GO_CSA_COUNT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _P2P_GO_CSA_BLOCK_TX@GOTPAGE
Lloh32:
	ldr	x9, [x9, _P2P_GO_CSA_BLOCK_TX@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	ldur	w0, [x29, #-56]
	ldr	x1, [x21, #32]
	str	x1, [sp, #56]
	ldr	w8, [x21, #40]
	str	w8, [sp, #48]
	cmp	x1, #0
	mov	w8, #40
	mov	w9, #20
	csel	w8, w9, w8, eq
	stp	w0, w8, [sp, #24]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_30
; %bb.14:
	ldr	w2, [x21, #8]
	add	x3, sp, #16
	add	x4, sp, #20
	bl	_ieee80211_freq_to_channel_ext
Lloh34:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.15:
Lloh37:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	b	LBB0_18
LBB0_16:
Lloh42:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.5@PAGE
Lloh46:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_wpa_dbg
LBB0_18:
	mov	w20, #-1
LBB0_19:
	str	w23, [x19]
	mov	x0, x21
	bl	_hostapd_config_free
	b	LBB0_5
LBB0_20:
	ldr	w2, [x21, #28]
	cbz	w2, LBB0_22
; %bb.21:
	ldr	w1, [sp, #16]
	mov	x0, #0
	bl	_ieee80211_chan_to_freq
	mov	x22, x0
	b	LBB0_23
LBB0_22:
	mov	w22, #0
LBB0_23:
	ldr	w2, [x21, #24]
	cbz	w2, LBB0_25
; %bb.24:
	ldr	w1, [sp, #16]
	mov	x0, #0
	bl	_ieee80211_chan_to_freq
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	tbnz	w22, #31, LBB0_31
; %bb.27:
	tbnz	w0, #31, LBB0_31
; %bb.28:
	ldr	x8, [x21, #16]
	str	x8, [sp, #40]
	stp	w22, w0, [sp, #32]
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_30
; %bb.29:
Lloh47:
	adrp	x9, l_switch.table.wpas_p2p_move_go_csa@PAGE
Lloh48:
	add	x9, x9, l_switch.table.wpas_p2p_move_go_csa@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [sp, #28]
LBB0_30:
	add	x1, sp, #24
	mov	x0, x20
	bl	_ap_switch_channel
	mov	x20, x0
	b	LBB0_19
LBB0_31:
Lloh49:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x2, l_.str.7@PAGE
Lloh53:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_DRIVER_FLAGS_AP_CSA,4,2    ; @WPA_DRIVER_FLAGS_AP_CSA
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSA is not enabled"

l_.str.1:                               ; @.str.1
	.asciz	"P2P CSA: Failed to select new frequency for GO"

l_.str.2:                               ; @.str.2
	.asciz	"P2P CSA: Selected same frequency - not moving GO"

l_.str.3:                               ; @.str.3
	.asciz	"P2P CSA: Failed to allocate default config"

l_.str.4:                               ; @.str.4
	.asciz	"P2P CSA: Failed to create new GO config"

l_.str.5:                               ; @.str.5
	.asciz	"P2P CSA: CSA to a different band is not supported"

	.comm	_P2P_GO_CSA_COUNT,4,2           ; @P2P_GO_CSA_COUNT
	.comm	_P2P_GO_CSA_BLOCK_TX,4,2        ; @P2P_GO_CSA_BLOCK_TX
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"P2P CSA: Bad freq"

l_.str.7:                               ; @.str.7
	.asciz	"P2P CSA: Selected invalid VHT center freqs"

	.no_dead_strip	_wpas_p2p_move_go_csa
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wpas_p2p_move_go_csa
l_switch.table.wpas_p2p_move_go_csa:
	.long	80                              ; 0x50
	.long	80                              ; 0x50
	.long	160                             ; 0xa0

.subsections_via_symbols
