	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_sf_config
_iwl_mvm_sf_config:                     ## @iwl_mvm_sf_config
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	_cpu_to_le32
	movl	%eax, %ebx
	movl	%eax, -40(%rbp)
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SF_CFG_DUMMY_NOTIF_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, %ebx
	movl	%ebx, -40(%rbp)
LBB0_2:
	cmpl	$130, %r15d
	jne	LBB0_5
## %bb.3:
	movq	_IWL_MVM_INVALID_STA@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_ERR
	jmp	LBB0_15
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	%r15d, (%r14)
	je	LBB0_17
## %bb.6:
	cmpl	$129, %r15d
	je	LBB0_8
## %bb.7:
	cmpl	$128, %r15d
	jne	LBB0_14
LBB0_8:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_iwl_mvm_fill_sf_command
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_ERR
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_iwl_mvm_fill_sf_command
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_12:
	movq	_REPLY_SF_CFG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movl	%r15d, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_WARN_ONCE
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SF_CFG_DUMMY_NOTIF_OFF,4,2     ## @SF_CFG_DUMMY_NOTIF_OFF
	.comm	_IWL_MVM_INVALID_STA,8,3        ## @IWL_MVM_INVALID_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No station: Cannot switch SF to FULL_ON\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid station id\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid state: %d. not sending Smart Fifo cmd\n"

	.comm	_REPLY_SF_CFG_CMD,4,2           ## @REPLY_SF_CFG_CMD
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.no_dead_strip	_iwl_mvm_sf_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_sf_config
_iwl_mvm_sf_config:                     ; @iwl_mvm_sf_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _SF_CFG_DUMMY_NOTIF_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SF_CFG_DUMMY_NOTIF_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	orr	w8, w22, w0
	str	w8, [sp, #8]
LBB0_2:
	cmp	w19, #130
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _IWL_MVM_INVALID_STA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_INVALID_STA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
	b	LBB0_16
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.6:
	mov	w0, #0
	b	LBB0_17
LBB0_7:
	bl	_rcu_read_lock
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_rcu_dereference
	mov	x21, x0
	bl	_IS_ERR_OR_NULL
	cbz	w0, LBB0_12
; %bb.8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
	bl	_rcu_read_unlock
	b	LBB0_16
LBB0_9:
	cmp	w19, #129
	b.eq	LBB0_11
; %bb.10:
	cmp	w19, #128
	b.ne	LBB0_15
LBB0_11:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_iwl_mvm_fill_sf_command
	b	LBB0_13
LBB0_12:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_iwl_mvm_fill_sf_command
	bl	_rcu_read_unlock
LBB0_13:
Lloh10:
	adrp	x8, _REPLY_SF_CFG_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REPLY_SF_CFG_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_iwl_mvm_send_cmd_pdu
	cbnz	w0, LBB0_17
; %bb.14:
	str	w19, [x20]
	b	LBB0_17
LBB0_15:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_WARN_ONCE
LBB0_16:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SF_CFG_DUMMY_NOTIF_OFF,4,2     ; @SF_CFG_DUMMY_NOTIF_OFF
	.comm	_IWL_MVM_INVALID_STA,8,3        ; @IWL_MVM_INVALID_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No station: Cannot switch SF to FULL_ON\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid station id\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid state: %d. not sending Smart Fifo cmd\n"

	.comm	_REPLY_SF_CFG_CMD,4,2           ; @REPLY_SF_CFG_CMD
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.no_dead_strip	_iwl_mvm_sf_config
.subsections_via_symbols
