	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_check_running_scans
_iwl_mvm_check_running_scans:           ## @iwl_mvm_check_running_scans
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movl	%eax, %r15d
	movl	%ebx, %eax
	andl	$-3, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	testb	$-126, (%r14)
	je	LBB0_3
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_16:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_3:
	movq	%r14, %rdi
	callq	_iwl_mvm_num_scans
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	8(%r14), %rcx
	jge	LBB0_4
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.5:
	cmpl	$130, %ebx
	je	LBB0_12
## %bb.6:
	cmpl	$129, %ebx
	jne	LBB0_15
## %bb.7:
	movq	_IWL_MVM_SCAN_REGULAR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_2
	jmp	LBB0_8
LBB0_10:
	movq	_IWL_MVM_SCAN_SCHED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_2
	jmp	LBB0_11
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.13:
	movl	(%r14), %eax
	movq	_IWL_MVM_SCAN_REGULAR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_11:
	movq	%r14, %rdi
	movl	$129, %esi
	jmp	LBB0_9
LBB0_14:
	movq	_IWL_MVM_SCAN_SCHED_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	movl	$128, %esi
LBB0_9:
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_scan_stop              ## TAILCALL
LBB0_15:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ## @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IWL_MVM_SCAN_REGULAR_MASK,4,2  ## @IWL_MVM_SCAN_REGULAR_MASK
	.comm	_IWL_MVM_SCAN_SCHED_MASK,4,2    ## @IWL_MVM_SCAN_SCHED_MASK
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_iwl_mvm_check_running_scans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_check_running_scans
_iwl_mvm_check_running_scans:           ; @iwl_mvm_check_running_scans
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	mov	x21, x0
	and	w8, w20, #0xfffffffd
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	ldrb	w8, [x19]
	mov	w9, #130
	tst	w8, w9
	b.eq	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_iwl_mvm_num_scans
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ge	LBB0_7
LBB0_5:
	mov	w0, #0
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
LBB0_7:
	cmp	w20, #128
	b.eq	LBB0_11
; %bb.8:
	cmp	w20, #130
	b.eq	LBB0_12
; %bb.9:
	cmp	w20, #129
	b.ne	LBB0_18
; %bb.10:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _IWL_MVM_SCAN_REGULAR_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IWL_MVM_SCAN_REGULAR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_16
LBB0_11:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _IWL_MVM_SCAN_SCHED_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IWL_MVM_SCAN_SCHED_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_14
LBB0_12:
	cbz	w21, LBB0_5
; %bb.13:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _IWL_MVM_SCAN_REGULAR_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IWL_MVM_SCAN_REGULAR_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #129
	b	LBB0_17
LBB0_15:
Lloh14:
	adrp	x9, _IWL_MVM_SCAN_SCHED_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IWL_MVM_SCAN_SCHED_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	w1, #128
LBB0_17:
	mov	w2, #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
	b	_iwl_mvm_scan_stop
LBB0_18:
	mov	w0, #1
	bl	_WARN_ON
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ; @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IWL_MVM_SCAN_REGULAR_MASK,4,2  ; @IWL_MVM_SCAN_REGULAR_MASK
	.comm	_IWL_MVM_SCAN_SCHED_MASK,4,2    ; @IWL_MVM_SCAN_SCHED_MASK
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_iwl_mvm_check_running_scans
.subsections_via_symbols
