	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_sta_ucode_activate
_iwl_sta_ucode_activate:                ## @iwl_sta_ucode_activate
	.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	%rsi, %r15
	movq	%rdi, %r14
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	_IWLAGN_STATION_COUNT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax,%r15,8), %ecx
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.3:
	movl	4(%rax,%r15,8), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	(%r14), %rax
	movl	(%rax,%r15,8), %ecx
LBB0_4:
	movq	_IWL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_6
## %bb.5:
	movl	4(%rax,%r15,8), %ecx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	orl	%ecx, %edx
	movl	%edx, (%rax,%r15,8)
	movl	4(%rax,%r15,8), %ecx
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_IWL_DEBUG_ASSOC
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWLAGN_STATION_COUNT,8,3       ## @IWLAGN_STATION_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid sta_id %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ## @IWL_STA_DRIVER_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"ACTIVATE a non DRIVER active station id %u addr %pM\n"

	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ## @IWL_STA_UCODE_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"STA id %u addr %pM already present in uCode (according to driver)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Added STA id %u addr %pM to uCode\n"

	.no_dead_strip	_iwl_sta_ucode_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_sta_ucode_activate
_iwl_sta_ucode_activate:                ; @iwl_sta_ucode_activate
	.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, x1
	mov	x20, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _IWLAGN_STATION_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWLAGN_STATION_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_5
; %bb.1:
	ldr	x8, [x20]
	lsl	x21, x19, #3
	ldr	w9, [x8, x21]
Lloh3:
	adrp	x10, _IWL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IWL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
	add	x8, x8, x21
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_ERR
	ldr	x8, [x20]
	ldr	w9, [x8, x21]
LBB0_3:
Lloh8:
	adrp	x10, _IWL_STA_UCODE_ACTIVE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IWL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	add	x8, x8, x19, lsl #3
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w3, [x8, #4]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_ERR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w3, [x8, #4]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_DEBUG_ASSOC
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IWLAGN_STATION_COUNT,8,3       ; @IWLAGN_STATION_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid sta_id %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ; @IWL_STA_DRIVER_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"ACTIVATE a non DRIVER active station id %u addr %pM\n"

	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ; @IWL_STA_UCODE_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"STA id %u addr %pM already present in uCode (according to driver)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Added STA id %u addr %pM to uCode\n"

	.no_dead_strip	_iwl_sta_ucode_activate
.subsections_via_symbols
