	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_conf_tx                ## -- Begin function mt76x02_conf_tx
	.p2align	4, 0x90
_mt76x02_conf_tx:                       ## @mt76x02_conf_tx
	.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	%rcx, %rbx
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax,%rdx,8), %rax
	movl	(%rax), %r13d
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_fls
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	movl	$5, %r12d
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_fls
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
LBB0_4:
	movl	$10, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_6:
	movq	_MT_EDCA_CFG_TXOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_FIELD_PREP
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movq	_MT_EDCA_CFG_AIFSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_FIELD_PREP
	orl	%eax, %r15d
	movq	_MT_EDCA_CFG_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, %r12d
	movq	_MT_EDCA_CFG_CWMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELD_PREP
	orl	%eax, %r12d
	orl	%r15d, %r12d
	movl	%r13d, %edi
	callq	_MT_EDCA_CFG_AC
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mt76_wr
	movl	%r13d, %edi
	callq	_MT_WMM_TXOP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movl	%eax, %r15d
	movq	_MT_WMM_TXOP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_TXOP_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_MT_WMM_TXOP_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movl	%r13d, %edi
	callq	_MT_WMM_TXOP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	_MT_WMM_AIFSN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	movl	%eax, %r12d
	movq	_MT_WMM_AIFSN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_AIFSN_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r12d
	movl	%r13d, %edi
	callq	_MT_WMM_AIFSN_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r12d
	orl	%ebx, %r12d
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_mt76_wr
	movq	_MT_WMM_CWMIN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	movl	%eax, %r12d
	movq	_MT_WMM_CWMIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_CWMIN_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_CWMIN_SHIFT
	movl	%eax, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	orl	%ebx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_wr
	movq	_MT_WMM_CWMAX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	movl	%eax, %r12d
	movq	_MT_WMM_CWMAX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_CWMAX_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	%r13d, %edi
	callq	_MT_WMM_CWMAX_SHIFT
	movl	%eax, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	orl	%ebx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_wr
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EDCA_CFG_TXOP,4,2           ## @MT_EDCA_CFG_TXOP
	.comm	_MT_EDCA_CFG_AIFSN,4,2          ## @MT_EDCA_CFG_AIFSN
	.comm	_MT_EDCA_CFG_CWMIN,4,2          ## @MT_EDCA_CFG_CWMIN
	.comm	_MT_EDCA_CFG_CWMAX,4,2          ## @MT_EDCA_CFG_CWMAX
	.comm	_MT_WMM_TXOP_MASK,4,2           ## @MT_WMM_TXOP_MASK
	.comm	_MT_WMM_AIFSN,4,2               ## @MT_WMM_AIFSN
	.comm	_MT_WMM_AIFSN_MASK,4,2          ## @MT_WMM_AIFSN_MASK
	.comm	_MT_WMM_CWMIN,4,2               ## @MT_WMM_CWMIN
	.comm	_MT_WMM_CWMIN_MASK,4,2          ## @MT_WMM_CWMIN_MASK
	.comm	_MT_WMM_CWMAX,4,2               ## @MT_WMM_CWMAX
	.comm	_MT_WMM_CWMAX_MASK,4,2          ## @MT_WMM_CWMAX_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_conf_tx                ; -- Begin function mt76x02_conf_tx
	.p2align	2
_mt76x02_conf_tx:                       ; @mt76x02_conf_tx
	.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	x23, x3
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8, x2, lsl #3]
	ldr	w20, [x8]
	ldr	x0, [x3, #16]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_fls
	mov	x22, x0
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_4
LBB0_2:
	bl	_fls
	mov	x21, x0
	b	LBB0_5
LBB0_3:
	mov	w22, #5
	ldr	x0, [x23, #8]
	cbnz	x0, LBB0_2
LBB0_4:
	mov	w21, #10
LBB0_5:
Lloh0:
	adrp	x8, _MT_EDCA_CFG_TXOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_EDCA_CFG_TXOP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_FIELD_PREP
	mov	x24, x0
Lloh3:
	adrp	x8, _MT_EDCA_CFG_AIFSN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_EDCA_CFG_AIFSN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x23, #4]
	bl	_FIELD_PREP
	orr	w24, w0, w24
Lloh6:
	adrp	x8, _MT_EDCA_CFG_CWMIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_EDCA_CFG_CWMIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_PREP
	orr	w24, w24, w0
Lloh9:
	adrp	x8, _MT_EDCA_CFG_CWMAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EDCA_CFG_CWMAX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w24, w24, w0
	mov	x0, x20
	bl	_MT_EDCA_CFG_AC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_mt76_wr
	mov	x0, x20
	bl	_MT_WMM_TXOP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	mov	x24, x0
Lloh12:
	adrp	x8, _MT_WMM_TXOP_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_WMM_TXOP_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_MT_WMM_TXOP_SHIFT
	lsl	w8, w25, w0
	bic	w24, w24, w8
	ldr	w25, [x23]
	mov	x0, x20
	bl	_MT_WMM_TXOP_SHIFT
	lsl	w8, w25, w0
	orr	w24, w8, w24
	mov	x0, x20
	bl	_MT_WMM_TXOP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_mt76_wr
Lloh15:
	adrp	x25, _MT_WMM_AIFSN@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MT_WMM_AIFSN@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_mt76_rr
	mov	x24, x0
Lloh17:
	adrp	x8, _MT_WMM_AIFSN_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_WMM_AIFSN_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
	mov	x0, x20
	bl	_MT_WMM_AIFSN_SHIFT
	lsl	w8, w26, w0
	bic	w24, w24, w8
	ldr	w23, [x23, #4]
	mov	x0, x20
	bl	_MT_WMM_AIFSN_SHIFT
	lsl	w8, w23, w0
	orr	w2, w8, w24
	ldr	w1, [x25]
	mov	x0, x19
	bl	_mt76_wr
Lloh20:
	adrp	x24, _MT_WMM_CWMIN@GOTPAGE
Lloh21:
	ldr	x24, [x24, _MT_WMM_CWMIN@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mt76_rr
	mov	x23, x0
Lloh22:
	adrp	x8, _MT_WMM_CWMIN_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MT_WMM_CWMIN_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_MT_WMM_CWMIN_SHIFT
	lsl	w8, w25, w0
	bic	w23, w23, w8
	mov	x0, x20
	bl	_MT_WMM_CWMIN_SHIFT
	lsl	w8, w22, w0
	orr	w2, w23, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mt76_wr
Lloh25:
	adrp	x23, _MT_WMM_CWMAX@GOTPAGE
Lloh26:
	ldr	x23, [x23, _MT_WMM_CWMAX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mt76_rr
	mov	x22, x0
Lloh27:
	adrp	x8, _MT_WMM_CWMAX_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MT_WMM_CWMAX_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_MT_WMM_CWMAX_SHIFT
	lsl	w8, w24, w0
	bic	w22, w22, w8
	mov	x0, x20
	bl	_MT_WMM_CWMAX_SHIFT
	lsl	w8, w21, w0
	orr	w2, w22, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mt76_wr
	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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_EDCA_CFG_TXOP,4,2           ; @MT_EDCA_CFG_TXOP
	.comm	_MT_EDCA_CFG_AIFSN,4,2          ; @MT_EDCA_CFG_AIFSN
	.comm	_MT_EDCA_CFG_CWMIN,4,2          ; @MT_EDCA_CFG_CWMIN
	.comm	_MT_EDCA_CFG_CWMAX,4,2          ; @MT_EDCA_CFG_CWMAX
	.comm	_MT_WMM_TXOP_MASK,4,2           ; @MT_WMM_TXOP_MASK
	.comm	_MT_WMM_AIFSN,4,2               ; @MT_WMM_AIFSN
	.comm	_MT_WMM_AIFSN_MASK,4,2          ; @MT_WMM_AIFSN_MASK
	.comm	_MT_WMM_CWMIN,4,2               ; @MT_WMM_CWMIN
	.comm	_MT_WMM_CWMIN_MASK,4,2          ; @MT_WMM_CWMIN_MASK
	.comm	_MT_WMM_CWMAX,4,2               ; @MT_WMM_CWMAX
	.comm	_MT_WMM_CWMAX_MASK,4,2          ; @MT_WMM_CWMAX_MASK
.subsections_via_symbols
