	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_rts_thresh     ## -- Begin function mt76x02_mac_set_rts_thresh
	.p2align	4, 0x90
_mt76x02_mac_set_rts_thresh:            ## @mt76x02_mac_set_rts_thresh
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpl	$-1, %esi
	je	LBB0_1
## %bb.2:
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_MT_PROT_CFG_RTS_THRESH@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_MT_TX_RTS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TX_RTS_CFG_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mt76_rmw_field
	movq	_MT_CCK_PROT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_PROT_CFG_CTRL@GOTPCREL(%rip), %r15
	movq	_MT_PROT_CFG_RTS_THRESH@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mt76_rmw
	movq	_MT_OFDM_PROT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_rmw                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_PROT_CFG_CTRL,4,2           ## @MT_PROT_CFG_CTRL
	.comm	_MT_PROT_CFG_RTS_THRESH,4,2     ## @MT_PROT_CFG_RTS_THRESH
	.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_CCK_PROT_CFG,4,2            ## @MT_CCK_PROT_CFG
	.comm	_MT_OFDM_PROT_CFG,4,2           ## @MT_OFDM_PROT_CFG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_set_rts_thresh     ; -- Begin function mt76x02_mac_set_rts_thresh
	.p2align	2
_mt76x02_mac_set_rts_thresh:            ; @mt76x02_mac_set_rts_thresh
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MT_PROT_CFG_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_PROT_CFG_CTRL@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MT_PROT_CFG_RTS_THRESH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MT_PROT_CFG_RTS_THRESH@GOTPAGEOFF]
	cmn	w1, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	mov	w1, #1
	bl	_FIELD_PREP
	ldr	w8, [x23]
	orr	w20, w8, w0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh4:
	adrp	x8, _MT_TX_RTS_CFG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MT_TX_RTS_CFG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _MT_TX_RTS_CFG_THRESH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MT_TX_RTS_CFG_THRESH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_mt76_rmw_field
Lloh10:
	adrp	x8, _MT_CCK_PROT_CFG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_CCK_PROT_CFG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x20
	bl	_mt76_rmw
Lloh13:
	adrp	x8, _MT_OFDM_PROT_CFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT_OFDM_PROT_CFG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mt76_rmw
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_PROT_CFG_CTRL,4,2           ; @MT_PROT_CFG_CTRL
	.comm	_MT_PROT_CFG_RTS_THRESH,4,2     ; @MT_PROT_CFG_RTS_THRESH
	.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_CCK_PROT_CFG,4,2            ; @MT_CCK_PROT_CFG
	.comm	_MT_OFDM_PROT_CFG,4,2           ; @MT_OFDM_PROT_CFG
.subsections_via_symbols
