	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_set_beacon_offsets
_mt76x02_set_beacon_offsets:            ## @mt76x02_set_beacon_offsets
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.5:
	movl	4(%rcx), %r8d
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	63(%rdi), %edx
	testl	%edi, %edi
	cmovnsl	%edi, %edx
	sarl	$6, %edx
	movl	%esi, %ecx
	andb	$24, %cl
	shll	%cl, %edx
	movl	%ebx, %ecx
	andl	$-4, %ecx
	orl	%edx, -64(%rbp,%rcx)
	incl	%ebx
	addl	%r8d, %edi
	addl	$8, %esi
	cmpl	%ebx, %eax
	jne	LBB0_6
## %bb.2:
	movl	-64(%rbp), %r13d
	movl	-60(%rbp), %r12d
	movl	-56(%rbp), %r15d
	movl	-52(%rbp), %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_3:
	xorl	%edi, %edi
	callq	_MT_BCN_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_mt76_wr
	movl	$1, %edi
	callq	_MT_BCN_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mt76_wr
	movl	$2, %edi
	callq	_MT_BCN_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	movl	$3, %edi
	callq	_MT_BCN_OFFSET
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt76x02_set_beacon_offsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_set_beacon_offsets
_mt76x02_set_beacon_offsets:            ; @mt76x02_set_beacon_offsets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	x12, [x0]
	ldr	w8, [x12]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
	ldr	w12, [x12, #4]
	add	x13, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w10, #63
	cmp	w10, #0
	csel	w14, w14, w10, lt
	asr	w14, w14, #6
	and	w15, w9, #0x18
	lsl	w14, w14, w15
	and	w15, w11, #0xfffffffc
	ldr	w16, [x13, x15]
	orr	w14, w14, w16
	str	w14, [x13, x15]
	add	w11, w11, #1
	add	w10, w10, w12
	add	w9, w9, #8
	cmp	w8, w11
	b.ne	LBB0_2
; %bb.3:
	ldp	w23, w22, [sp, #8]
	ldp	w21, w20, [sp, #16]
	b	LBB0_5
LBB0_4:
	mov	w20, #0
	mov	w21, #0
	mov	w22, #0
	mov	w23, #0
LBB0_5:
	mov	w0, #0
	bl	_MT_BCN_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_mt76_wr
	mov	w0, #1
	bl	_MT_BCN_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mt76_wr
	mov	w0, #2
	bl	_MT_BCN_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	mov	w0, #3
	bl	_MT_BCN_OFFSET
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mt76_wr
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt76x02_set_beacon_offsets
.subsections_via_symbols
