	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_beacon         ## -- Begin function mt76x02_mac_set_beacon
	.p2align	4, 0x90
_mt76x02_mac_set_beacon:                ## @mt76x02_mac_set_beacon
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.7:
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%r15b, %r15d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%r13,8)
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___mt76x02_mac_set_beacon
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rdi
	cmpq	$1, (%rdi,%rbx,8)
	sbbl	$-1, %r12d
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_2
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r13
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	testq	%rdi, %rdi
	setne	%r15b
	xorb	%cl, %r15b
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_dev_kfree_skb
	movq	8(%r14), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_15
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_1:
	xorl	%r12d, %r12d
LBB0_2:
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jge	LBB0_6
## %bb.3:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	___mt76x02_mac_set_beacon
	incl	%ebx
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_4
LBB0_6:
	movq	_MT_MAC_BSSID_DW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_MAC_BSSID_DW1_MBEACON_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_mt76_rmw_field
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MAC_BSSID_DW1,4,2           ## @MT_MAC_BSSID_DW1
	.comm	_MT_MAC_BSSID_DW1_MBEACON_N,4,2 ## @MT_MAC_BSSID_DW1_MBEACON_N
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_beacon         ; -- Begin function mt76x02_mac_set_beacon
	.p2align	2
_mt76x02_mac_set_beacon:                ; @mt76x02_mac_set_beacon
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
	mov	w20, #0
	mov	w24, #0
	mov	w22, w22
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	eor	w24, w24, w25
	str	x21, [x8, x22, lsl #3]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	___mt76x02_mac_set_beacon
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0, x23, lsl #3]
	cmp	x8, #0
	cinc	w20, w20, ne
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x23
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, #0
	cset	w24, ne
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22, lsl #3]
	cmp	x0, #0
	cset	w25, ne
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x19, #8]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	x2, [x8, x23, lsl #3]
	cbz	x2, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	b	LBB0_3
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_16
; %bb.13:
	mov	x21, x20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	___mt76x02_mac_set_beacon
	add	w21, w21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.lt	LBB0_14
LBB0_16:
Lloh0:
	adrp	x8, _MT_MAC_BSSID_DW1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_MAC_BSSID_DW1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MT_MAC_BSSID_DW1_MBEACON_N@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_MAC_BSSID_DW1_MBEACON_N@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	sub	w3, w20, #1
	mov	x0, x19
	bl	_mt76_rmw_field
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MAC_BSSID_DW1,4,2           ; @MT_MAC_BSSID_DW1
	.comm	_MT_MAC_BSSID_DW1_MBEACON_N,4,2 ; @MT_MAC_BSSID_DW1_MBEACON_N
.subsections_via_symbols
