	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_p2p_tx_action_frame
_brcmf_p2p_tx_action_frame:             ## @brcmf_p2p_tx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	_BRCMF_P2P_STATUS_ACTION_TX_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r15
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_BRCMF_P2P_STATUS_ACTION_TX_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	32(%rbx), %rax
	movq	_P2PAPI_BSSCFG_DEVICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	$4, %ecx
	callq	_brcmf_fil_bsscfg_data_set
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bphy_err
	jmp	LBB0_7
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_TRACE@GOTPCREL(%rip), %r12
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_BRCMF_P2P_STATUS_DISCOVER_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %r14
	movl	20(%rbx), %edi
	callq	_ieee80211_frequency_to_channel
	cmpq	%rax, %r14
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %eax
LBB0_6:
	movq	_BRCMF_P2P_STATUS_ACTION_TX_COMPLETED@GOTPCREL(%rip), %r13
	movl	%eax, 8(%rbx)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_P2P_AF_MAX_WAIT_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	subl	(%rcx), %r14d
	testq	%rax, %rax
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	cmovnel	%ebx, %r14d
	movl	(%r12), %edi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_BRCMF_P2P_STATUS_ACTION_TX_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_P2P_STATUS_ACTION_TX_COMPLETED,4,2 ## @BRCMF_P2P_STATUS_ACTION_TX_COMPLETED
	.comm	_BRCMF_P2P_STATUS_ACTION_TX_NOACK,4,2 ## @BRCMF_P2P_STATUS_ACTION_TX_NOACK
	.comm	_P2PAPI_BSSCFG_DEVICE,8,3       ## @P2PAPI_BSSCFG_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"actframe"

L_.str.2:                               ## @.str.2
	.asciz	" sending action frame has failed\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_BRCMF_P2P_STATUS_DISCOVER_LISTEN,4,2 ## @BRCMF_P2P_STATUS_DISCOVER_LISTEN
L_.str.3:                               ## @.str.3
	.asciz	"Waiting for %s tx completion event\n"

L_.str.4:                               ## @.str.4
	.asciz	"off-channel"

L_.str.5:                               ## @.str.5
	.asciz	"on-channel"

	.comm	_P2P_AF_MAX_WAIT_TIME,4,2       ## @P2P_AF_MAX_WAIT_TIME
L_.str.6:                               ## @.str.6
	.asciz	"TX action frame operation is success\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.7:                               ## @.str.7
	.asciz	"TX action frame operation has failed\n"

	.no_dead_strip	_brcmf_p2p_tx_action_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_p2p_tx_action_frame
_brcmf_p2p_tx_action_frame:             ; @brcmf_p2p_tx_action_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #40]
	ldr	x23, [x8]
Lloh0:
	adrp	x25, _TRACE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRACE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	add	x20, x21, #16
	mov	x0, x20
	bl	_reinit_completion
Lloh4:
	adrp	x26, _BRCMF_P2P_STATUS_ACTION_TX_COMPLETED@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BRCMF_P2P_STATUS_ACTION_TX_COMPLETED@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x19, x21, #12
	mov	x1, x19
	bl	_clear_bit
Lloh6:
	adrp	x27, _BRCMF_P2P_STATUS_ACTION_TX_NOACK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _BRCMF_P2P_STATUS_ACTION_TX_NOACK@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x21, #32]
Lloh8:
	adrp	x9, _P2PAPI_BSSCFG_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P2PAPI_BSSCFG_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	w3, #4
	bl	_brcmf_fil_bsscfg_data_set
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_7
LBB0_2:
	ldr	w0, [x22]
	bl	_le32_to_cpu
Lloh15:
	adrp	x8, _jiffies@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	str	x0, [x21]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh18:
	adrp	x8, _BRCMF_P2P_STATUS_DISCOVER_LISTEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BRCMF_P2P_STATUS_DISCOVER_LISTEN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x22, [x21]
	ldr	w0, [x21, #20]
	bl	_ieee80211_frequency_to_channel
	cmp	x22, x0
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #0
Lloh21:
	adrp	x8, l_.str.5@PAGE
Lloh22:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x8, l_.str.4@PAGE
Lloh24:
	add	x8, x8, l_.str.4@PAGEOFF
	mov	w9, #1
LBB0_6:
	str	w9, [x21, #8]
	ldr	w0, [x25]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh27:
	adrp	x8, _P2P_AF_MAX_WAIT_TIME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _P2P_AF_MAX_WAIT_TIME@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wait_for_completion_timeout
	ldr	w0, [x26]
	mov	x1, x19
	bl	_test_bit
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, l_.str.6@PAGE
Lloh34:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh35:
	adrp	x10, l_.str.7@PAGE
Lloh36:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	x0, #0
	csel	x1, x10, x9, eq
	csneg	w24, wzr, w8, ne
	ldr	w0, [x25]
	bl	_brcmf_dbg
	ldr	w0, [x26]
	mov	x1, x19
	bl	_clear_bit
	ldr	w0, [x27]
	mov	x1, x19
	bl	_clear_bit
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_P2P_STATUS_ACTION_TX_COMPLETED,4,2 ; @BRCMF_P2P_STATUS_ACTION_TX_COMPLETED
	.comm	_BRCMF_P2P_STATUS_ACTION_TX_NOACK,4,2 ; @BRCMF_P2P_STATUS_ACTION_TX_NOACK
	.comm	_P2PAPI_BSSCFG_DEVICE,8,3       ; @P2PAPI_BSSCFG_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"actframe"

l_.str.2:                               ; @.str.2
	.asciz	" sending action frame has failed\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_BRCMF_P2P_STATUS_DISCOVER_LISTEN,4,2 ; @BRCMF_P2P_STATUS_DISCOVER_LISTEN
l_.str.3:                               ; @.str.3
	.asciz	"Waiting for %s tx completion event\n"

l_.str.4:                               ; @.str.4
	.asciz	"off-channel"

l_.str.5:                               ; @.str.5
	.asciz	"on-channel"

	.comm	_P2P_AF_MAX_WAIT_TIME,4,2       ; @P2P_AF_MAX_WAIT_TIME
l_.str.6:                               ; @.str.6
	.asciz	"TX action frame operation is success\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.7:                               ; @.str.7
	.asciz	"TX action frame operation has failed\n"

	.no_dead_strip	_brcmf_p2p_tx_action_frame
.subsections_via_symbols
