	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_check_freq_conflict
_wpas_check_freq_conflict:              ## @wpas_check_freq_conflict
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_wpas_p2p_num_unused_channels
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jg	LBB0_10
## %bb.1:
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_wpas_p2p_valid_oper_freqs
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%r15,%rcx,4)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %r12d
	jmp	LBB0_9
LBB0_2:
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movq	%r15, %rdi
	callq	_os_free
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Frequency %d MHz in use by another virtual interface and can be used"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: No valid operating frequencies"

	.no_dead_strip	_wpas_check_freq_conflict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_check_freq_conflict
_wpas_check_freq_conflict:              ; @wpas_check_freq_conflict
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_wpas_p2p_num_unused_channels
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_11
LBB0_2:
	ldr	w0, [x21]
	mov	w1, #4
	bl	_os_calloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	ldr	w2, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_wpas_p2p_valid_oper_freqs
	cbz	w0, LBB0_7
; %bb.4:
	mov	w8, w0
	mov	x9, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, w20
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_7:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w20, #1
	b	LBB0_10
LBB0_8:
	mov	w20, #1
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_os_free
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Frequency %d MHz in use by another virtual interface and can be used"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: No valid operating frequencies"

	.no_dead_strip	_wpas_check_freq_conflict
.subsections_via_symbols
