	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_flowring_lookup          ## -- Begin function brcmf_flowring_lookup
	.p2align	4, 0x90
_brcmf_flowring_lookup:                 ## @brcmf_flowring_lookup
	.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, %r15
	movq	%rdi, %r12
	movq	_brcmf_flowring_prio2fifo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	_ADDR_INDIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	cmpq	$0, 16(%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_brcmf_flowring_is_tdls_mac
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BRCMF_FLOWRING_HASH_STA
	movb	$1, %sil
	jmp	LBB0_7
LBB0_1:
	movq	%r15, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ALLFFMAC@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_3:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BRCMF_FLOWRING_HASH_AP
	xorl	%esi, %esi
LBB0_7:
	movq	_BRCMF_FLOWRING_HASHSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	movq	_BRCMF_FLOWRING_INVALID_ID@GOTPCREL(%rip), %rcx
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.8:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rbx
	decl	%r14d
	andl	%eax, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r12,%r12,2), %rax
	movl	20(%rbx,%rax,8), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%esi, %r15d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcmp
	movl	%r15d, %esi
	movq	_BRCMF_FLOWRING_HASHSIZE@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r14d
	movl	(%rdx), %eax
	leal	-1(%rax), %ecx
	andl	%ecx, %r14d
	incl	%r13d
	cmpl	%eax, %r13d
	jge	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r12
	testb	%sil, %sil
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r12,%r12,2), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rbx,%rax,8)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 8(%rbx,%rax,8)
	jne	LBB0_13
## %bb.15:
	leaq	(%rbx,%rax,8), %rcx
	addq	$16, %rcx
	jmp	LBB0_16
LBB0_14:
	movq	_BRCMF_FLOWRING_INVALID_ID@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_brcmf_flowring_prio2fifo,8,3   ## @brcmf_flowring_prio2fifo
	.comm	_ADDR_INDIRECT,8,3              ## @ADDR_INDIRECT
	.comm	_ALLFFMAC,8,3                   ## @ALLFFMAC
	.comm	_BRCMF_FLOWRING_HASHSIZE,4,2    ## @BRCMF_FLOWRING_HASHSIZE
	.comm	_BRCMF_FLOWRING_INVALID_ID,4,2  ## @BRCMF_FLOWRING_INVALID_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_flowring_lookup          ; -- Begin function brcmf_flowring_lookup
	.p2align	2
_brcmf_flowring_lookup:                 ; @brcmf_flowring_lookup
	.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	x19, x3
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _brcmf_flowring_prio2fifo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _brcmf_flowring_prio2fifo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8, x2, lsl #3]
	ldr	x8, [x0]
	ldr	x8, [x8, x3, lsl #3]
Lloh3:
	adrp	x9, _ADDR_INDIRECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADDR_INDIRECT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_brcmf_flowring_is_tdls_mac
	cbnz	x0, LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_BRCMF_FLOWRING_HASH_STA
	mov	w23, #1
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, #0
Lloh6:
	adrp	x8, _ALLFFMAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALLFFMAC@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_BRCMF_FLOWRING_HASH_AP
	mov	w23, #0
LBB0_7:
Lloh9:
	adrp	x24, _BRCMF_FLOWRING_HASHSIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BRCMF_FLOWRING_HASHSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	subs	w8, w8, #1
	b.lt	LBB0_15
; %bb.8:
	mov	w26, #0
	ldr	x25, [x22, #8]
	and	w8, w8, w0
	mov	w27, #24
Lloh11:
	adrp	x28, _ETH_ALEN@GOTPAGE
Lloh12:
	ldr	x28, [x28, _ETH_ALEN@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	madd	x8, x22, x27, x25
	ldr	w0, [x8, #20]
	ldr	w2, [x28]
	mov	x1, x20
	bl	_memcmp
	cbz	x0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w22, #1
	ldr	w9, [x24]
	sub	w10, w9, #1
	and	w8, w10, w8
	add	w26, w26, #1
	cmp	w26, w9
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x22, w8
	tbz	w23, #0, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_11 Depth=1
	mul	x8, x22, x27
	ldr	x8, [x25, x8]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	madd	x8, x22, x27, x25
	ldr	x8, [x8, #8]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.14:
	mov	w8, #24
	madd	x8, x22, x8, x25
	add	x8, x8, #16
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x8, _BRCMF_FLOWRING_INVALID_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BRCMF_FLOWRING_INVALID_ID@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_brcmf_flowring_prio2fifo,8,3   ; @brcmf_flowring_prio2fifo
	.comm	_ADDR_INDIRECT,8,3              ; @ADDR_INDIRECT
	.comm	_ALLFFMAC,8,3                   ; @ALLFFMAC
	.comm	_BRCMF_FLOWRING_HASHSIZE,4,2    ; @BRCMF_FLOWRING_HASHSIZE
	.comm	_BRCMF_FLOWRING_INVALID_ID,4,2  ; @BRCMF_FLOWRING_INVALID_ID
.subsections_via_symbols
