	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_config_wcid_attr_bssidx
_rt2800_config_wcid_attr_bssidx:        ## @rt2800_config_wcid_attr_bssidx
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_MAC_WCID_ATTR_ENTRY
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rt2800_register_read
	movl	%eax, -36(%rbp)
	movq	_MAC_WCID_ATTRIBUTE_BSS_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$7, %edx
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movq	_MAC_WCID_ATTRIBUTE_BSS_IDX_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$3, %ebx
	andl	$1, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field32
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_rt2800_register_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_WCID_ATTRIBUTE_BSS_IDX,4,2 ## @MAC_WCID_ATTRIBUTE_BSS_IDX
	.comm	_MAC_WCID_ATTRIBUTE_BSS_IDX_EXT,4,2 ## @MAC_WCID_ATTRIBUTE_BSS_IDX_EXT
	.no_dead_strip	_rt2800_config_wcid_attr_bssidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_config_wcid_attr_bssidx
_rt2800_config_wcid_attr_bssidx:        ; @rt2800_config_wcid_attr_bssidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_MAC_WCID_ATTR_ENTRY
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _MAC_WCID_ATTRIBUTE_BSS_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_WCID_ATTRIBUTE_BSS_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	and	w2, w19, #0x7
	add	x0, sp, #12
	bl	_rt2x00_set_field32
Lloh3:
	adrp	x8, _MAC_WCID_ATTRIBUTE_BSS_IDX_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_WCID_ATTRIBUTE_BSS_IDX_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ubfx	w2, w19, #3, #1
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_rt2800_register_write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_WCID_ATTRIBUTE_BSS_IDX,4,2 ; @MAC_WCID_ATTRIBUTE_BSS_IDX
	.comm	_MAC_WCID_ATTRIBUTE_BSS_IDX_EXT,4,2 ; @MAC_WCID_ATTRIBUTE_BSS_IDX_EXT
	.no_dead_strip	_rt2800_config_wcid_attr_bssidx
.subsections_via_symbols
