	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_set_rts_threshold       ## -- Begin function cw1200_set_rts_threshold
	.p2align	4, 0x90
_cw1200_set_rts_threshold:              ## @cw1200_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	xorl	%ebx, %ebx
	cmpq	$-1, %rsi
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	___cpu_to_le32
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, -32(%rbp)
	movq	8(%r15), %rsi
	cmpq	%r14, %rsi
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_WSM_MIB_ID_DOT11_RTS_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_wsm_write_mib
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, 8(%r15)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[STA] Setting RTS threshold: %d\n"

	.comm	_WSM_MIB_ID_DOT11_RTS_THRESHOLD,4,2 ## @WSM_MIB_ID_DOT11_RTS_THRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_set_rts_threshold       ; -- Begin function cw1200_set_rts_threshold
	.p2align	2
_cw1200_set_rts_threshold:              ; @cw1200_set_rts_threshold
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	cmn	x1, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	___cpu_to_le32
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	str	x0, [sp, #8]
	ldr	x1, [x20, #8]
	cmp	x1, x19
	b.ne	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh5:
	adrp	x8, _WSM_MIB_ID_DOT11_RTS_THRESHOLD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WSM_MIB_ID_DOT11_RTS_THRESHOLD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #8
	bl	_wsm_write_mib
	cbnz	w0, LBB0_6
; %bb.8:
	str	x19, [x20, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[STA] Setting RTS threshold: %d\n"

	.comm	_WSM_MIB_ID_DOT11_RTS_THRESHOLD,4,2 ; @WSM_MIB_ID_DOT11_RTS_THRESHOLD
.subsections_via_symbols
