	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_channel_report_freqs
_wpas_channel_report_freqs:             ## @wpas_channel_report_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
	movq	$0, -48(%rbp)
	cmpq	$3, %r8
	jl	LBB0_12
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r13
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	leaq	(%rcx,%r8,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_os_free
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r14,4), %rcx
	addq	$8, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	subq	%rcx, %r8
	cmpq	$8, %r8
	jle	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrq	$2, %r8
	movq	_WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rdi
	movl	%r8d, %esi
	callq	_get_ie
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	4(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_get_oper_class
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	(%rax), %edx
	callq	_get_mode
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r14), %r8d
	leaq	12(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_wpas_add_channels
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_int_array_concat
	jmp	LBB0_8
LBB0_10:
	movq	-48(%rbp), %rax
	jmp	LBB0_13
LBB0_11:
	addq	$8, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	-48(%rbp), %rdi
	callq	_os_free
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL,4,2 ## @WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Beacon request: unknown operating class in AP Channel Report subelement %u"

	.no_dead_strip	_wpas_channel_report_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_channel_report_freqs
_wpas_channel_report_freqs:             ; @wpas_channel_report_freqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x0
	mov	x0, #0
	str	xzr, [sp, #8]
	cmp	x4, #3
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	lsl	x8, x4, #2
Lloh0:
	adrp	x24, _WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL@GOTPAGEOFF]
	add	x25, x3, x4, lsl #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_os_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x3, x27, x26, lsl #2
	sub	x8, x25, x3
	cmp	x8, #8
	b.le	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x1, x8, #2
	ldr	w2, [x24]
	mov	x0, x3
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_get_ie
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	w26, [x0, #4]
	cmp	w26, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x22
	ldr	w1, [x27, #8]!
	mov	x0, x19
	bl	_get_oper_class
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldp	w1, w0, [x21]
	ldr	w2, [x23]
	bl	_get_mode
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	sub	w4, w26, #1
	add	x3, x22, #12
	mov	x0, x23
	mov	x2, x20
	bl	_wpas_add_channels
	mov	x22, x0
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	bl	_int_array_concat
	b	LBB0_2
LBB0_10:
	ldr	x0, [sp, #8]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x27]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [sp, #8]
	bl	_os_free
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL,4,2 ; @WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Beacon request: unknown operating class in AP Channel Report subelement %u"

	.no_dead_strip	_wpas_channel_report_freqs
.subsections_via_symbols
