	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_prep_station               ## -- Begin function iwl_prep_station
	.p2align	4, 0x90
_iwl_prep_station:                      ## @iwl_prep_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %r15
	testl	%ecx, %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	(%rbx), %r13
	jmp	LBB0_12
LBB0_3:
	movq	(%r15), %r13
	movq	%rdx, %r14
	movq	%rdx, %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$8, %rbx
	movq	(%rbx), %r13
	jmp	LBB0_12
LBB0_5:
	movq	_IWL_STA_ID@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_IWLAGN_STATION_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_12
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	leaq	(,%rbx,8), %rcx
	leaq	(%rcx,%rcx,4), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpl	$0, (%rax,%r12)
	cmoveq	%rcx, %r13
	incq	%rbx
	movq	_IWLAGN_STATION_COUNT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$40, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rax,%r12), %edi
	movq	%r14, %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rcx
	cmpq	(%r15), %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rcx
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %r13
LBB0_12:
	xorl	%edi, %edi
	cmpq	(%r15), %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %r12
	leaq	(,%r13,4), %r15
	addq	%r13, %r15
	movl	(%r12,%r15,8), %ecx
	movq	_IWL_STA_UCODE_INPROGRESS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_IWL_DEBUG_INFO
	jmp	LBB0_22
LBB0_15:
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%ecx, %eax
	je	LBB0_19
## %bb.16:
	movq	_IWL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_19
## %bb.17:
	movl	24(%r12,%r15,8), %edi
	movq	%r14, %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_18
## %bb.23:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_IWL_DEBUG_ASSOC
	jmp	LBB0_22
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %r12
	movl	(%rbx), %eax
LBB0_19:
	movl	%eax, (%r12,%r15,8)
	leaq	L_.str.2(%rip), %rsi
	movq	%rdi, %rbx
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_IWL_DEBUG_ASSOC
	incl	(%rbx)
	leaq	(%r12,%r15,8), %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	24(%r12,%r15,8), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	$0, 32(%r12,%r15,8)
	movq	%r13, 16(%r12,%r15,8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %eax
	movl	%eax, 8(%r12,%r15,8)
	movl	16(%rcx), %eax
	movl	%eax, 4(%r12,%r15,8)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:
	movq	(%rdx), %rax
	movq	%rcx, (%rax)
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_iwl_set_ht_add_station
LBB0_22:
	movq	%r13, %rax
	addq	$24, %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
	.comm	_IWL_STA_ID,4,2                 ## @IWL_STA_ID
	.comm	_IWLAGN_STATION_COUNT,4,2       ## @IWLAGN_STATION_COUNT
	.comm	_IWL_STA_UCODE_INPROGRESS,4,2   ## @IWL_STA_UCODE_INPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %d already in process of being added.\n"

	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ## @IWL_STA_DRIVER_ACTIVE
	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ## @IWL_STA_UCODE_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"STA %d (%pM) already added, not adding again.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Add STA to driver ID %d: %pM\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_prep_station               ; -- Begin function iwl_prep_station
	.p2align	2
_iwl_prep_station:                      ; @iwl_prep_station
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _IWL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IWL_INVALID_STATION@GOTPAGEOFF]
	cbz	w3, LBB0_2
; %bb.1:
	mov	x8, x22
	ldr	x19, [x22]
	b	LBB0_9
LBB0_2:
	ldr	x19, [x24]
	mov	x0, x23
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_4
; %bb.3:
	add	x8, x22, #8
	ldr	x19, [x8]
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _IWL_STA_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_STA_ID@GOTPAGEOFF]
Lloh4:
	ldrsw	x25, [x8]
Lloh5:
	adrp	x26, _IWLAGN_STATION_COUNT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _IWLAGN_STATION_COUNT@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w25, w8
	b.ge	LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
	add	x9, x25, x25, lsl #2
	lsl	x27, x9, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x27
	ldr	w0, [x8, #24]
	mov	x1, x23
	bl	_ether_addr_equal
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x8, x27]
	ldr	x10, [x24]
	cmp	x19, x10
	ccmp	w9, #0, #0, eq
	csel	x19, x25, x19, eq
	add	x25, x25, #1
	ldrsw	x9, [x26]
	add	x27, x27, #40
	cmp	x25, x9
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x19, x25
LBB0_9:
	ldr	x8, [x24]
	cmp	x19, x8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.10:
	ldr	x8, [x20, #8]
	mov	w9, #40
	mul	x9, x19, x9
	ldr	w10, [x8, x9]
Lloh7:
	adrp	x9, _IWL_STA_UCODE_INPROGRESS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IWL_STA_UCODE_INPROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.11:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_DEBUG_INFO
	b	LBB0_20
LBB0_12:
Lloh12:
	adrp	x24, _IWL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _IWL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w10
	b.eq	LBB0_17
; %bb.13:
Lloh14:
	adrp	x11, _IWL_STA_UCODE_ACTIVE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IWL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_17
; %bb.14:
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldr	w0, [x8, #24]
	mov	x1, x23
	bl	_ether_addr_equal
	cbz	x0, LBB0_16
; %bb.15:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	bl	_IWL_DEBUG_ASSOC
	b	LBB0_20
LBB0_16:
	ldr	x8, [x20, #8]
	ldr	w9, [x24]
LBB0_17:
	mov	w10, #40
	madd	x24, x19, x10, x8
	str	w9, [x24]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	bl	_IWL_DEBUG_ASSOC
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x0, x24, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x24, #24]
Lloh21:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	str	xzr, [x24, #32]
	str	x19, [x24, #16]
	ldr	d0, [x22, #16]
	stur	d0, [x24, #4]
	cbz	x21, LBB0_19
; %bb.18:
	ldr	x8, [x21]
	str	x22, [x8]
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_iwl_set_ht_add_station
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INVALID_STATION,8,3        ; @IWL_INVALID_STATION
	.comm	_IWL_STA_ID,4,2                 ; @IWL_STA_ID
	.comm	_IWLAGN_STATION_COUNT,4,2       ; @IWLAGN_STATION_COUNT
	.comm	_IWL_STA_UCODE_INPROGRESS,4,2   ; @IWL_STA_UCODE_INPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %d already in process of being added.\n"

	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ; @IWL_STA_DRIVER_ACTIVE
	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ; @IWL_STA_UCODE_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"STA %d (%pM) already added, not adding again.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Add STA to driver ID %d: %pM\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
