	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_set_btcoexinfo
_cw1200_set_btcoexinfo:                 ## @cw1200_set_btcoexinfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rcx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	callq	_cw1200_upload_pspoll
	movq	%rbx, %rdi
	callq	_cw1200_upload_null
	movq	%rbx, %rdi
	callq	_cw1200_upload_qosnull
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	movl	8(%rbx), %edi
	je	LBB0_2
## %bb.6:
	andl	$-16, %edi
	callq	___ffs
	movq	%rax, -16(%rbp)
	movl	8(%rbx), %edi
	andl	$-16, %edi
	jmp	LBB0_7
LBB0_2:
	cmpl	$16, %edi
	jae	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %edi
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	8(%rbx), %edi
	andl	$-16, %edi
LBB0_5:
	callq	___ffs
	movq	%rax, -16(%rbp)
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %edi
LBB0_7:
	callq	___ffs
	movq	%rax, %rcx
	movq	%rax, -24(%rbp)
	movq	(%rbx), %rsi
	movq	-16(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$16, %ecx
	callq	_wsm_write_mib
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[STA] STA has ERP rates\n"

L_.str.1:                               ## @.str.1
	.asciz	"[STA] STA has non ERP rates\n"

L_.str.2:                               ## @.str.2
	.asciz	"[STA] BTCOEX_INFO MODE %d, internalTxRate : %x, nonErpInternalTxRate: %x\n"

	.comm	_WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE,4,2 ## @WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE
	.no_dead_strip	_cw1200_set_btcoexinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_set_btcoexinfo
_cw1200_set_btcoexinfo:                 ; @cw1200_set_btcoexinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_cw1200_upload_pspoll
	mov	x0, x19
	bl	_cw1200_upload_null
	mov	x0, x19
	bl	_cw1200_upload_qosnull
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldr	w8, [x19, #8]
	cbz	w9, LBB0_4
; %bb.2:
	and	w0, w8, #0xfffffff0
	bl	___ffs
	str	x0, [sp, #40]
	ldr	w8, [x19, #8]
	and	w0, w8, #0xfffffff0
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	cmp	w8, #16
	b.hs	LBB0_6
; %bb.5:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #8]
	and	w0, w8, #0xfffffff0
LBB0_7:
	bl	___ffs
	str	x0, [sp, #40]
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
LBB0_8:
	bl	___ffs
	str	x0, [sp, #32]
	ldr	x8, [x19]
	ldr	x9, [sp, #40]
	stp	x9, x0, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
Lloh9:
	adrp	x8, _WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #16
	bl	_wsm_write_mib
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[STA] STA has ERP rates\n"

l_.str.1:                               ; @.str.1
	.asciz	"[STA] STA has non ERP rates\n"

l_.str.2:                               ; @.str.2
	.asciz	"[STA] BTCOEX_INFO MODE %d, internalTxRate : %x, nonErpInternalTxRate: %x\n"

	.comm	_WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE,4,2 ; @WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE
	.no_dead_strip	_cw1200_set_btcoexinfo
.subsections_via_symbols
