	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_setup_peer_smps
_ath10k_setup_peer_smps:                ## @ath10k_setup_peer_smps
	.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
	cmpl	$0, 4(%rcx)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_IEEE80211_HT_CAP_SM_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rcx), %ebx
	movq	_IEEE80211_HT_CAP_SM_PS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_ath10k_smps_map@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.5:
	movl	(%r12), %esi
	movq	_WMI_PEER_SMPS_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r13), %rax
	movslq	%ebx, %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_wmi_peer_set_param      ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_CAP_SM_PS,4,2     ## @IEEE80211_HT_CAP_SM_PS
	.comm	_IEEE80211_HT_CAP_SM_PS_SHIFT,4,2 ## @IEEE80211_HT_CAP_SM_PS_SHIFT
	.comm	_ath10k_smps_map,8,3            ## @ath10k_smps_map
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WMI_PEER_SMPS_STATE,4,2        ## @WMI_PEER_SMPS_STATE
	.no_dead_strip	_ath10k_setup_peer_smps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_setup_peer_smps
_ath10k_setup_peer_smps:                ; @ath10k_setup_peer_smps
	.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
	ldr	w8, [x3, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _IEEE80211_HT_CAP_SM_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SM_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_HT_CAP_SM_PS_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SM_PS_SHIFT@GOTPAGEOFF]
	and	w8, w9, w8
Lloh5:
	ldr	w9, [x10]
	asr	w22, w8, w9
Lloh6:
	adrp	x23, _ath10k_smps_map@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ath10k_smps_map@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_4
; %bb.2:
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _WMI_PEER_SMPS_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_PEER_SMPS_STATE@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w4, [x9, w22, sxtw #2]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	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	_ath10k_wmi_peer_set_param
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_CAP_SM_PS,4,2     ; @IEEE80211_HT_CAP_SM_PS
	.comm	_IEEE80211_HT_CAP_SM_PS_SHIFT,4,2 ; @IEEE80211_HT_CAP_SM_PS_SHIFT
	.comm	_ath10k_smps_map,8,3            ; @ath10k_smps_map
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WMI_PEER_SMPS_STATE,4,2        ; @WMI_PEER_SMPS_STATE
	.no_dead_strip	_ath10k_setup_peer_smps
.subsections_via_symbols
