	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_process_scan_complete
_iwl_process_scan_complete:             ## @iwl_process_scan_complete
	.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, %r14
	addq	$28, %rdi
	callq	_lockdep_assert_held
	movq	_STATUS_SCAN_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	leaq	24(%r14), %rdi
	callq	_cancel_delayed_work
	movq	_STATUS_SCAN_ABORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
LBB0_3:
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_IWL_SCAN_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, (%r14)
	je	LBB0_11
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.7:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	16(%r14), %esi
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_iwl_scan_initiate
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	jmp	LBB0_12
LBB0_8:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_iwl_complete_scan
LBB0_12:
	movq	%r14, %rdi
	callq	_iwl_is_ready_rf
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwlagn_post_scan               ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SCAN_COMPLETE,4,2       ## @STATUS_SCAN_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Completed scan.\n"

	.comm	_STATUS_SCAN_ABORTING,4,2       ## @STATUS_SCAN_ABORTING
L_.str.1:                               ## @.str.1
	.asciz	"Aborted scan completed.\n"

	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
L_.str.2:                               ## @.str.2
	.asciz	"Scan already completed.\n"

	.comm	_IWL_SCAN_NORMAL,8,3            ## @IWL_SCAN_NORMAL
L_.str.3:                               ## @.str.3
	.asciz	"failed to initiate pending scan: %d\n"

	.no_dead_strip	_iwl_process_scan_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_process_scan_complete
_iwl_process_scan_complete:             ; @iwl_process_scan_complete
	.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, x0
	add	x0, x0, #28
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _STATUS_SCAN_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_SCAN_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #20
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	w0, LBB0_13
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	add	x0, x19, #24
	bl	_cancel_delayed_work
Lloh5:
	adrp	x8, _STATUS_SCAN_ABORTING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS_SCAN_ABORTING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
LBB0_3:
Lloh10:
	adrp	x8, _STATUS_SCANNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATUS_SCANNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _IWL_SCAN_NORMAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IWL_SCAN_NORMAL@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x9]
	cmp	x8, x2
	ccmp	w21, #0, #0, ne
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w1, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_iwl_scan_initiate
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.7:
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	mov	w21, #1
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	b	LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_complete_scan
LBB0_11:
	mov	x0, x19
	bl	_iwl_is_ready_rf
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, 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
	add	sp, sp, #64
	b	_iwlagn_post_scan
LBB0_13:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SCAN_COMPLETE,4,2       ; @STATUS_SCAN_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Completed scan.\n"

	.comm	_STATUS_SCAN_ABORTING,4,2       ; @STATUS_SCAN_ABORTING
l_.str.1:                               ; @.str.1
	.asciz	"Aborted scan completed.\n"

	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
l_.str.2:                               ; @.str.2
	.asciz	"Scan already completed.\n"

	.comm	_IWL_SCAN_NORMAL,8,3            ; @IWL_SCAN_NORMAL
l_.str.3:                               ; @.str.3
	.asciz	"failed to initiate pending scan: %d\n"

	.no_dead_strip	_iwl_process_scan_complete
.subsections_via_symbols
