	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_smd_set_sta_params
_wcn36xx_smd_set_sta_params:            ## @wcn36xx_smd_set_sta_params
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_wcn36xx_vif_to_priv
	movq	(%r15), %rdx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_3
## %bb.4:
	movl	$0, (%rbx)
	movq	%rax, %rcx
	addq	$8, %rcx
	jmp	LBB0_5
LBB0_3:
	movl	$1, (%rbx)
	movq	_WCN36XX_HAL_STA_INVALID_IDX@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	%rax, %r14
	movl	(%rcx), %eax
	movl	%eax, 104(%rbx)
	movq	%r13, %rdi
	callq	_WCN36XX_LISTEN_INTERVAL
	movl	%eax, 100(%rbx)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	28(%rbx), %r12
	leaq	24(%rbx), %r13
	cmpq	(%r15), %rax
	movq	%r12, %rdi
	cmoveq	%r13, %rdi
	movq	8(%r15), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	4(%r14), %eax
	movl	%eax, 96(%rbx)
	movl	$1, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movups	%xmm0, 64(%rbx)
	movq	_WCN36XX_HAL_HT_MIMO_PS_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	$0, 48(%rbx)
	movl	(%r14), %eax
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_wcn36xx_sta_to_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	cmoveq	%r12, %r13
	movq	8(%r14), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wcn36xx_smd_set_sta_ht_params
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_7:
	leaq	8(%rbx), %rdi
	callq	_wcn36xx_set_default_rates
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wcn36xx_smd_set_sta_default_ht_params ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_WCN36XX_HAL_STA_INVALID_IDX,4,2 ## @WCN36XX_HAL_STA_INVALID_IDX
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WCN36XX_HAL_HT_MIMO_PS_STATIC,4,2 ## @WCN36XX_HAL_HT_MIMO_PS_STATIC
	.no_dead_strip	_wcn36xx_smd_set_sta_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_smd_set_sta_params
_wcn36xx_smd_set_sta_params:            ; @wcn36xx_smd_set_sta_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	bl	_wcn36xx_vif_to_priv
	mov	x22, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh9:
	adrp	x8, _WCN36XX_HAL_STA_INVALID_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WCN36XX_HAL_STA_INVALID_IDX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	wzr, [x19]
	add	x8, x22, #8
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #104]
	mov	x0, x23
	bl	_WCN36XX_LISTEN_INTERVAL
	str	w0, [x19, #100]
Lloh11:
	adrp	x23, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh12:
	ldr	x23, [x23, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x24, x19, #28
	add	x25, x19, #24
	ldp	x9, x1, [x21]
	cmp	x8, x9
	csel	x0, x25, x24, eq
Lloh13:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_memcpy
	ldr	w8, [x22, #4]
	str	w8, [x19, #96]
	mov	w8, #1
	str	w8, [x19, #4]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #64]
Lloh15:
	adrp	x8, _WCN36XX_HAL_HT_MIMO_PS_STATIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WCN36XX_HAL_HT_MIMO_PS_STATIC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	str	xzr, [x19, #48]
	ldr	w8, [x22]
	str	w8, [x19, #40]
	str	xzr, [x19, #32]
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_wcn36xx_sta_to_priv
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x9, [x21]
	cmp	x8, x9
	csel	x0, x24, x25, eq
	ldr	x1, [x20, #8]
	ldr	w2, [x26]
	bl	_memcpy
	ldr	d0, [x20]
	str	d0, [x19, #16]
	ldr	w8, [x22, #4]
	str	w8, [x19, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_wcn36xx_smd_set_sta_ht_params
	add	x0, x19, #8
	mov	x1, x22
	mov	w2, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memcpy
LBB0_5:
	add	x0, x19, #8
	bl	_wcn36xx_set_default_rates
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wcn36xx_smd_set_sta_default_ht_params
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_WCN36XX_HAL_STA_INVALID_IDX,4,2 ; @WCN36XX_HAL_STA_INVALID_IDX
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WCN36XX_HAL_HT_MIMO_PS_STATIC,4,2 ; @WCN36XX_HAL_HT_MIMO_PS_STATIC
	.no_dead_strip	_wcn36xx_smd_set_sta_params
.subsections_via_symbols
