	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_process_add_sta_resp
_il_process_add_sta_resp:               ## @il_process_add_sta_resp
	.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, %rcx
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movslq	4(%rdx), %rsi
	movq	_IL_CMD_FAILED_MSK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
	jmp	LBB0_11
LBB0_2:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r15
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_D_INFO
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_D_INFO
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_il_sta_ucode_activate
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.6(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_D_ASSOC
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
LBB0_6:
	movq	%r15, %rsi
	callq	_IL_ERR
LBB0_10:
	movq	8(%r14), %rax
	movq	%r15, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %rcx
	movq	_STA_CONTROL_MODIFY_MSK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.8(%rip), %rcx
	leaq	L_.str.9(%rip), %rbx
	movq	%rbx, %rsi
	cmoveq	%rcx, %rsi
	movl	8(%rax,%r12), %ecx
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_D_INFO
	movq	8(%r14), %rax
	movq	(%rax,%r12), %rax
	movq	_STA_CONTROL_MODIFY_MSK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.8(%rip), %rax
	cmoveq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_D_INFO
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IL_CMD_FAILED_MSK,4,2          ## @IL_CMD_FAILED_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad return from C_ADD_STA (0x%08X)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Processing response for adding station %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"C_ADD_STA PASSED\n"

L_.str.3:                               ## @.str.3
	.asciz	"Adding station %d failed, no room in table.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Adding station %d failed, no block ack resource.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Attempting to modify non-existing station %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Received C_ADD_STA:(0x%08X)\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s station id %u addr %pM\n"

	.comm	_STA_CONTROL_MODIFY_MSK,8,3     ## @STA_CONTROL_MODIFY_MSK
L_.str.8:                               ## @.str.8
	.asciz	"Modified"

L_.str.9:                               ## @.str.9
	.asciz	"Added"

L_.str.10:                              ## @.str.10
	.asciz	"%s station according to cmd buffer %pM\n"

	.no_dead_strip	_il_process_add_sta_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_process_add_sta_resp
_il_process_add_sta_resp:               ; @il_process_add_sta_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldrsw	x1, [x2, #4]
Lloh3:
	adrp	x8, _IL_CMD_FAILED_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IL_CMD_FAILED_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
	b	LBB0_11
LBB0_2:
	mov	x23, x2
	mov	x19, x0
	ldr	x22, [x21]
	str	x22, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w1, [x23]
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	mov	x1, x22
	bl	_il_sta_ucode_activate
	mov	w20, #0
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_D_ASSOC
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
	mov	x1, x22
	bl	_IL_ERR
LBB0_10:
	ldr	x8, [x19, #8]
	lsl	x23, x22, #4
	add	x8, x8, x23
	ldr	x9, [x8]
Lloh22:
	adrp	x24, _STA_CONTROL_MODIFY_MSK@GOTPAGE
Lloh23:
	ldr	x24, [x24, _STA_CONTROL_MODIFY_MSK@GOTPAGEOFF]
Lloh24:
	adrp	x25, l_.str.9@PAGE
Lloh25:
	add	x25, x25, l_.str.9@PAGEOFF
	ldr	x10, [x24]
Lloh26:
	adrp	x26, l_.str.8@PAGE
Lloh27:
	add	x26, x26, l_.str.8@PAGEOFF
	cmp	x9, x10
	csel	x9, x26, x25, eq
	ldr	w8, [x8, #8]
	stp	x22, x8, [sp, #8]
	str	x9, [sp]
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_D_INFO
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	ldr	x9, [x24]
	cmp	x8, x9
	csel	x8, x26, x25, eq
	ldr	w9, [x21, #8]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x0, l_.str.10@PAGE
Lloh31:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IL_CMD_FAILED_MSK,4,2          ; @IL_CMD_FAILED_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad return from C_ADD_STA (0x%08X)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Processing response for adding station %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"C_ADD_STA PASSED\n"

l_.str.3:                               ; @.str.3
	.asciz	"Adding station %d failed, no room in table.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Adding station %d failed, no block ack resource.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Attempting to modify non-existing station %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Received C_ADD_STA:(0x%08X)\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s station id %u addr %pM\n"

	.comm	_STA_CONTROL_MODIFY_MSK,8,3     ; @STA_CONTROL_MODIFY_MSK
l_.str.8:                               ; @.str.8
	.asciz	"Modified"

l_.str.9:                               ; @.str.9
	.asciz	"Added"

l_.str.10:                              ; @.str.10
	.asciz	"%s station according to cmd buffer %pM\n"

	.no_dead_strip	_il_process_add_sta_resp
.subsections_via_symbols
