	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_add_bssid_station       ## -- Begin function iwlagn_add_bssid_station
	.p2align	4, 0x90
_iwlagn_add_bssid_station:              ## @iwlagn_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	%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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_iwl_add_station_common
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_iwl_add_station_common
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_10
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	_IWL_STA_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movq	-48(%rbp), %rdx
	shlq	$4, %rdx
	orl	%eax, 8(%rcx,%rdx)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_iwl_sta_alloc_lq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_iwl_send_lq_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_9:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	8(%r13), %rax
	movq	-48(%rbp), %rcx
	shlq	$4, %rcx
	movq	%rbx, (%rax,%rcx)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_INVALID_STATION,8,3        ## @IWL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to add station %pM\n"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
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	_iwlagn_add_bssid_station       ; -- Begin function iwlagn_add_bssid_station
	.p2align	2
_iwlagn_add_bssid_station:              ; @iwlagn_add_bssid_station
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x3, LBB0_3
; %bb.1:
	mov	x22, x3
Lloh0:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x3]
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, #0
	bl	_iwl_add_station_common
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	b	LBB0_5
LBB0_3:
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x4, #0
	bl	_iwl_add_station_common
	mov	x23, x0
	cbz	w0, LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_bh
Lloh5:
	adrp	x8, _IWL_STA_LOCAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_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_bh
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_sta_alloc_lq
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	bl	_iwl_send_lq_cmd
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_8:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #8]
	lsl	x9, x9, #4
	str	x22, [x8, x9]
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w23, #0
	b	LBB0_10
LBB0_9:
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INVALID_STATION,8,3        ; @IWL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to add station %pM\n"

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

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

.subsections_via_symbols
