	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_learn_get_supp_freqs
_bgscan_learn_get_supp_freqs:           ## @bgscan_learn_get_supp_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.2:
	xorl	%esi, %esi
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rbx
	xorl	%r8d, %r8d
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rsi, %rcx
	shlq	$4, %rcx
	cmpl	$0, (%rdx,%rcx)
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rcx), %r15
	leaq	(%rdx,%rcx), %r12
	addq	$8, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r12), %rcx
	movl	4(%rcx,%r13,8), %ecx
	movl	%ecx, (%rax,%r14,4)
	movl	$0, 4(%rax,%r14,4)
	incq	%r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_3
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	(%rbx), %ecx
	testl	%ecx, (%rax,%r13,8)
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	4(%rax,%r13,8), %esi
	movq	%r14, %rdi
	callq	_in_array
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	2(%r14), %rsi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.no_dead_strip	_bgscan_learn_get_supp_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgscan_learn_get_supp_freqs
_bgscan_learn_get_supp_freqs:           ; @bgscan_learn_get_supp_freqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	x20, #0
Lloh0:
	adrp	x24, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x25, x21, x22, lsl #4
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	x27, #0
	add	x28, x25, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #8
	cmp	x27, x8
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldr	w9, [x8, x26]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, x26
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_in_array
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x1, x23, #2
	mov	x0, x20
	mov	w2, #4
	bl	_os_realloc_array
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x28]
	add	x8, x8, x26
	ldr	w8, [x8, #4]
	str	w8, [x0, x23, lsl #2]
	add	x23, x23, #1
	str	wzr, [x0, x23, lsl #2]
	mov	x20, x0
	b	LBB0_7
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 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	_bgscan_learn_get_supp_freqs
.subsections_via_symbols
