	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_spectral_scan_trigger
_ath10k_spectral_scan_trigger:          ## @ath10k_spectral_scan_trigger
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_ath10k_get_spectral_vdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	movq	(%rbx), %rdx
	movq	_SPECTRAL_DISABLED@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.3:
	movl	(%rcx), %r14d
	movq	_WMI_SPECTRAL_TRIGGER_CMD_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WMI_SPECTRAL_ENABLE_CMD_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ath10k_wmi_vdev_spectral_enable
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_WMI_SPECTRAL_TRIGGER_CMD_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ath10k_wmi_vdev_spectral_enable
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPECTRAL_DISABLED,8,3          ## @SPECTRAL_DISABLED
	.comm	_WMI_SPECTRAL_TRIGGER_CMD_CLEAR,4,2 ## @WMI_SPECTRAL_TRIGGER_CMD_CLEAR
	.comm	_WMI_SPECTRAL_ENABLE_CMD_ENABLE,4,2 ## @WMI_SPECTRAL_ENABLE_CMD_ENABLE
	.comm	_WMI_SPECTRAL_TRIGGER_CMD_TRIGGER,4,2 ## @WMI_SPECTRAL_TRIGGER_CMD_TRIGGER
	.no_dead_strip	_ath10k_spectral_scan_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_spectral_scan_trigger
_ath10k_spectral_scan_trigger:          ; @ath10k_spectral_scan_trigger
	.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	x19, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_ath10k_get_spectral_vdev
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SPECTRAL_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPECTRAL_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	w20, [x0]
Lloh6:
	adrp	x8, _WMI_SPECTRAL_TRIGGER_CMD_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_SPECTRAL_TRIGGER_CMD_CLEAR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x21, _WMI_SPECTRAL_ENABLE_CMD_ENABLE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _WMI_SPECTRAL_ENABLE_CMD_ENABLE@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_wmi_vdev_spectral_enable
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _WMI_SPECTRAL_TRIGGER_CMD_TRIGGER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_SPECTRAL_TRIGGER_CMD_TRIGGER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_wmi_vdev_spectral_enable
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPECTRAL_DISABLED,8,3          ; @SPECTRAL_DISABLED
	.comm	_WMI_SPECTRAL_TRIGGER_CMD_CLEAR,4,2 ; @WMI_SPECTRAL_TRIGGER_CMD_CLEAR
	.comm	_WMI_SPECTRAL_ENABLE_CMD_ENABLE,4,2 ; @WMI_SPECTRAL_ENABLE_CMD_ENABLE
	.comm	_WMI_SPECTRAL_TRIGGER_CMD_TRIGGER,4,2 ; @WMI_SPECTRAL_TRIGGER_CMD_TRIGGER
	.no_dead_strip	_ath10k_spectral_scan_trigger
.subsections_via_symbols
