	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_add_bssid_station       ## -- Begin function il4965_add_bssid_station
	.p2align	4, 0x90
_il4965_add_bssid_station:              ## @il4965_add_bssid_station
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_il_add_station_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rax
	movq	%rax, (%r12)
	jmp	LBB0_5
LBB0_1:
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_il_add_station_common
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_IL_ERR
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_IL_STA_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movq	-40(%rbp), %rdx
	shlq	$4, %rdx
	orl	%eax, 8(%rcx,%rdx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_il4965_sta_alloc_lq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_CMD_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_il_send_lq_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	movq	-40(%rbp), %rcx
	shlq	$4, %rcx
	movq	%rbx, (%rax,%rcx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_INVALID_STATION,8,3         ## @IL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to add station %pM\n"

	.comm	_IL_STA_LOCAL,4,2               ## @IL_STA_LOCAL
L_.str.1:                               ## @.str.1
	.asciz	"Unable to initialize rate scaling for station %pM.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_SYNC,4,2                   ## @CMD_SYNC
L_.str.2:                               ## @.str.2
	.asciz	"Link quality command failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_add_bssid_station       ; -- Begin function il4965_add_bssid_station
	.p2align	2
_il4965_add_bssid_station:              ; @il4965_add_bssid_station
	.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	x20, x1
	mov	x19, x0
	cbz	x2, LBB0_3
; %bb.1:
	mov	x22, x2
Lloh0:
	adrp	x8, _IL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_INVALID_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x2]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	bl	_il_add_station_common
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	b	LBB0_5
LBB0_3:
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_il_add_station_common
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _IL_STA_LOCAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IL_STA_LOCAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x10, [sp, #8]
	add	x9, x9, x10, lsl #4
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_il4965_sta_alloc_lq
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
Lloh8:
	adrp	x8, _CMD_SYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_il_send_lq_cmd
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IL_ERR
LBB0_8:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #8]
	lsl	x9, x9, #4
	str	x21, [x8, x9]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w21, #0
	b	LBB0_10
LBB0_9:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IL_ERR
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_INVALID_STATION,8,3         ; @IL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to add station %pM\n"

	.comm	_IL_STA_LOCAL,4,2               ; @IL_STA_LOCAL
l_.str.1:                               ; @.str.1
	.asciz	"Unable to initialize rate scaling for station %pM.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_SYNC,4,2                   ; @CMD_SYNC
l_.str.2:                               ; @.str.2
	.asciz	"Link quality command failed (%d)\n"

.subsections_via_symbols
