	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_prepare_channel_list
_dpp_prepare_channel_list:              ## @dpp_prepare_channel_list
	.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, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DPP_BOOTSTRAP_MAX_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %eax
	leal	(%rax,%rax), %r15d
	addl	$10, %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	32(%r12), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_dpp_channel_intersect
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_10
LBB0_2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_dpp_channel_local_list
	testl	%eax, %eax
	js	LBB0_10
LBB0_4:
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	movl	$2462, %edx                     ## imm = 0x99E
	callq	_freq_to_start
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	movl	$2412, %edx                     ## imm = 0x96C
	callq	_freq_to_start
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	movl	$2437, %edx                     ## imm = 0x985
	callq	_freq_to_start
	movq	$0, 24(%r12)
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%r12)
	cmpl	$0, (%r12)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	je	LBB0_9
## %bb.5:
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	addq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movslq	%r13d, %rbx
	addq	%rax, %rbx
	movl	(%r12), %eax
	cmpq	%rax, %r14
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r15d
	subl	%ebx, %r15d
	movl	(%rax,%r14,4), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	leaq	L_.str(%rip), %rdx
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	incq	%r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movb	$0, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_printf
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_BOOTSTRAP_MAX_FREQ,4,2     ## @DPP_BOOTSTRAP_MAX_FREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" %u"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: Possible frequencies for initiating:%s"

	.no_dead_strip	_dpp_prepare_channel_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_prepare_channel_list
_dpp_prepare_channel_list:              ; @dpp_prepare_channel_list
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DPP_BOOTSTRAP_MAX_FREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPP_BOOTSTRAP_MAX_FREQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #6
	mul	w8, w8, w9
	add	w21, w8, #10
	add	x8, x21, #15
	and	x8, x8, #0x1fffffff0
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	bl	_dpp_channel_intersect
	tbz	w0, #31, LBB0_3
	b	LBB0_9
LBB0_2:
	bl	_dpp_channel_local_list
	tbnz	w0, #31, LBB0_9
LBB0_3:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	w2, #2462
	bl	_freq_to_start
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	w2, #2412
	bl	_freq_to_start
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	w2, #2437
	bl	_freq_to_start
	str	xzr, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	str	w9, [x19, #16]
	ldr	w9, [x19]
	mov	x22, x20
	cbz	w9, LBB0_8
; %bb.4:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_os_snprintf
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_os_snprintf_error
	mov	x22, x20
	cbnz	x0, LBB0_8
; %bb.5:
	add	x25, x20, x21
	mov	w26, #1
	mov	x22, x20
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, w23, sxtw
	ldr	w8, [x19]
	cmp	x26, x8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	sub	w24, w25, w22
	ldr	w3, [x8, x26, lsl #2]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_os_snprintf
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_os_snprintf_error
	add	x26, x26, #1
	cbz	x0, LBB0_6
LBB0_8:
	strb	wzr, [x22]
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #64
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_BOOTSTRAP_MAX_FREQ,4,2     ; @DPP_BOOTSTRAP_MAX_FREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" %u"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: Possible frequencies for initiating:%s"

	.no_dead_strip	_dpp_prepare_channel_list
.subsections_via_symbols
