	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_go_update_common_freqs
_wpas_p2p_go_update_common_freqs:       ## @wpas_p2p_go_update_common_freqs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_P2P_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -28(%rbp)
	callq	_p2p_go_dump_common_freqs
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	12(%r15), %edi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rsi
	callq	_p2p_group_get_common_freqs
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	callq	_os_free
	movq	%r14, (%r15)
	movl	-28(%rbp), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_p2p_go_dump_common_freqs
	jmp	LBB0_4
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_wpa_dbg
	movq	%r14, %rdi
	callq	_os_free
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_MAX_CHANNELS,4,2           ## @P2P_MAX_CHANNELS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Failed to get group common freqs"

	.no_dead_strip	_wpas_p2p_go_update_common_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_go_update_common_freqs
_wpas_p2p_go_update_common_freqs:       ; @wpas_p2p_go_update_common_freqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _P2P_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	str	w20, [sp, #12]
	bl	_p2p_go_dump_common_freqs
	mov	x0, x20
	mov	w1, #4
	bl	_os_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
	add	x2, sp, #12
	mov	x1, x20
	bl	_p2p_group_get_common_freqs
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_os_free
	str	x20, [x19]
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_p2p_go_dump_common_freqs
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	mov	x0, x20
	bl	_os_free
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_MAX_CHANNELS,4,2           ; @P2P_MAX_CHANNELS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Failed to get group common freqs"

	.no_dead_strip	_wpas_p2p_go_update_common_freqs
.subsections_via_symbols
