	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_set_rts_threshold       ## -- Begin function rt2800_set_rts_threshold
	.p2align	4, 0x90
_rt2800_set_rts_threshold:              ## @rt2800_set_rts_threshold
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_IEEE80211_MAX_RTS_THRESHOLD@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rsi, (%rax)
	movq	(%rdi), %rbx
	setg	%r14b
	movq	_TX_RTS_CFG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_TX_RTS_CFG_RTS_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_rt2x00_set_field32
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_CCK_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_CCK_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_OFDM_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_OFDM_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_MM20_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_MM20_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_MM40_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_MM40_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_GF20_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_GF20_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	_GF40_PROT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	_GF40_PROT_CFG_RTS_TH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_RTS_THRESHOLD,8,3 ## @IEEE80211_MAX_RTS_THRESHOLD
	.comm	_TX_RTS_CFG,4,2                 ## @TX_RTS_CFG
	.comm	_TX_RTS_CFG_RTS_THRES,4,2       ## @TX_RTS_CFG_RTS_THRES
	.comm	_CCK_PROT_CFG,4,2               ## @CCK_PROT_CFG
	.comm	_CCK_PROT_CFG_RTS_TH_EN,4,2     ## @CCK_PROT_CFG_RTS_TH_EN
	.comm	_OFDM_PROT_CFG,4,2              ## @OFDM_PROT_CFG
	.comm	_OFDM_PROT_CFG_RTS_TH_EN,4,2    ## @OFDM_PROT_CFG_RTS_TH_EN
	.comm	_MM20_PROT_CFG,4,2              ## @MM20_PROT_CFG
	.comm	_MM20_PROT_CFG_RTS_TH_EN,4,2    ## @MM20_PROT_CFG_RTS_TH_EN
	.comm	_MM40_PROT_CFG,4,2              ## @MM40_PROT_CFG
	.comm	_MM40_PROT_CFG_RTS_TH_EN,4,2    ## @MM40_PROT_CFG_RTS_TH_EN
	.comm	_GF20_PROT_CFG,4,2              ## @GF20_PROT_CFG
	.comm	_GF20_PROT_CFG_RTS_TH_EN,4,2    ## @GF20_PROT_CFG_RTS_TH_EN
	.comm	_GF40_PROT_CFG,4,2              ## @GF40_PROT_CFG
	.comm	_GF40_PROT_CFG_RTS_TH_EN,4,2    ## @GF40_PROT_CFG_RTS_TH_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_set_rts_threshold       ; -- Begin function rt2800_set_rts_threshold
	.p2align	2
_rt2800_set_rts_threshold:              ; @rt2800_set_rts_threshold
	.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	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _IEEE80211_MAX_RTS_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_RTS_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w20, gt
Lloh3:
	adrp	x22, _TX_RTS_CFG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TX_RTS_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh5:
	adrp	x8, _TX_RTS_CFG_RTS_THRES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_RTS_CFG_RTS_THRES@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x21
	bl	_rt2x00_set_field32
	ldr	w1, [x22]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh8:
	adrp	x21, _CCK_PROT_CFG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CCK_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh10:
	adrp	x8, _CCK_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCK_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh13:
	adrp	x21, _OFDM_PROT_CFG@GOTPAGE
Lloh14:
	ldr	x21, [x21, _OFDM_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh15:
	adrp	x8, _OFDM_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OFDM_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh18:
	adrp	x21, _MM20_PROT_CFG@GOTPAGE
Lloh19:
	ldr	x21, [x21, _MM20_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh20:
	adrp	x8, _MM20_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MM20_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh23:
	adrp	x21, _MM40_PROT_CFG@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MM40_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh25:
	adrp	x8, _MM40_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MM40_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh28:
	adrp	x21, _GF20_PROT_CFG@GOTPAGE
Lloh29:
	ldr	x21, [x21, _GF20_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh30:
	adrp	x8, _GF20_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GF20_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh33:
	adrp	x21, _GF40_PROT_CFG@GOTPAGE
Lloh34:
	ldr	x21, [x21, _GF40_PROT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
Lloh35:
	adrp	x8, _GF40_PROT_CFG_RTS_TH_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GF40_PROT_CFG_RTS_TH_EN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_rt2x00_set_field32
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
	mov	w0, #0
	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	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_RTS_THRESHOLD,8,3 ; @IEEE80211_MAX_RTS_THRESHOLD
	.comm	_TX_RTS_CFG,4,2                 ; @TX_RTS_CFG
	.comm	_TX_RTS_CFG_RTS_THRES,4,2       ; @TX_RTS_CFG_RTS_THRES
	.comm	_CCK_PROT_CFG,4,2               ; @CCK_PROT_CFG
	.comm	_CCK_PROT_CFG_RTS_TH_EN,4,2     ; @CCK_PROT_CFG_RTS_TH_EN
	.comm	_OFDM_PROT_CFG,4,2              ; @OFDM_PROT_CFG
	.comm	_OFDM_PROT_CFG_RTS_TH_EN,4,2    ; @OFDM_PROT_CFG_RTS_TH_EN
	.comm	_MM20_PROT_CFG,4,2              ; @MM20_PROT_CFG
	.comm	_MM20_PROT_CFG_RTS_TH_EN,4,2    ; @MM20_PROT_CFG_RTS_TH_EN
	.comm	_MM40_PROT_CFG,4,2              ; @MM40_PROT_CFG
	.comm	_MM40_PROT_CFG_RTS_TH_EN,4,2    ; @MM40_PROT_CFG_RTS_TH_EN
	.comm	_GF20_PROT_CFG,4,2              ; @GF20_PROT_CFG
	.comm	_GF20_PROT_CFG_RTS_TH_EN,4,2    ; @GF20_PROT_CFG_RTS_TH_EN
	.comm	_GF40_PROT_CFG,4,2              ; @GF40_PROT_CFG
	.comm	_GF40_PROT_CFG_RTS_TH_EN,4,2    ; @GF40_PROT_CFG_RTS_TH_EN
.subsections_via_symbols
