	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_wtbl_update_cap         ## -- Begin function mt7603_wtbl_update_cap
	.p2align	4, 0x90
_mt7603_wtbl_update_cap:                ## @mt7603_wtbl_update_cap
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rsi), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_mt7603_wtbl1_addr
	movl	%eax, %r13d
	addl	$8, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_mt76_rr
	movq	_MT_WTBL1_W2_KEY_TYPE@GOTPCREL(%rip), %rcx
	movq	_MT_WTBL1_W2_ADMISSION_CONTROL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movl	%eax, %r14d
	movq	_MT_WTBL1_W2_AMPDU_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	_FIELD_PREP
	movl	%eax, %r15d
	movq	_MT_WTBL1_W2_MPDU_DENSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_FIELD_PREP
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_MT_WTBL1_W2_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	andl	%r14d, %ebx
	movq	_MT_WTBL1_W2_TXS_BAF_REPORT@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.3:
	movq	_MT_WTBL1_W2_VHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_4:
	orl	%esi, %ecx
	orl	%eax, %r15d
	orl	%r15d, %ebx
	orl	(%rdx), %ebx
	orl	%ecx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_mt7603_wtbl2_addr
                                        ## kill: def $eax killed $eax def $rax
	leal	36(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mt76_rr
	movq	_MT_WTBL2_W9_SHORT_GI_20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MT_WTBL2_W9_SHORT_GI_40@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edi
	orl	%ecx, %edi
	movq	_MT_WTBL2_W9_SHORT_GI_80@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r12), %edx
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmovnel	%ecx, %eax
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	cmovnel	%esi, %edx
	orl	%eax, %edx
	orl	%edi, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WTBL1_W2_KEY_TYPE,4,2       ## @MT_WTBL1_W2_KEY_TYPE
	.comm	_MT_WTBL1_W2_ADMISSION_CONTROL,4,2 ## @MT_WTBL1_W2_ADMISSION_CONTROL
	.comm	_MT_WTBL1_W2_AMPDU_FACTOR,4,2   ## @MT_WTBL1_W2_AMPDU_FACTOR
	.comm	_MT_WTBL1_W2_MPDU_DENSITY,4,2   ## @MT_WTBL1_W2_MPDU_DENSITY
	.comm	_MT_WTBL1_W2_TXS_BAF_REPORT,4,2 ## @MT_WTBL1_W2_TXS_BAF_REPORT
	.comm	_MT_WTBL1_W2_HT,4,2             ## @MT_WTBL1_W2_HT
	.comm	_MT_WTBL1_W2_VHT,4,2            ## @MT_WTBL1_W2_VHT
	.comm	_MT_WTBL2_W9_SHORT_GI_20,4,2    ## @MT_WTBL2_W9_SHORT_GI_20
	.comm	_MT_WTBL2_W9_SHORT_GI_40,4,2    ## @MT_WTBL2_W9_SHORT_GI_40
	.comm	_MT_WTBL2_W9_SHORT_GI_80,4,2    ## @MT_WTBL2_W9_SHORT_GI_80
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_wtbl_update_cap         ; -- Begin function mt7603_wtbl_update_cap
	.p2align	2
_mt7603_wtbl_update_cap:                ; @mt7603_wtbl_update_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #24]
	ldr	w21, [x8]
	mov	x0, x21
	bl	_mt7603_wtbl1_addr
	add	w22, w0, #8
	mov	x0, x19
	mov	x1, x22
	bl	_mt76_rr
Lloh0:
	adrp	x8, _MT_WTBL1_W2_KEY_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WTBL1_W2_KEY_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MT_WTBL1_W2_ADMISSION_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_WTBL1_W2_ADMISSION_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w24, w8, w0
Lloh6:
	adrp	x8, _MT_WTBL1_W2_AMPDU_FACTOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_WTBL1_W2_AMPDU_FACTOR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_FIELD_PREP
	mov	x23, x0
Lloh9:
	adrp	x8, _MT_WTBL1_W2_MPDU_DENSITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_WTBL1_W2_MPDU_DENSITY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_FIELD_PREP
Lloh12:
	adrp	x8, _MT_WTBL1_W2_TXS_BAF_REPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_WTBL1_W2_TXS_BAF_REPORT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh15:
	adrp	x10, _MT_WTBL1_W2_HT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MT_WTBL1_W2_HT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	ldr	x10, [x20, #16]
Lloh18:
	adrp	x11, _MT_WTBL1_W2_VHT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MT_WTBL1_W2_VHT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
	orr	w11, w23, w24
	orr	w11, w11, w0
	orr	w8, w11, w8
	orr	w8, w8, w9
	orr	w2, w8, w10
	mov	x0, x19
	mov	x1, x22
	bl	_mt76_wr
	mov	x0, x21
	bl	_mt7603_wtbl2_addr
	add	w21, w0, #36
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_rr
Lloh21:
	adrp	x8, _MT_WTBL2_W9_SHORT_GI_20@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MT_WTBL2_W9_SHORT_GI_20@GOTPAGEOFF]
Lloh23:
	adrp	x9, _MT_WTBL2_W9_SHORT_GI_40@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MT_WTBL2_W9_SHORT_GI_40@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh27:
	adrp	x11, _MT_WTBL2_W9_SHORT_GI_80@GOTPAGE
Lloh28:
	ldr	x11, [x11, _MT_WTBL2_W9_SHORT_GI_80@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w10, w10, w11
	bic	w10, w0, w10
	ldr	w11, [x20]
Lloh30:
	adrp	x12, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh31:
	ldr	x12, [x12, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	tst	w12, w11
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
Lloh33:
	adrp	x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh34:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w11
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mt76_wr
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_WTBL1_W2_KEY_TYPE,4,2       ; @MT_WTBL1_W2_KEY_TYPE
	.comm	_MT_WTBL1_W2_ADMISSION_CONTROL,4,2 ; @MT_WTBL1_W2_ADMISSION_CONTROL
	.comm	_MT_WTBL1_W2_AMPDU_FACTOR,4,2   ; @MT_WTBL1_W2_AMPDU_FACTOR
	.comm	_MT_WTBL1_W2_MPDU_DENSITY,4,2   ; @MT_WTBL1_W2_MPDU_DENSITY
	.comm	_MT_WTBL1_W2_TXS_BAF_REPORT,4,2 ; @MT_WTBL1_W2_TXS_BAF_REPORT
	.comm	_MT_WTBL1_W2_HT,4,2             ; @MT_WTBL1_W2_HT
	.comm	_MT_WTBL1_W2_VHT,4,2            ; @MT_WTBL1_W2_VHT
	.comm	_MT_WTBL2_W9_SHORT_GI_20,4,2    ; @MT_WTBL2_W9_SHORT_GI_20
	.comm	_MT_WTBL2_W9_SHORT_GI_40,4,2    ; @MT_WTBL2_W9_SHORT_GI_40
	.comm	_MT_WTBL2_W9_SHORT_GI_80,4,2    ; @MT_WTBL2_W9_SHORT_GI_80
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
.subsections_via_symbols
