	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_p2p_send_action_frame    ## -- Begin function brcmf_p2p_send_action_frame
	.p2align	4, 0x90
_brcmf_p2p_send_action_frame:           ## @brcmf_p2p_send_action_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %rbx
	leaq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	16(%r12), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_brcmf_p2p_print_actframe
	movq	_P2P_AF_DWELL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	16(%r12), %rdi
	movq	_DOT11_ACTION_CAT_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi,%rax,8), %r13
	movq	_DOT11_ACTION_ACT_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi,%rax,8), %r15
	movq	_P2P_PAF_SUBTYPE_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 24(%rbx)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, -80(%rbp)
	movl	$0, -72(%rbp)
	movl	%r14d, %esi
	callq	_brcmf_p2p_is_pub_action
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_brcmf_p2p_pub_af_tx
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_3
LBB0_16:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	movl	%r14d, %esi
	callq	_brcmf_p2p_is_gas_action
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	movq	_P2PSD_ACTION_ID_GAS_IREQ@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rax), %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movq	_P2PSD_ACTION_ID_GAS_CREQ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_19
## %bb.20:
	movq	_P2PSD_ACTION_ID_GAS_IRESP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_22
## %bb.21:
	movq	_P2PSD_ACTION_ID_GAS_CRESP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_22
## %bb.24:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_25
LBB0_26:
	movq	16(%r12), %rdi
	movl	%r14d, %esi
	callq	_brcmf_p2p_is_p2p_action
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_3
## %bb.27:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_53
LBB0_19:
	movl	$1, -76(%rbp)
	incq	%rdx
	movq	%rdx, (%r15)
	movq	_P2P_AF_MED_DWELL_TIME@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_P2P_AF_MIN_DWELL_TIME@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
LBB0_3:
	movq	_BRCMF_VIF_STATUS_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	96(%rbx), %rax
	movq	_P2PAPI_BSSCFG_PRIMARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$50, %edi
	callq	_msleep
LBB0_5:
	movq	_BRCMF_SCAN_STATUS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_brcmf_abort_scanning
LBB0_7:
	movl	88(%rbx), %edi
	movl	24(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	cmpl	$0, -80(%rbp)
	jne	LBB0_9
## %bb.8:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_brcmf_set_mpc
LBB0_9:
	movq	(%r15), %rax
	movq	_P2P_PAF_SUBTYPE_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %rsi
	callq	_set_bit
LBB0_11:
	movq	$0, 32(%rbx)
	movq	_BRCMF_P2P_STATUS_SENDING_ACT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	cmpl	$0, -76(%rbp)
	je	LBB0_29
## %bb.12:
	movq	8(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rax, %rdi
	callq	_IS_P2P_SOCIAL_CHANNEL
	testq	%rax, %rax
	je	LBB0_29
## %bb.13:
	movq	96(%rbx), %rax
	movq	_P2PAPI_BSSCFG_DEVICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.14:
	movq	8(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rax, 80(%rbx)
	movq	%r15, %rdi
	callq	_brcmf_p2p_af_searching_channel
	movq	_P2P_INVALID_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_25:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_39
LBB0_28:
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	movl	$1, %ecx
	callq	_brcmf_notify_escan_complete
	movl	72(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r12)
LBB0_29:
	cmpl	$0, 40(%rbx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_30
## %bb.32:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_P2P_AF_TX_MAX_RETRY@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	movl	$0, %r14d
	jle	LBB0_31
## %bb.33:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_brcmf_p2p_tx_action_frame
	incq	%r14
	cmpl	$0, 40(%rbx)
	jne	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpq	(%r13), %r14
	jl	LBB0_34
LBB0_37:
	testl	%eax, %eax
	jne	LBB0_31
## %bb.38:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %r14b
	jmp	LBB0_39
LBB0_30:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_31:
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	_BRCMF_P2P_STATUS_GO_NEG_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
	xorl	%r14d, %r14d
LBB0_39:
	movq	_BRCMF_P2P_STATUS_SENDING_ACT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %r13
	movq	%r13, %rsi
	callq	_clear_bit
	testb	%r14b, %r14b
	je	LBB0_49
## %bb.40:
	cmpl	$0, -72(%rbp)
	je	LBB0_49
## %bb.41:
	cmpl	$0, 40(%rbx)
	je	LBB0_42
LBB0_49:
	cmpl	$0, 40(%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_51
## %bb.50:
	movl	$0, 40(%rbx)
	movl	$1, %r14d
LBB0_51:
	movq	_BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	cmpl	$1, -80(%rbp)
	jne	LBB0_53
## %bb.52:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_brcmf_set_mpc
LBB0_53:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movq	_BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_49
## %bb.43:
	movq	32(%rbx), %rax
	cmpq	64(%rbx), %rax
	jne	LBB0_49
## %bb.44:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	56(%rbx), %rdi
	callq	_jiffies_to_msecs
	movq	%rax, %r14
	movq	(%r12), %rdi
	callq	_le32_to_cpu
	cmpq	%r14, %rax
	jle	LBB0_49
## %bb.45:
	movq	(%r12), %rdi
	callq	_le32_to_cpu
	subq	%r14, %rax
	cmpq	$51, %rax
	jl	LBB0_49
## %bb.46:
	movq	%rax, %r14
	movq	_BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.5(%rip), %rsi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_brcmf_dbg
	leaq	100(%r14), %rdx
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_brcmf_p2p_discover_listen
	testl	%eax, %eax
	jne	LBB0_48
## %bb.47:
	addq	$200, %r14
	movq	%r14, %rdi
	callq	_msecs_to_jiffies
	leaq	48(%rbx), %rdi
	movq	%rax, %rsi
	callq	_wait_for_completion_timeout
LBB0_48:
	movq	_BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	jmp	LBB0_49
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_AF_DWELL_TIME,4,2          ## @P2P_AF_DWELL_TIME
	.comm	_DOT11_ACTION_CAT_OFF,8,3       ## @DOT11_ACTION_CAT_OFF
	.comm	_DOT11_ACTION_ACT_OFF,8,3       ## @DOT11_ACTION_ACT_OFF
	.comm	_P2P_PAF_SUBTYPE_INVALID,8,3    ## @P2P_PAF_SUBTYPE_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P Public action frame, unknown subtype.\n"

	.comm	_P2PSD_ACTION_ID_GAS_IREQ,8,3   ## @P2PSD_ACTION_ID_GAS_IREQ
	.comm	_P2PSD_ACTION_ID_GAS_CREQ,8,3   ## @P2PSD_ACTION_ID_GAS_CREQ
	.comm	_P2P_AF_MED_DWELL_TIME,4,2      ## @P2P_AF_MED_DWELL_TIME
	.comm	_P2PSD_ACTION_ID_GAS_IRESP,8,3  ## @P2PSD_ACTION_ID_GAS_IRESP
	.comm	_P2PSD_ACTION_ID_GAS_CRESP,8,3  ## @P2PSD_ACTION_ID_GAS_CRESP
	.comm	_P2P_AF_MIN_DWELL_TIME,4,2      ## @P2P_AF_MIN_DWELL_TIME
L_.str.1:                               ## @.str.1
	.asciz	"Unknown action type: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown Frame: category 0x%x, action 0x%x\n"

	.comm	_BRCMF_VIF_STATUS_CONNECTING,4,2 ## @BRCMF_VIF_STATUS_CONNECTING
	.comm	_P2PAPI_BSSCFG_PRIMARY,8,3      ## @P2PAPI_BSSCFG_PRIMARY
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ## @BRCMF_SCAN_STATUS_BUSY
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME,4,2 ## @BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME
	.comm	_BRCMF_P2P_STATUS_SENDING_ACT_FRAME,4,2 ## @BRCMF_P2P_STATUS_SENDING_ACT_FRAME
	.comm	_P2PAPI_BSSCFG_DEVICE,8,3       ## @P2PAPI_BSSCFG_DEVICE
	.comm	_P2P_INVALID_CHANNEL,8,3        ## @P2P_INVALID_CHANNEL
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't find peer's channel.\n"

	.comm	_P2P_AF_TX_MAX_RETRY,8,3        ## @P2P_AF_TX_MAX_RETRY
L_.str.4:                               ## @.str.4
	.asciz	"Failed to send Action Frame(retry %d)\n"

	.comm	_BRCMF_P2P_STATUS_GO_NEG_PHASE,4,2 ## @BRCMF_P2P_STATUS_GO_NEG_PHASE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN,4,2 ## @BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN
	.comm	_INFO,4,2                       ## @INFO
L_.str.5:                               ## @.str.5
	.asciz	"Wait more time! actual af time:%d, calculated extra listen:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_p2p_send_action_frame    ; -- Begin function brcmf_p2p_send_action_frame
	.p2align	2
_brcmf_p2p_send_action_frame:           ; @brcmf_p2p_send_action_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x23, [x20, #8]
	ldr	w0, [x21, #28]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x1, [x21, #16]
	mov	w0, #1
	mov	x2, x24
	bl	_brcmf_p2p_print_actframe
Lloh0:
	adrp	x8, _P2P_AF_DWELL_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_AF_DWELL_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x9, _DOT11_ACTION_CAT_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DOT11_ACTION_CAT_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x27, [x8, x9, lsl #3]
Lloh6:
	adrp	x9, _DOT11_ACTION_ACT_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DOT11_ACTION_ACT_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x28, [x8, x9, lsl #3]
Lloh9:
	adrp	x26, _P2P_PAF_SUBTYPE_INVALID@GOTPAGE
Lloh10:
	ldr	x26, [x26, _P2P_PAF_SUBTYPE_INVALID@GOTPAGEOFF]
	ldr	x9, [x26]
	mov	x22, x20
	str	x9, [x22, #16]!
	str	x0, [x21]
	str	wzr, [x22, #8]
	movi	d0, #0x000000ffffffff
	str	d0, [sp, #32]
	str	wzr, [sp, #40]
	mov	x0, x8
	mov	x1, x24
	bl	_brcmf_p2p_is_pub_action
Lloh11:
	adrp	x19, _BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME@GOTPAGE
Lloh12:
	ldr	x19, [x19, _BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME@GOTPAGEOFF]
Lloh13:
	adrp	x25, _BRCMF_P2P_STATUS_SENDING_ACT_FRAME@GOTPAGE
Lloh14:
	ldr	x25, [x25, _BRCMF_P2P_STATUS_SENDING_ACT_FRAME@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x21
	bl	_brcmf_p2p_pub_af_tx
	cbz	x0, LBB0_11
; %bb.2:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_11
LBB0_3:
	ldr	x0, [x21, #16]
	mov	x1, x24
	bl	_brcmf_p2p_is_gas_action
	cbz	x0, LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _P2PSD_ACTION_ID_GAS_IREQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _P2PSD_ACTION_ID_GAS_IREQ@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _P2PSD_ACTION_ID_GAS_CREQ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _P2PSD_ACTION_ID_GAS_CREQ@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x28, x8
	ccmp	x28, x9, #4, ne
	b.ne	LBB0_8
; %bb.5:
	mov	w8, #1
	str	w8, [sp, #36]
	add	x8, x28, #1
	str	x8, [x22]
Lloh23:
	adrp	x8, _P2P_AF_MED_DWELL_TIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _P2P_AF_MED_DWELL_TIME@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x0, [x21, #16]
	mov	x1, x24
	bl	_brcmf_p2p_is_p2p_action
	cbnz	x0, LBB0_11
; %bb.7:
	stp	x27, x28, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	mov	w23, #0
	b	LBB0_42
LBB0_8:
Lloh27:
	adrp	x8, _P2PSD_ACTION_ID_GAS_IRESP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _P2PSD_ACTION_ID_GAS_IRESP@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _P2PSD_ACTION_ID_GAS_CRESP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _P2PSD_ACTION_ID_GAS_CRESP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x28, x8
	ccmp	x28, x9, #4, ne
	b.ne	LBB0_32
; %bb.9:
Lloh33:
	adrp	x8, _P2P_AF_MIN_DWELL_TIME@GOTPAGE
Lloh34:
	ldr	x8, [x8, _P2P_AF_MIN_DWELL_TIME@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x21]
LBB0_11:
Lloh35:
	adrp	x8, _BRCMF_VIF_STATUS_CONNECTING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BRCMF_VIF_STATUS_CONNECTING@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x8, [x20, #96]
Lloh38:
	adrp	x9, _P2PAPI_BSSCFG_PRIMARY@GOTPAGE
Lloh39:
	ldr	x9, [x9, _P2PAPI_BSSCFG_PRIMARY@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #50
	bl	_msleep
LBB0_13:
Lloh41:
	adrp	x8, _BRCMF_SCAN_STATUS_BUSY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BRCMF_SCAN_STATUS_BUSY@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_brcmf_abort_scanning
LBB0_15:
	ldr	w0, [x20, #88]
	ldr	w1, [x21, #24]
Lloh44:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_17
; %bb.16:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_brcmf_set_mpc
LBB0_17:
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.18:
	ldr	w0, [x19]
	add	x1, x20, #44
	bl	_set_bit
LBB0_19:
	str	xzr, [x20, #32]
	ldr	w0, [x25]
	add	x24, x20, #44
	mov	x1, x24
	bl	_set_bit
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_25
; %bb.20:
	ldr	x0, [x21, #8]
	bl	_le32_to_cpu
	bl	_IS_P2P_SOCIAL_CHANNEL
	cbz	x0, LBB0_25
; %bb.21:
	ldr	x8, [x20, #96]
Lloh47:
	adrp	x9, _P2PAPI_BSSCFG_DEVICE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _P2PAPI_BSSCFG_DEVICE@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.22:
	ldr	x0, [x21, #8]
	bl	_le32_to_cpu
	str	x0, [x20, #80]
	mov	x0, x22
	bl	_brcmf_p2p_af_searching_channel
Lloh50:
	adrp	x8, _P2P_INVALID_CHANNEL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _P2P_INVALID_CHANNEL@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.23:
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_24:
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #1
	mov	w3, #1
	bl	_brcmf_notify_escan_complete
	ldr	w0, [x20, #72]
	bl	_cpu_to_le32
	str	x0, [x21, #8]
LBB0_25:
	mov	x26, #0
	ldr	w8, [x20, #40]
	cbnz	w8, LBB0_30
; %bb.26:
Lloh55:
	adrp	x27, _P2P_AF_TX_MAX_RETRY@GOTPAGE
Lloh56:
	ldr	x27, [x27, _P2P_AF_TX_MAX_RETRY@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, #1
	b.lt	LBB0_30
; %bb.27:
	mov	x26, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_brcmf_p2p_tx_action_frame
	add	x26, x26, #1
	ldr	w8, [x20, #40]
	ldr	x9, [x27]
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	ccmp	x26, x9, #0, ne
	b.lt	LBB0_28
; %bb.29:
	cbz	w0, LBB0_31
LBB0_30:
	str	x26, [sp]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
Lloh59:
	adrp	x8, _BRCMF_P2P_STATUS_GO_NEG_PHASE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _BRCMF_P2P_STATUS_GO_NEG_PHASE@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_clear_bit
	b	LBB0_34
LBB0_31:
	mov	w23, #1
	b	LBB0_35
LBB0_32:
	str	x28, [sp]
Lloh62:
	adrp	x1, l_.str.1@PAGE
Lloh63:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_33:
	mov	x0, x23
	bl	_bphy_err
LBB0_34:
	mov	w23, #0
LBB0_35:
	ldr	w0, [x25]
	add	x24, x20, #44
	mov	x1, x24
	bl	_clear_bit
	cbz	w23, LBB0_38
; %bb.36:
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_38
; %bb.37:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_43
LBB0_38:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_40
; %bb.39:
	str	wzr, [x20, #40]
	mov	w23, #1
LBB0_40:
	ldr	w0, [x19]
	mov	x1, x24
	bl	_clear_bit
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.ne	LBB0_42
; %bb.41:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w1, #1
	bl	_brcmf_set_mpc
LBB0_42:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_43:
	ldr	w0, [x19]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_38
; %bb.44:
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #64]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.45:
Lloh64:
	adrp	x8, _jiffies@GOTPAGE
Lloh65:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	ldr	x9, [x20, #56]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	mov	x25, x0
	ldr	x0, [x21]
	bl	_le32_to_cpu
	cmp	x0, x25
	b.le	LBB0_38
; %bb.46:
	ldr	x0, [x21]
	bl	_le32_to_cpu
	sub	x25, x0, x25
	cmp	x25, #51
	b.lt	LBB0_38
; %bb.47:
Lloh67:
	adrp	x27, _BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN@GOTPAGE
Lloh68:
	ldr	x27, [x27, _BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x24
	bl	_set_bit
Lloh69:
	adrp	x8, _INFO@GOTPAGE
Lloh70:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh71:
	ldr	w26, [x8]
	ldr	x0, [x21]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh72:
	adrp	x1, l_.str.5@PAGE
Lloh73:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x26
	mov	x3, x25
	bl	_brcmf_dbg
	add	x2, x25, #100
	ldr	x1, [x20, #32]
	mov	x0, x22
	bl	_brcmf_p2p_discover_listen
	cbnz	w0, LBB0_49
; %bb.48:
	add	x0, x25, #200
	bl	_msecs_to_jiffies
	mov	x1, x0
	add	x0, x20, #48
	bl	_wait_for_completion_timeout
LBB0_49:
	ldr	w0, [x27]
	mov	x1, x24
	bl	_clear_bit
	b	LBB0_38
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_AF_DWELL_TIME,4,2          ; @P2P_AF_DWELL_TIME
	.comm	_DOT11_ACTION_CAT_OFF,8,3       ; @DOT11_ACTION_CAT_OFF
	.comm	_DOT11_ACTION_ACT_OFF,8,3       ; @DOT11_ACTION_ACT_OFF
	.comm	_P2P_PAF_SUBTYPE_INVALID,8,3    ; @P2P_PAF_SUBTYPE_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P Public action frame, unknown subtype.\n"

	.comm	_P2PSD_ACTION_ID_GAS_IREQ,8,3   ; @P2PSD_ACTION_ID_GAS_IREQ
	.comm	_P2PSD_ACTION_ID_GAS_CREQ,8,3   ; @P2PSD_ACTION_ID_GAS_CREQ
	.comm	_P2P_AF_MED_DWELL_TIME,4,2      ; @P2P_AF_MED_DWELL_TIME
	.comm	_P2PSD_ACTION_ID_GAS_IRESP,8,3  ; @P2PSD_ACTION_ID_GAS_IRESP
	.comm	_P2PSD_ACTION_ID_GAS_CRESP,8,3  ; @P2PSD_ACTION_ID_GAS_CRESP
	.comm	_P2P_AF_MIN_DWELL_TIME,4,2      ; @P2P_AF_MIN_DWELL_TIME
l_.str.1:                               ; @.str.1
	.asciz	"Unknown action type: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown Frame: category 0x%x, action 0x%x\n"

	.comm	_BRCMF_VIF_STATUS_CONNECTING,4,2 ; @BRCMF_VIF_STATUS_CONNECTING
	.comm	_P2PAPI_BSSCFG_PRIMARY,8,3      ; @P2PAPI_BSSCFG_PRIMARY
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ; @BRCMF_SCAN_STATUS_BUSY
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME,4,2 ; @BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME
	.comm	_BRCMF_P2P_STATUS_SENDING_ACT_FRAME,4,2 ; @BRCMF_P2P_STATUS_SENDING_ACT_FRAME
	.comm	_P2PAPI_BSSCFG_DEVICE,8,3       ; @P2PAPI_BSSCFG_DEVICE
	.comm	_P2P_INVALID_CHANNEL,8,3        ; @P2P_INVALID_CHANNEL
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't find peer's channel.\n"

	.comm	_P2P_AF_TX_MAX_RETRY,8,3        ; @P2P_AF_TX_MAX_RETRY
l_.str.4:                               ; @.str.4
	.asciz	"Failed to send Action Frame(retry %d)\n"

	.comm	_BRCMF_P2P_STATUS_GO_NEG_PHASE,4,2 ; @BRCMF_P2P_STATUS_GO_NEG_PHASE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN,4,2 ; @BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN
	.comm	_INFO,4,2                       ; @INFO
l_.str.5:                               ; @.str.5
	.asciz	"Wait more time! actual af time:%d, calculated extra listen:%d\n"

.subsections_via_symbols
