	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_p2p_get_current_chanspec
_brcmf_p2p_get_current_chanspec:        ## @brcmf_p2p_get_current_chanspec
	.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, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	8(%r15), %rax
	movq	_P2PAPI_BSSCFG_PRIMARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r13
	movq	_BRCMF_C_GET_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_brcmf_fil_cmd_data_get
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_BRCMF_P2P_TEMP_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_BRCMU_CHAN_BW_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r15), %rax
	leaq	-64(%rbp), %rdi
	callq	*(%rax)
	movl	-64(%rbp), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_WL_BSS_INFO_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12)
	movq	_BRCMF_C_GET_BSS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_brcmf_fil_cmd_data_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_3:
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_P2PAPI_BSSCFG_PRIMARY,8,3      ## @P2PAPI_BSSCFG_PRIMARY
	.comm	_BRCMF_C_GET_BSSID,4,2          ## @BRCMF_C_GET_BSSID
	.comm	_WL_BSS_INFO_MAX,4,2            ## @WL_BSS_INFO_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BRCMF_C_GET_BSS_INFO,4,2       ## @BRCMF_C_GET_BSS_INFO
	.comm	_BRCMF_P2P_TEMP_CHAN,4,2        ## @BRCMF_P2P_TEMP_CHAN
	.comm	_BRCMU_CHAN_BW_20,4,2           ## @BRCMU_CHAN_BW_20
	.no_dead_strip	_brcmf_p2p_get_current_chanspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_p2p_get_current_chanspec
_brcmf_p2p_get_current_chanspec:        ; @brcmf_p2p_get_current_chanspec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	lsl	x8, x3, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x2, x9, x8
	mov	sp, x2
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _P2PAPI_BSSCFG_PRIMARY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P2PAPI_BSSCFG_PRIMARY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x21, [x8]
Lloh11:
	adrp	x8, _BRCMF_C_GET_BSSID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMF_C_GET_BSSID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_brcmf_fil_cmd_data_get
	cbz	x0, LBB0_4
LBB0_1:
Lloh14:
	adrp	x8, _BRCMF_P2P_TEMP_CHAN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BRCMF_P2P_TEMP_CHAN@GOTPAGEOFF]
Lloh16:
	adrp	x9, _BRCMU_CHAN_BW_20@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BRCMU_CHAN_BW_20@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-68]
	ldr	x8, [x20]
	ldr	x8, [x8]
	sub	x0, x29, #72
	blr	x8
	ldur	w8, [x29, #-72]
	str	w8, [x19]
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.3:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh23:
	adrp	x23, _WL_BSS_INFO_MAX@GOTPAGE
Lloh24:
	ldr	x23, [x23, _WL_BSS_INFO_MAX@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_1
; %bb.5:
	mov	x22, x0
	ldr	w0, [x23]
	bl	_cpu_to_le32
	str	w0, [x22]
Lloh28:
	adrp	x8, _BRCMF_C_GET_BSS_INFO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BRCMF_C_GET_BSS_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_brcmf_fil_cmd_data_get
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_kfree
	b	LBB0_1
LBB0_7:
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	str	w0, [x19]
	mov	x0, x22
	bl	_kfree
	b	LBB0_2
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_P2PAPI_BSSCFG_PRIMARY,8,3      ; @P2PAPI_BSSCFG_PRIMARY
	.comm	_BRCMF_C_GET_BSSID,4,2          ; @BRCMF_C_GET_BSSID
	.comm	_WL_BSS_INFO_MAX,4,2            ; @WL_BSS_INFO_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BRCMF_C_GET_BSS_INFO,4,2       ; @BRCMF_C_GET_BSS_INFO
	.comm	_BRCMF_P2P_TEMP_CHAN,4,2        ; @BRCMF_P2P_TEMP_CHAN
	.comm	_BRCMU_CHAN_BW_20,4,2           ; @BRCMU_CHAN_BW_20
	.no_dead_strip	_brcmf_p2p_get_current_chanspec
.subsections_via_symbols
