	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_enable_listening        ## -- Begin function cw1200_enable_listening
	.p2align	4, 0x90
_cw1200_enable_listening:               ## @cw1200_enable_listening
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	_WSM_PHY_BAND_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movabsq	$4294967396, %rcx               ## imm = 0x100000064
	movq	%rcx, -24(%rbp)
	movl	$15, -16(%rbp)
	movl	$0, -8(%rbp)
	movq	_WSM_START_MODE_P2P_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rbp)
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	(%rcx), %rdx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
## %bb.2:
	movq	_WSM_PHY_BAND_5G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, -32(%rbp)
	movl	8(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	%rax, -32(%rbp)
	movl	$1, %eax
LBB0_5:
	movl	%eax, -12(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_wsm_start
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_PHY_BAND_2_4G,8,3          ## @WSM_PHY_BAND_2_4G
	.comm	_WSM_START_MODE_P2P_DEV,4,2     ## @WSM_START_MODE_P2P_DEV
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_WSM_PHY_BAND_5G,8,3            ## @WSM_PHY_BAND_5G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cw1200_enable_listening
lCPI0_0:
	.long	100                             ; 0x64
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cw1200_enable_listening
	.p2align	2
_cw1200_enable_listening:               ; @cw1200_enable_listening
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _WSM_PHY_BAND_2_4G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSM_PHY_BAND_2_4G@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	mov	w9, #15
	str	w9, [sp, #16]
	str	wzr, [sp, #24]
Lloh5:
	adrp	x9, _WSM_START_MODE_P2P_DEV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WSM_START_MODE_P2P_DEV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [sp, #28]
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x10, [x9]
Lloh8:
	adrp	x11, _NL80211_BAND_5GHZ@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh10:
	adrp	x12, _WSM_PHY_BAND_5G@GOTPAGE
Lloh11:
	ldr	x12, [x12, _WSM_PHY_BAND_5G@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
Lloh13:
	ldr	x12, [x12]
	cmp	x10, x11
	csel	x8, x12, x8, eq
	str	x8, [sp]
	ldr	w8, [x9, #8]
	b	LBB0_3
LBB0_2:
	str	x8, [sp]
	mov	w8, #1
LBB0_3:
	str	w8, [sp, #20]
	mov	x1, sp
	bl	_wsm_start
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_PHY_BAND_2_4G,8,3          ; @WSM_PHY_BAND_2_4G
	.comm	_WSM_START_MODE_P2P_DEV,4,2     ; @WSM_START_MODE_P2P_DEV
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_WSM_PHY_BAND_5G,8,3            ; @WSM_PHY_BAND_5G
.subsections_via_symbols
