	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_setup         ## -- Begin function mt76x02_mac_wcid_setup
	.p2align	4, 0x90
_mt76x02_mac_wcid_setup:                ## @mt76x02_mac_wcid_setup
	.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	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movq	_MT_WCID_ATTR_BSS_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %esi
	andl	$7, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	movq	_MT_WCID_ATTR_BSS_IDX_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shrl	$3, %ebx
	andl	$1, %ebx
	movl	%ebx, %esi
	callq	_FIELD_PREP
	orl	%eax, %r13d
	movl	%r12d, %edi
	callq	_MT_WCID_ATTR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_mt76_wr
	cmpl	$127, %r12d
	jg	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_memcpy
LBB0_3:
	movl	%r12d, %edi
	callq	_MT_WCID_ADDR
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_mt76_wr_copy
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WCID_ATTR_BSS_IDX,4,2       ## @MT_WCID_ATTR_BSS_IDX
	.comm	_MT_WCID_ATTR_BSS_IDX_EXT,4,2   ## @MT_WCID_ATTR_BSS_IDX_EXT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_setup         ; -- Begin function mt76x02_mac_wcid_setup
	.p2align	2
_mt76x02_mac_wcid_setup:                ; @mt76x02_mac_wcid_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _MT_WCID_ATTR_BSS_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WCID_ATTR_BSS_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	and	w1, w2, #0x7
	bl	_FIELD_PREP
	mov	x23, x0
Lloh3:
	adrp	x8, _MT_WCID_ATTR_BSS_IDX_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_WCID_ATTR_BSS_IDX_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ubfx	w1, w22, #3, #1
	bl	_FIELD_PREP
	orr	w22, w0, w23
	mov	x0, x20
	bl	_MT_WCID_ATTR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mt76_wr
	cmp	w20, #127
	b.gt	LBB0_4
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x21
	bl	_memcpy
LBB0_3:
	mov	x0, x20
	bl	_MT_WCID_ADDR
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_mt76_wr_copy
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_WCID_ATTR_BSS_IDX,4,2       ; @MT_WCID_ATTR_BSS_IDX
	.comm	_MT_WCID_ATTR_BSS_IDX_EXT,4,2   ; @MT_WCID_ATTR_BSS_IDX_EXT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
