	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_valid_oper_freqs
_wpas_p2p_valid_oper_freqs:             ## @wpas_p2p_valid_oper_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	%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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movl	$4, %esi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	8(%rbx), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_get_shared_radio_freqs_data
	movl	%eax, %r12d
	leal	(,%r15,4), %edx
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.4:
	movl	%r12d, %eax
	movq	%r15, %r12
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	-4(%r13,%r15,4), %esi
	callq	_p2p_supported_freq
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	incl	%ebx
	movl	-4(%r13,%r15,4), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r15
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpl	%r12d, %ebx
	jb	LBB0_5
LBB0_9:
	movq	%r13, %rdi
	callq	_os_free
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_dump_freq_data
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"valid for P2P"

	.no_dead_strip	_wpas_p2p_valid_oper_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_valid_oper_freqs
_wpas_p2p_valid_oper_freqs:             ; @wpas_p2p_valid_oper_freqs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	mov	w1, #4
	bl	_os_calloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	w2, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_get_shared_radio_freqs_data
	mov	x24, x0
	lsl	w2, w21, #2
	mov	x0, x19
	mov	w1, #0
	bl	_os_memset
	mov	w23, #0
	cmp	w24, #0
	ccmp	w21, #0, #4, ne
	b.eq	LBB0_7
; %bb.2:
	mov	x25, #0
	mov	w23, #0
	mov	w24, w24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x22, x25, lsl #2]
	bl	_p2p_supported_freq
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, x25, lsl #2]
	str	w8, [x19, w23, uxtw #2]
	add	w23, w23, #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x25, x24
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, w21
	b.lo	LBB0_3
LBB0_7:
	mov	x0, x22
	bl	_os_free
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	bl	_dump_freq_data
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"valid for P2P"

	.no_dead_strip	_wpas_p2p_valid_oper_freqs
.subsections_via_symbols
