	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_clear_ucode_stations       ## -- Begin function iwl_clear_ucode_stations
	.p2align	4, 0x90
_iwl_clear_ucode_stations:              ## @iwl_clear_ucode_stations
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_INFO
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	_IWLAGN_STATION_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movq	_IWL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdx
	movq	8(%r12), %rcx
	cmpq	(%rcx,%r13), %rdx
	jne	LBB0_9
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rsi), %edx
	testl	%edx, 8(%rcx,%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rsi, %r15
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_INFO
	movq	%r15, %rsi
	movl	(%r15), %eax
	notl	%eax
	movq	8(%r12), %rcx
	andl	%eax, 8(%rcx,%r13)
	movq	_IWLAGN_STATION_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_INFO                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Clearing ucode stations in driver\n"

	.comm	_IWLAGN_STATION_COUNT,4,2       ## @IWLAGN_STATION_COUNT
	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ## @IWL_STA_UCODE_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Clearing ucode active for station %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"No active stations found to be cleared\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_clear_ucode_stations       ; -- Begin function iwl_clear_ucode_stations
	.p2align	2
_iwl_clear_ucode_stations:              ; @iwl_clear_ucode_stations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
	mov	x0, x19
	bl	_spin_lock_bh
Lloh2:
	adrp	x22, _IWLAGN_STATION_COUNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IWLAGN_STATION_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_10
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	w26, #0
Lloh4:
	adrp	x25, _IWL_STA_UCODE_ACTIVE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IWL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20]
	ldr	x9, [x19, #8]
	ldr	x11, [x9, x23]
	cmp	x10, x11
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x23
	ldr	w9, [x9, #8]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x24, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_IWL_DEBUG_INFO
	ldr	w8, [x25]
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	ldr	w10, [x9, #8]
	bic	w8, w10, w8
	str	w8, [x9, #8]
	ldr	w8, [x22]
	mov	w26, #1
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	w26, LBB0_11
; %bb.9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_11:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_IWL_DEBUG_INFO
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Clearing ucode stations in driver\n"

	.comm	_IWLAGN_STATION_COUNT,4,2       ; @IWLAGN_STATION_COUNT
	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ; @IWL_STA_UCODE_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Clearing ucode active for station %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"No active stations found to be cleared\n"

.subsections_via_symbols
