	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_set_rate      ## -- Begin function mt76x02_mac_wcid_set_rate
	.p2align	4, 0x90
_mt76x02_mac_wcid_set_rate:             ## @mt76x02_mac_wcid_set_rate
	.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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	_mt76x02_tx_get_max_txpwr_adj
	movl	%eax, %r15d
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mt76x02_mac_tx_rate_val
	movq	_MT_WCID_TX_INFO_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_WCID_TX_INFO_NSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-36(%rbp), %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_MT_WCID_TX_INFO_TXPWR_ADJ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movq	_MT_WCID_TX_INFO_SET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WCID_TX_INFO_RATE,4,2       ## @MT_WCID_TX_INFO_RATE
	.comm	_MT_WCID_TX_INFO_NSS,4,2        ## @MT_WCID_TX_INFO_NSS
	.comm	_MT_WCID_TX_INFO_TXPWR_ADJ,4,2  ## @MT_WCID_TX_INFO_TXPWR_ADJ
	.comm	_MT_WCID_TX_INFO_SET,4,2        ## @MT_WCID_TX_INFO_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_set_rate      ; -- Begin function mt76x02_mac_wcid_set_rate
	.p2align	2
_mt76x02_mac_wcid_set_rate:             ; @mt76x02_mac_wcid_set_rate
	.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, x1
	mov	x21, x0
	mov	x1, x2
	bl	_mt76x02_tx_get_max_txpwr_adj
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_mt76x02_mac_tx_rate_val
	mov	x1, x0
Lloh0:
	adrp	x8, _MT_WCID_TX_INFO_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WCID_TX_INFO_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIELD_PREP
	mov	x19, x0
Lloh3:
	adrp	x8, _MT_WCID_TX_INFO_NSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_WCID_TX_INFO_NSS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_FIELD_PREP
	orr	w19, w0, w19
Lloh6:
	adrp	x8, _MT_WCID_TX_INFO_TXPWR_ADJ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_WCID_TX_INFO_TXPWR_ADJ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_PREP
	orr	w8, w19, w0
Lloh9:
	adrp	x9, _MT_WCID_TX_INFO_SET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT_WCID_TX_INFO_SET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_WCID_TX_INFO_RATE,4,2       ; @MT_WCID_TX_INFO_RATE
	.comm	_MT_WCID_TX_INFO_NSS,4,2        ; @MT_WCID_TX_INFO_NSS
	.comm	_MT_WCID_TX_INFO_TXPWR_ADJ,4,2  ; @MT_WCID_TX_INFO_TXPWR_ADJ
	.comm	_MT_WCID_TX_INFO_SET,4,2        ; @MT_WCID_TX_INFO_SET
.subsections_via_symbols
