	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_update_beaconing
_cw1200_update_beaconing:               ## @cw1200_update_beaconing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rax
	movq	$1, -24(%rbp)
	movq	(%rdi), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	movq	_CW1200_JOIN_STATUS_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_wsm_lock_tx
	movq	8(%rbx), %rax
	movq	_CW1200_JOIN_STATUS_PASSIVE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wsm_reset
	movq	(%r14), %rax
LBB0_5:
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_cw1200_start_ap
	movq	%rbx, %rdi
	callq	_wsm_unlock_tx
LBB0_7:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ## @CW1200_JOIN_STATUS_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ap restarting\n"

	.comm	_CW1200_JOIN_STATUS_PASSIVE,8,3 ## @CW1200_JOIN_STATUS_PASSIVE
L_.str.1:                               ## @.str.1
	.asciz	"ap started join_status: %d\n"

	.no_dead_strip	_cw1200_update_beaconing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_update_beaconing
_cw1200_update_beaconing:               ; @cw1200_update_beaconing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	mov	w9, #1
	str	x9, [sp, #8]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _CW1200_JOIN_STATUS_AP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CW1200_JOIN_STATUS_AP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x10, [x19, #16]
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_4
; %bb.3:
	str	x9, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_wsm_lock_tx
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x20, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wsm_reset
	ldr	x8, [x20]
LBB0_6:
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_cw1200_start_ap
	mov	x0, x19
	bl	_wsm_unlock_tx
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ; @CW1200_JOIN_STATUS_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ap restarting\n"

	.comm	_CW1200_JOIN_STATUS_PASSIVE,8,3 ; @CW1200_JOIN_STATUS_PASSIVE
l_.str.1:                               ; @.str.1
	.asciz	"ap started join_status: %d\n"

	.no_dead_strip	_cw1200_update_beaconing
.subsections_via_symbols
