	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_beacon_request_freqs
_wpas_beacon_request_freqs:             ## @wpas_beacon_request_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	%rdi, %r13
	movl	%edx, -60(%rbp)
	movq	$0, -56(%rbp)
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	_WLAN_EID_COUNTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r12
	cmpl	$2, 4(%rax)
	jl	LBB0_5
## %bb.3:
	addq	$8, %r12
	jmp	LBB0_6
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_oper_class
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	(%rax), %edx
	callq	_get_mode
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpl	$255, %r14d
	je	LBB0_14
## %bb.9:
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_wpas_op_class_freqs
	jmp	LBB0_16
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_wpa_printf
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_15:
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	$1, %r8d
	callq	_wpas_add_channels
LBB0_16:
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_12
LBB0_17:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_wpas_channel_report_freqs
	testq	%rax, %rax
	je	LBB0_13
## %bb.18:
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_int_array_concat
	movq	%r14, %rdi
	callq	_os_free
	movq	-56(%rbp), %rdi
	callq	_int_array_sort_unique
	movq	-56(%rbp), %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_COUNTRY,4,2           ## @WLAN_EID_COUNTRY
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Beacon request: invalid operating class %d"

	.no_dead_strip	_wpas_beacon_request_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_beacon_request_freqs
_wpas_beacon_request_freqs:             ; @wpas_beacon_request_freqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x0
	str	w2, [sp, #12]
	str	xzr, [sp]
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_11
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x25, x1
Lloh0:
	adrp	x8, _WLAN_EID_COUNTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_COUNTRY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wpa_bss_get_ie
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	add	x23, x0, #8
	b	LBB0_5
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	x0, x23
	mov	x1, x25
	bl	_get_oper_class
	cbz	x0, LBB0_10
; %bb.6:
	mov	x26, x0
	ldp	w1, w0, [x22]
	ldr	w2, [x26]
	bl	_get_mode
	cbz	x0, LBB0_11
; %bb.7:
	cmp	w24, #255
	b.eq	LBB0_13
; %bb.8:
	mov	x1, x0
	cbnz	w24, LBB0_14
; %bb.9:
	mov	x0, x26
	mov	x2, x21
	bl	_wpas_op_class_freqs
	b	LBB0_15
LBB0_10:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_wpa_printf
LBB0_11:
	mov	x24, #0
LBB0_12:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x24, #0
	b	LBB0_16
LBB0_14:
	add	x3, sp, #12
	mov	x0, x26
	mov	x2, x21
	mov	w4, #1
	bl	_wpas_add_channels
LBB0_15:
	mov	x24, x0
	str	x0, [sp]
	cbz	x0, LBB0_12
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_wpas_channel_report_freqs
	cbz	x0, LBB0_12
; %bb.17:
	mov	x19, x0
	mov	x0, sp
	mov	x1, x19
	bl	_int_array_concat
	mov	x0, x19
	bl	_os_free
	ldr	x0, [sp]
	bl	_int_array_sort_unique
	ldr	x24, [sp]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_COUNTRY,4,2           ; @WLAN_EID_COUNTRY
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Beacon request: invalid operating class %d"

	.no_dead_strip	_wpas_beacon_request_freqs
.subsections_via_symbols
