	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_update_listening        ## -- Begin function cw1200_update_listening
	.p2align	4, 0x90
_cw1200_update_listening:               ## @cw1200_update_listening
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	_CW1200_JOIN_STATUS_PASSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_cw1200_enable_listening
	movl	$1, %esi
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_CW1200_JOIN_STATUS_MONITOR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_CW1200_JOIN_STATUS_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_cw1200_disable_listening
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_CW1200_JOIN_STATUS_PASSIVE@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wsm_set_probe_responder        ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_JOIN_STATUS_PASSIVE,8,3 ## @CW1200_JOIN_STATUS_PASSIVE
	.comm	_CW1200_JOIN_STATUS_MONITOR,8,3 ## @CW1200_JOIN_STATUS_MONITOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_update_listening        ; -- Begin function cw1200_update_listening
	.p2align	2
_cw1200_update_listening:               ; @cw1200_update_listening
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_cw1200_enable_listening
	mov	w1, #1
	cbnz	w0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _CW1200_JOIN_STATUS_MONITOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_MONITOR@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x9, _CW1200_JOIN_STATUS_MONITOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_MONITOR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_cw1200_disable_listening
	mov	w1, #0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wsm_set_probe_responder
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_JOIN_STATUS_PASSIVE,8,3 ; @CW1200_JOIN_STATUS_PASSIVE
	.comm	_CW1200_JOIN_STATUS_MONITOR,8,3 ; @CW1200_JOIN_STATUS_MONITOR
.subsections_via_symbols
