	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_setband_scan_freqs_list
_wpa_setband_scan_freqs_list:           ## @wpa_setband_scan_freqs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	callq	_get_mode
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%rax), %edi
	incl	%edi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.4:
	movq	8(%r15), %rcx
	xorl	%esi, %esi
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	%edx, %rbx
	cmpq	%rbx, %rsi
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8), %ebx
	testl	%ebx, (%rcx,%rsi,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rcx,%rsi,8), %edx
	movslq	%edi, %rbx
	incl	%edi
	movl	%edx, (%rax,%rbx,4)
	movl	(%r15), %edx
	jmp	LBB0_7
LBB0_1:
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, (%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.no_dead_strip	_wpa_setband_scan_freqs_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_setband_scan_freqs_list
_wpa_setband_scan_freqs_list:           ; @wpa_setband_scan_freqs_list
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x2, x1
	ldp	w1, w8, [x0]
	mov	x0, x8
	bl	_get_mode
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	add	w0, w8, #1
	mov	w1, #4
	bl	_os_calloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x8, #0
	mov	w11, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #4
Lloh0:
	adrp	x12, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x12, [x12, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x10, x10, #8
	cmp	x8, w9, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x10, #-4]
	ldr	w14, [x12]
	tst	w14, w13
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x10]
	str	w9, [x0, w11, sxtw #2]
	add	w11, w11, #1
	ldr	w9, [x19]
	b	LBB0_4
LBB0_7:
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.no_dead_strip	_wpa_setband_scan_freqs_list
.subsections_via_symbols
