	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_tx_protection  ## -- Begin function mt76x02_mac_set_tx_protection
	.p2align	4, 0x90
_mt76x02_mac_set_tx_protection:         ## @mt76x02_mac_set_tx_protection
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -96(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IEEE80211_HT_OP_MODE_PROTECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, -104(%rbp)                ## 4-byte Spill
	andl	%edx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_MT_CCK_PROT_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_mt76_rr
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.2:
	movq	_MT_CCK_PROT_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	callq	_mt76_rr
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -76(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.3:
	movl	$2, %r14d
	movl	$8, %ebx
	movq	_MT_PROT_CFG_RATE@GOTPCREL(%rip), %r15
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MT_CCK_PROT_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_mt76_rr
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r15), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -80(%rbp,%rbx)
	incq	%r14
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	leaq	-92(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_MT_PROT_CFG_RATE@GOTPCREL(%rip), %r14
	leaq	-92(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MT_TX_PROT_CFG6@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_mt76_rr
	movl	(%r14), %ecx
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -92(%rbp,%rbx)
	incq	%r12
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_8:
	movq	_MT_TX_RTS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TX_RTS_CFG_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_mt76_get_field
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_10
## %bb.9:
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %r10                ## 8-byte Reload
	jne	LBB0_11
	jmp	LBB0_13
LBB0_10:
	movq	_MT_PROT_CTRL_RTS_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -80(%rbp)
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %r10                ## 8-byte Reload
	je	LBB0_12
LBB0_11:
	movq	_MT_PROT_CTRL_CTS2SELF@GOTPCREL(%rip), %rax
	movq	_MT_PROT_RATE_CCK_11@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movdqu	-76(%rbp), %xmm0
	movd	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, %ecx, %xmm1
	pshufd	$84, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,1]
	por	%xmm0, %xmm1
	movdqu	%xmm1, -76(%rbp)
	movl	-60(%rbp), %eax
	orl	%ecx, %eax
	movl	-92(%rbp), %edi
	orl	%ecx, %edi
	movl	%edi, -92(%rbp)
	movl	-88(%rbp), %edx
	orl	%ecx, %edx
	movl	%edx, -88(%rbp)
	orl	-84(%rbp), %ecx
	movl	%eax, -60(%rbp)
	movl	%ecx, -84(%rbp)
	pextrd	$1, %xmm1, %r9d
	pextrd	$2, %xmm1, %ebx
	pextrd	$3, %xmm1, %r8d
	jmp	LBB0_14
LBB0_12:
	orl	%eax, -76(%rbp)
LBB0_13:
	movq	_MT_PROT_RATE_OFDM_24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT_PROT_RATE_DUP_OFDM_24@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movdqu	-72(%rbp), %xmm0
	movd	%edi, %xmm1
	pinsrd	$1, %edx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	por	%xmm0, %xmm1
	movdqu	%xmm1, -72(%rbp)
	orl	-92(%rbp), %edi
	movl	%edi, -92(%rbp)
	orl	-88(%rbp), %edx
	movl	%edx, -88(%rbp)
	movq	_MT_PROT_RATE_SGI_OFDM_24@GOTPCREL(%rip), %rax
	movl	-84(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -84(%rbp)
	movd	%xmm1, %r9d
	pextrd	$1, %xmm1, %ebx
	pextrd	$2, %xmm1, %r8d
	pextrd	$3, %xmm1, %eax
LBB0_14:
	leal	-128(%r10), %esi
	cmpl	$2, %esi
	jae	LBB0_15
## %bb.28:
	movq	_MT_PROT_CTRL_RTS_CTS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, %r9d
	movl	%r9d, -72(%rbp)
	orl	%esi, %ebx
	movl	%ebx, -68(%rbp)
	orl	%esi, %r8d
	movl	%r8d, -64(%rbp)
	orl	%esi, %eax
	movl	%eax, -60(%rbp)
	orl	%esi, %edi
	movl	%edi, -92(%rbp)
	jmp	LBB0_17
LBB0_15:
	cmpl	$130, %r10d
	jne	LBB0_18
## %bb.16:
	movq	_MT_PROT_CTRL_RTS_CTS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, %ebx
	movl	%ebx, -68(%rbp)
	orl	%esi, %eax
	movl	%eax, -60(%rbp)
LBB0_17:
	orl	%esi, %edx
	movl	%edx, -88(%rbp)
	orl	%esi, %ecx
	movl	%ecx, -84(%rbp)
LBB0_18:
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, -104(%rbp)                ## 4-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	_MT_PROT_CTRL_RTS_CTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %r8d
	movl	%r8d, -64(%rbp)
	orl	%ecx, %eax
	movl	%eax, -60(%rbp)
LBB0_20:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	movq	_MT_CCK_PROT_CFG@GOTPCREL(%rip), %r15
	leaq	-80(%rbp), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	-80(%rbp,%rbx), %edx
	movq	%r13, %rdi
	callq	_mt76_wr
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_22
LBB0_23:
	leaq	-92(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	movq	_MT_TX_PROT_CFG6@GOTPCREL(%rip), %r15
	leaq	-92(%rbp), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	-92(%rbp,%rbx), %edx
	movq	%r13, %rdi
	callq	_mt76_wr
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_25
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ## @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT,4,2 ## @IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT
	.comm	_MT_CCK_PROT_CFG,8,3            ## @MT_CCK_PROT_CFG
	.comm	_MT_PROT_CFG_CTRL,4,2           ## @MT_PROT_CFG_CTRL
	.comm	_MT_PROT_CFG_RATE,4,2           ## @MT_PROT_CFG_RATE
	.comm	_MT_TX_PROT_CFG6,8,3            ## @MT_TX_PROT_CFG6
	.comm	_MT_TX_RTS_CFG,4,2              ## @MT_TX_RTS_CFG
	.comm	_MT_TX_RTS_CFG_THRESH,4,2       ## @MT_TX_RTS_CFG_THRESH
	.comm	_MT_PROT_CTRL_RTS_CTS,4,2       ## @MT_PROT_CTRL_RTS_CTS
	.comm	_MT_PROT_CTRL_CTS2SELF,4,2      ## @MT_PROT_CTRL_CTS2SELF
	.comm	_MT_PROT_RATE_CCK_11,4,2        ## @MT_PROT_RATE_CCK_11
	.comm	_MT_PROT_RATE_OFDM_24,4,2       ## @MT_PROT_RATE_OFDM_24
	.comm	_MT_PROT_RATE_DUP_OFDM_24,4,2   ## @MT_PROT_RATE_DUP_OFDM_24
	.comm	_MT_PROT_RATE_SGI_OFDM_24,4,2   ## @MT_PROT_RATE_SGI_OFDM_24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_tx_protection  ; -- Begin function mt76x02_mac_set_tx_protection
	.p2align	2
_mt76x02_mac_set_tx_protection:         ; @mt76x02_mac_set_tx_protection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	add	x0, sp, #32
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x22, _MT_CCK_PROT_CFG@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MT_CCK_PROT_CFG@GOTPAGEOFF]
Lloh11:
	adrp	x26, _MT_PROT_CFG_CTRL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MT_PROT_CFG_CTRL@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x26]
	bic	w8, w0, w8
	str	w8, [sp, #32]
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.le	LBB0_5
; %bb.2:
	ldr	x8, [x22]
	add	x1, x8, #4
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x26]
	bic	w8, w0, w8
	str	w8, [sp, #36]
	add	x23, sp, #32
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	cmp	w0, #3
	b.lt	LBB0_5
; %bb.3:
	mov	w27, #2
	mov	w24, #8
Lloh13:
	adrp	x28, _MT_PROT_CFG_RATE@GOTPAGE
Lloh14:
	ldr	x28, [x28, _MT_PROT_CFG_RATE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x24, x8
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x26]
	ldr	w9, [x28]
	orr	w8, w8, w9
	bic	w8, w0, w8
	str	w8, [x23, x24]
	add	x27, x27, #1
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	add	x24, x24, #4
	cmp	x27, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	add	x27, sp, #20
	add	x0, sp, #20
	bl	_ARRAY_SIZE
Lloh15:
	adrp	x23, _MT_TX_PROT_CFG6@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MT_TX_PROT_CFG6@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x28, #0
	mov	x24, #0
Lloh17:
	adrp	x20, _MT_PROT_CFG_RATE@GOTPAGE
Lloh18:
	ldr	x20, [x20, _MT_PROT_CFG_RATE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x28, x8
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x26]
	ldr	w9, [x20]
	orr	w8, w9, w8
	bic	w8, w0, w8
	str	w8, [x27, x28]
	add	x24, x24, #1
	add	x0, sp, #20
	bl	_ARRAY_SIZE
	add	x28, x28, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	and	w25, w25, w21
Lloh19:
	adrp	x8, _MT_TX_RTS_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT_TX_RTS_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MT_TX_RTS_CFG_THRESH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MT_TX_RTS_CFG_THRESH@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_get_field
	mov	w9, #65535
Lloh25:
	adrp	x8, _MT_PROT_CTRL_RTS_CTS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MT_PROT_CTRL_RTS_CTS@GOTPAGEOFF]
	cmp	w0, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w9, LBB0_11
	b	LBB0_13
LBB0_10:
	ldr	w9, [x8]
	ldr	w10, [sp, #32]
	orr	w10, w10, w9
	str	w10, [sp, #32]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cbz	w10, LBB0_12
LBB0_11:
Lloh27:
	adrp	x9, _MT_PROT_CTRL_CTS2SELF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MT_PROT_CTRL_CTS2SELF@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldp	w10, w11, [sp, #36]
	orr	w9, w10, w9
Lloh30:
	adrp	x10, _MT_PROT_RATE_CCK_11@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MT_PROT_RATE_CCK_11@GOTPAGEOFF]
Lloh32:
	ldr	w14, [x10]
	orr	w12, w11, w14
	stp	w9, w12, [sp, #36]
	ldp	w9, w10, [sp, #44]
	orr	w11, w9, w14
	orr	w9, w10, w14
	stp	w11, w9, [sp, #44]
	ldr	w10, [sp, #52]
	orr	w10, w10, w14
	str	w10, [sp, #52]
	ldp	w13, w16, [sp, #20]
	orr	w15, w13, w14
	orr	w13, w16, w14
	stp	w15, w13, [sp, #20]
	b	LBB0_14
LBB0_12:
	ldr	w10, [sp, #36]
	orr	w9, w10, w9
	str	w9, [sp, #36]
LBB0_13:
Lloh33:
	adrp	x9, _MT_PROT_RATE_OFDM_24@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MT_PROT_RATE_OFDM_24@GOTPAGEOFF]
Lloh35:
	ldr	w13, [x9]
	ldp	w9, w10, [sp, #40]
	orr	w12, w9, w13
Lloh36:
	adrp	x9, _MT_PROT_RATE_DUP_OFDM_24@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MT_PROT_RATE_DUP_OFDM_24@GOTPAGEOFF]
Lloh38:
	ldr	w14, [x9]
	orr	w11, w10, w14
	stp	w12, w11, [sp, #40]
	ldp	w9, w10, [sp, #48]
	orr	w9, w9, w13
	orr	w10, w10, w14
	stp	w9, w10, [sp, #48]
	ldp	w15, w16, [sp, #20]
	orr	w15, w15, w13
	orr	w13, w16, w14
	stp	w15, w13, [sp, #20]
Lloh39:
	adrp	x14, _MT_PROT_RATE_SGI_OFDM_24@GOTPAGE
Lloh40:
	ldr	x14, [x14, _MT_PROT_RATE_SGI_OFDM_24@GOTPAGEOFF]
Lloh41:
	ldr	w14, [x14]
LBB0_14:
	ldr	w16, [sp, #28]
	orr	w14, w16, w14
	str	w14, [sp, #28]
	ldr	w16, [sp, #16]                  ; 4-byte Folded Reload
	and	w16, w16, w21
	sub	w17, w25, #128
	cmp	w17, #2
	b.hs	LBB0_16
; %bb.15:
	ldr	w17, [x8]
	orr	w12, w12, w17
	orr	w11, w11, w17
	stp	w12, w11, [sp, #40]
	orr	w9, w9, w17
	orr	w10, w10, w17
	stp	w9, w10, [sp, #48]
	orr	w11, w15, w17
	str	w11, [sp, #20]
	b	LBB0_18
LBB0_16:
	cmp	w25, #130
	b.ne	LBB0_19
; %bb.17:
	ldr	w17, [x8]
	orr	w11, w11, w17
	orr	w10, w10, w17
	str	w11, [sp, #44]
	str	w10, [sp, #52]
LBB0_18:
	orr	w11, w13, w17
	orr	w12, w14, w17
	stp	w11, w12, [sp, #24]
LBB0_19:
	cbz	w16, LBB0_21
; %bb.20:
	ldr	w8, [x8]
	orr	w9, w9, w8
	orr	w8, w10, w8
	stp	w9, w8, [sp, #48]
LBB0_21:
	add	x20, sp, #32
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x21, #0
	mov	x24, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x21, x8
	ldr	w2, [x20, x21]
	mov	x0, x19
	bl	_mt76_wr
	add	x24, x24, #1
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_23
LBB0_24:
	add	x20, sp, #20
	add	x0, sp, #20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x21, #0
	mov	x22, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x21, x8
	ldr	w2, [x20, x21]
	mov	x0, x19
	bl	_mt76_wr
	add	x22, x22, #1
	add	x0, sp, #20
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_26
LBB0_27:
	ldr	x8, [sp, #56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ; @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT,4,2 ; @IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT
	.comm	_MT_CCK_PROT_CFG,8,3            ; @MT_CCK_PROT_CFG
	.comm	_MT_PROT_CFG_CTRL,4,2           ; @MT_PROT_CFG_CTRL
	.comm	_MT_PROT_CFG_RATE,4,2           ; @MT_PROT_CFG_RATE
	.comm	_MT_TX_PROT_CFG6,8,3            ; @MT_TX_PROT_CFG6
	.comm	_MT_TX_RTS_CFG,4,2              ; @MT_TX_RTS_CFG
	.comm	_MT_TX_RTS_CFG_THRESH,4,2       ; @MT_TX_RTS_CFG_THRESH
	.comm	_MT_PROT_CTRL_RTS_CTS,4,2       ; @MT_PROT_CTRL_RTS_CTS
	.comm	_MT_PROT_CTRL_CTS2SELF,4,2      ; @MT_PROT_CTRL_CTS2SELF
	.comm	_MT_PROT_RATE_CCK_11,4,2        ; @MT_PROT_RATE_CCK_11
	.comm	_MT_PROT_RATE_OFDM_24,4,2       ; @MT_PROT_RATE_OFDM_24
	.comm	_MT_PROT_RATE_DUP_OFDM_24,4,2   ; @MT_PROT_RATE_DUP_OFDM_24
	.comm	_MT_PROT_RATE_SGI_OFDM_24,4,2   ; @MT_PROT_RATE_SGI_OFDM_24
.subsections_via_symbols
