	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_add_bssid_station
_il3945_add_bssid_station:              ## @il3945_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
	callq	_IL_ERR
	jmp	LBB0_6
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
	orl	%eax, (%rcx,%rdx,4)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
LBB0_6:
	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
	.no_dead_strip	_il3945_add_bssid_station
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_add_bssid_station
_il3945_add_bssid_station:              ; @il3945_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	x21, 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	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	b	LBB0_5
LBB0_3:
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_il_add_station_common
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_IL_ERR
	b	LBB0_6
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]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	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
	.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
	.no_dead_strip	_il3945_add_bssid_station
.subsections_via_symbols
