	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_find_station
_il4965_find_station:                   ## @il4965_find_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	%rsi, %r12
	movq	%rdi, %rbx
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_IL_STA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	28(%rbx), %r14d
	jmp	LBB0_15
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	cmovel	%r14d, %r13d
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	32(%rbx), %eax
	cmpl	%eax, %r13d
	jge	LBB0_9
## %bb.3:
	movslq	%r13d, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	cmpl	$0, (%rcx,%r14,8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rcx,%r14,8), %edi
	movq	%r12, %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%rbx), %eax
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %r13
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_D_ASSOC
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	%r15, %r13
                                        ## kill: def $r14d killed $r14d killed $r14
LBB0_10:
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r14d
	je	LBB0_14
## %bb.11:
	movq	16(%rbx), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,8), %eax
	movq	_IL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_IL_STA_UCODE_INPROGRESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_IL_ERR
	movl	(%r15), %r14d
LBB0_14:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_INVALID_STATION,4,2         ## @IL_INVALID_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_IL_STA_ID,4,2                  ## @IL_STA_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not find STA %pM total %d\n"

	.comm	_IL_STA_UCODE_ACTIVE,4,2        ## @IL_STA_UCODE_ACTIVE
	.comm	_IL_STA_UCODE_INPROGRESS,4,2    ## @IL_STA_UCODE_INPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"Requested station info for sta %d before ready.\n"

	.no_dead_strip	_il4965_find_station
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_find_station
_il4965_find_station:                   ; @il4965_find_station
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _IL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IL_INVALID_STATION@GOTPAGEOFF]
	ldr	w19, [x23]
	ldr	x20, [x0]
Lloh2:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
Lloh5:
	adrp	x8, _IL_STA_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IL_STA_ID@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	x0, x1
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w19, [x21, #28]
	b	LBB0_15
LBB0_2:
	cmp	x20, x24
	csel	w25, w25, wzr, eq
	add	x20, x21, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21, #32]
	cmp	w25, w8
	b.ge	LBB0_8
; %bb.3:
	sxtw	x24, w25
	sbfiz	x25, x25, #3, #32
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x25, x25, #8
	cmp	x24, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	w10, [x9, x25]
	cbz	w10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, x25
	ldr	w0, [x8, #4]
	mov	x1, x22
	bl	_ether_addr_equal
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #32]
	b	LBB0_4
LBB0_8:
	ldr	w2, [x21, #24]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_D_ASSOC
	b	LBB0_10
LBB0_9:
	mov	x19, x24
LBB0_10:
	ldr	w8, [x23]
	cmp	w19, w8
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x21, #16]
	sbfiz	x9, x19, #3, #32
	ldr	w8, [x8, x9]
Lloh10:
	adrp	x9, _IL_STA_UCODE_ACTIVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh13:
	adrp	x9, _IL_STA_UCODE_INPROGRESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IL_STA_UCODE_INPROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_13:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_IL_ERR
	ldr	w19, [x23]
LBB0_14:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_15:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_INVALID_STATION,4,2         ; @IL_INVALID_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_IL_STA_ID,4,2                  ; @IL_STA_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not find STA %pM total %d\n"

	.comm	_IL_STA_UCODE_ACTIVE,4,2        ; @IL_STA_UCODE_ACTIVE
	.comm	_IL_STA_UCODE_INPROGRESS,4,2    ; @IL_STA_UCODE_INPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"Requested station info for sta %d before ready.\n"

	.no_dead_strip	_il4965_find_station
.subsections_via_symbols
