	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_p2p_act_frm_search
_brcmf_p2p_act_frm_search:              ## @brcmf_p2p_act_frm_search
	.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, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	_SOCIAL_CHAN_CNT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_AF_PEER_SEARCH_CNT@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movq	_BRCMU_CHAN_BW_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:
	movq	%r12, -56(%rbp)
	movq	(%r14), %rax
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	*(%rax)
	testq	%r15, %r15
	je	LBB0_23
## %bb.6:
	cmpq	$4, %r15
	jb	LBB0_7
## %bb.10:
	leaq	(%rbx,%r15,8), %rax
	leaq	-56(%rbp), %rcx
	cmpq	%rax, %r12
	setb	%al
	cmpq	%rcx, %rbx
	jae	LBB0_13
## %bb.11:
	testb	%al, %al
	je	LBB0_13
LBB0_7:
	xorl	%eax, %eax
LBB0_19:
	movq	%rax, %rcx
	notq	%rcx
	addq	%r15, %rcx
	movq	%r15, %rdx
	andq	$3, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rsi
	movq	%rsi, (%rbx,%rax,8)
	incq	%rax
	decq	%rdx
	jne	LBB0_20
LBB0_21:
	cmpq	$3, %rcx
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rcx
	movq	%rcx, (%rbx,%rax,8)
	movq	-64(%rbp), %rcx
	movq	%rcx, 8(%rbx,%rax,8)
	movq	-64(%rbp), %rcx
	movq	%rcx, 16(%rbx,%rax,8)
	movq	-64(%rbp), %rcx
	movq	%rcx, 24(%rbx,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	LBB0_22
	jmp	LBB0_23
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_bphy_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_24
LBB0_9:
	movq	_SOCIAL_CHAN_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%r14), %rax
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	*(%rax)
	movq	-64(%rbp), %rax
	movq	%rax, (%rbx)
	movq	_SOCIAL_CHAN_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%r14), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_SOCIAL_CHAN_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%r14), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	-64(%rbp), %rax
	movq	%rax, 16(%rbx)
LBB0_23:
	movq	_WL_P2P_DISC_ST_SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_P2PAPI_BSSCFG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_brcmf_p2p_escan
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
LBB0_24:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rax
	andq	$-4, %rax
	leaq	-4(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$2, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.14:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	movq	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rbx,%rdx,8)
	movdqu	%xmm0, 16(%rbx,%rdx,8)
	movdqu	%xmm0, 32(%rbx,%rdx,8)
	movdqu	%xmm0, 48(%rbx,%rdx,8)
	addq	$8, %rdx
	addq	$-2, %rsi
	jne	LBB0_15
## %bb.16:
	testb	$1, %cl
	je	LBB0_18
LBB0_17:
	movq	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rbx,%rdx,8)
	movdqu	%xmm0, 16(%rbx,%rdx,8)
LBB0_18:
	cmpq	%rax, %r15
	je	LBB0_23
	jmp	LBB0_19
LBB0_25:
	xorl	%edx, %edx
	testb	$1, %cl
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_AF_PEER_SEARCH_CNT,8,3         ## @AF_PEER_SEARCH_CNT
	.comm	_SOCIAL_CHAN_CNT,8,3            ## @SOCIAL_CHAN_CNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"channel list allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BRCMU_CHAN_BW_20,4,2           ## @BRCMU_CHAN_BW_20
	.comm	_SOCIAL_CHAN_1,8,3              ## @SOCIAL_CHAN_1
	.comm	_SOCIAL_CHAN_2,8,3              ## @SOCIAL_CHAN_2
	.comm	_SOCIAL_CHAN_3,8,3              ## @SOCIAL_CHAN_3
	.comm	_WL_P2P_DISC_ST_SEARCH,4,2      ## @WL_P2P_DISC_ST_SEARCH
	.comm	_P2PAPI_BSSCFG_DEVICE,4,2       ## @P2PAPI_BSSCFG_DEVICE
	.no_dead_strip	_brcmf_p2p_act_frm_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_p2p_act_frm_search
_brcmf_p2p_act_frm_search:              ; @brcmf_p2p_act_frm_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh5:
	adrp	x8, _SOCIAL_CHAN_CNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCIAL_CHAN_CNT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _AF_PEER_SEARCH_CNT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_PEER_SEARCH_CNT@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x9, eq
	ldr	x20, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh12:
	adrp	x8, _BRCMU_CHAN_BW_20@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMU_CHAN_BW_20@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	cbz	x22, LBB0_10
; %bb.2:
	str	x22, [sp, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
	cbz	x20, LBB0_11
; %bb.3:
	cmp	x20, #8
	b.lo	LBB0_6
; %bb.4:
	add	x8, x21, x20, lsl #3
	add	x9, sp, #8
	add	x10, x9, #8
	cmp	x9, x8
	cset	w8, lo
	cmp	x21, x10
	b.hs	LBB0_13
; %bb.5:
	tbz	w8, #0, LBB0_13
LBB0_6:
	mov	x8, #0
LBB0_7:
	sub	x9, x20, x8
	add	x8, x21, x8, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [sp, #8]
	str	x10, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_8
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _SOCIAL_CHAN_1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOCIAL_CHAN_1@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #8]
	str	x8, [x21]
Lloh23:
	adrp	x8, _SOCIAL_CHAN_2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOCIAL_CHAN_2@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
Lloh26:
	adrp	x8, _SOCIAL_CHAN_3@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SOCIAL_CHAN_3@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #8]
	str	x8, [x21, #16]
LBB0_11:
Lloh29:
	adrp	x8, _WL_P2P_DISC_ST_SEARCH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WL_P2P_DISC_ST_SEARCH@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _P2PAPI_BSSCFG_DEVICE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _P2PAPI_BSSCFG_DEVICE@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_brcmf_p2p_escan
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
LBB0_12:
	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
	add	sp, sp, #96
	ret
LBB0_13:
	and	x8, x20, #0xfffffffffffffff8
	ld1r.2d	{ v0 }, [x9]
	add	x9, x21, #32
	mov	x10, x8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [sp, #8]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x9, #-32]
	stp	q0, q1, [x9], #64
	subs	x10, x10, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x20, x8
	b.eq	LBB0_11
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_AF_PEER_SEARCH_CNT,8,3         ; @AF_PEER_SEARCH_CNT
	.comm	_SOCIAL_CHAN_CNT,8,3            ; @SOCIAL_CHAN_CNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"channel list allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BRCMU_CHAN_BW_20,4,2           ; @BRCMU_CHAN_BW_20
	.comm	_SOCIAL_CHAN_1,8,3              ; @SOCIAL_CHAN_1
	.comm	_SOCIAL_CHAN_2,8,3              ; @SOCIAL_CHAN_2
	.comm	_SOCIAL_CHAN_3,8,3              ; @SOCIAL_CHAN_3
	.comm	_WL_P2P_DISC_ST_SEARCH,4,2      ; @WL_P2P_DISC_ST_SEARCH
	.comm	_P2PAPI_BSSCFG_DEVICE,4,2       ; @P2PAPI_BSSCFG_DEVICE
	.no_dead_strip	_brcmf_p2p_act_frm_search
.subsections_via_symbols
