	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_update_smps            ## -- Begin function iwl_mvm_update_smps
	.p2align	4, 0x90
_iwl_mvm_update_smps:                   ## @iwl_mvm_update_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_iwl_mvm_get_valid_rx_ant
	movl	%eax, %edi
	callq	_num_of_ant
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IEEE80211_SMPS_AUTOMATIC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	(%rax), %r8
	movl	%r12d, %eax
	movl	%r15d, (%r8,%rax,4)
	movq	_NUM_IWL_MVM_SMPS_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.5:
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IEEE80211_SMPS_DYNAMIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r8,%rdi,4), %rax
	cmpq	%rax, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rax, %rsi
	cmovel	%esi, %ebx
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movl	%edx, %ebx
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_request_smps         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_IEEE80211_SMPS_OFF,4,2         ## @IEEE80211_SMPS_OFF
	.comm	_IEEE80211_SMPS_AUTOMATIC,4,2   ## @IEEE80211_SMPS_AUTOMATIC
	.comm	_NUM_IWL_MVM_SMPS_REQ,4,2       ## @NUM_IWL_MVM_SMPS_REQ
	.comm	_IEEE80211_SMPS_STATIC,8,3      ## @IEEE80211_SMPS_STATIC
	.comm	_IEEE80211_SMPS_DYNAMIC,8,3     ## @IEEE80211_SMPS_DYNAMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_update_smps            ; -- Begin function iwl_mvm_update_smps
	.p2align	2
_iwl_mvm_update_smps:                   ; @iwl_mvm_update_smps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_iwl_mvm_get_valid_rx_ant
	bl	_num_of_ant
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _IEEE80211_SMPS_AUTOMATIC@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IEEE80211_SMPS_AUTOMATIC@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	mov	x0, x19
	bl	_iwl_mvm_vif_from_mac80211
	ldr	x8, [x0]
	str	w21, [x8, w22, uxtw #2]
Lloh7:
	adrp	x9, _NUM_IWL_MVM_SMPS_REQ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NUM_IWL_MVM_SMPS_REQ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
Lloh10:
	adrp	x10, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _IEEE80211_SMPS_DYNAMIC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IEEE80211_SMPS_DYNAMIC@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x8]
	cmp	x10, x12
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x12
	csel	w20, w11, w20, eq
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x20, x10
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ieee80211_request_smps
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_IEEE80211_SMPS_OFF,4,2         ; @IEEE80211_SMPS_OFF
	.comm	_IEEE80211_SMPS_AUTOMATIC,4,2   ; @IEEE80211_SMPS_AUTOMATIC
	.comm	_NUM_IWL_MVM_SMPS_REQ,4,2       ; @NUM_IWL_MVM_SMPS_REQ
	.comm	_IEEE80211_SMPS_STATIC,8,3      ; @IEEE80211_SMPS_STATIC
	.comm	_IEEE80211_SMPS_DYNAMIC,8,3     ; @IEEE80211_SMPS_DYNAMIC
.subsections_via_symbols
