	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_set_tim_impl
_cw1200_set_tim_impl:                   ## @cw1200_set_tim_impl
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$1, -56(%rbp)
	movq	_WSM_UPDATE_IE_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	(%r15), %esi
	movl	4(%r15), %edi
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_ieee80211_beacon_get_tim
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movslq	-28(%rbp), %rcx
	movq	(%rax), %rax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	cmpl	$6, -32(%rbp)
	jl	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movl	$0, 8(%rax,%rcx,4)
	movslq	-28(%rbp), %rcx
	movl	16(%rax,%rcx,4), %esi
	andl	$-2, %esi
	orl	%esi, %edx
	movl	%edx, 16(%rax,%rcx,4)
LBB0_7:
	movslq	-28(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -48(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wsm_update_ie
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	___cw1200_flush
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_wsm_unlock_tx
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_UPDATE_IE_BEACON,4,2       ## @WSM_UPDATE_IE_BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[AP] mcast: %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"ena"

L_.str.2:                               ## @.str.2
	.asciz	"dis"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_cw1200_set_tim_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_set_tim_impl
_cw1200_set_tim_impl:                   ; @cw1200_set_tim_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1
Lloh0:
	adrp	x9, _WSM_UPDATE_IE_BEACON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WSM_UPDATE_IE_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w8, [sp, #8]
	str	w9, [sp, #28]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x1, x9, x8, eq
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldp	w1, w0, [x19]
	add	x2, sp, #4
	mov	x3, sp
	bl	_ieee80211_beacon_get_tim
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w9, [sp, #4]
	ldr	x8, [x0]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w10, [sp]
	cmp	w10, #6
	b.lt	LBB0_4
; %bb.3:
	cmp	w20, #0
	cset	w10, ne
	add	w9, w9, #2
	str	wzr, [x8, w9, sxtw #2]
	ldrsw	x9, [sp, #4]
	add	x9, x8, x9, lsl #2
	ldr	w11, [x9, #16]
	and	w11, w11, #0xfffffffe
	orr	w10, w11, w10
	str	w10, [x9, #16]
LBB0_4:
	ldrsw	x9, [sp, #4]
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #16]
	ldr	w8, [sp]
	str	w8, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wsm_update_ie
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	___cw1200_flush
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_wsm_unlock_tx
LBB0_7:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_UPDATE_IE_BEACON,4,2       ; @WSM_UPDATE_IE_BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[AP] mcast: %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"ena"

l_.str.2:                               ; @.str.2
	.asciz	"dis"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_cw1200_set_tim_impl
.subsections_via_symbols
