	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_obss_scan_freqs_list
_wpa_obss_scan_freqs_list:              ## @wpa_obss_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_get_mode
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.4:
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	cmpl	$2, 4(%rax)
	jl	LBB0_12
## %bb.6:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	12(%rax), %ecx
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_9
## %bb.7:
	movl	$130, 4(%rbx)
	movl	(%rbx), %edx
	leal	-10(%rdx), %r12d
	jmp	LBB0_8
LBB0_1:
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, (%r14)
	jmp	LBB0_25
LBB0_9:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_12
## %bb.10:
	movl	$129, 4(%rbx)
	movl	(%rbx), %edx
	leal	10(%rdx), %r13d
	jmp	LBB0_11
LBB0_12:
	movl	4(%rbx), %eax
LBB0_13:
	movl	(%rbx), %edx
	leal	-10(%rdx), %r12d
	cmpl	$130, %eax
	je	LBB0_8
## %bb.14:
	leal	10(%rdx), %r13d
	cmpl	$129, %eax
	je	LBB0_11
## %bb.15:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.16:
	leal	-30(%rdx), %eax
	cmpl	$2453, %edx                     ## imm = 0x995
	cmovll	%eax, %r12d
	leal	30(%rdx), %eax
	cmpl	$2432, %edx                     ## imm = 0x980
	cmovgel	%eax, %r13d
	jmp	LBB0_17
LBB0_8:
	leal	30(%rdx), %r13d
	jmp	LBB0_17
LBB0_11:
	leal	-30(%rdx), %r12d
LBB0_17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	callq	_wpa_printf
	movl	(%r15), %edi
	incl	%edi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.19:
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %r8
	xorl	%r9d, %r9d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	movslq	%ecx, %rdi
	cmpq	%rdi, %rsi
	jge	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r8), %edi
	testl	%edi, (%rdx,%rsi,8)
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	4(%rdx,%rsi,8), %edi
	leal	-10(%rdi), %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	leal	10(%rdi), %ebx
	cmpl	%r12d, %ebx
	jle	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	%r9d, %rcx
	incl	%r9d
	movl	%edi, (%rax,%rcx,4)
	movl	(%r15), %ecx
	jmp	LBB0_24
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211G,4,2    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OBSS: assoc_freq %d possible affected range %d-%d"

	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.no_dead_strip	_wpa_obss_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_obss_scan_freqs_list
_wpa_obss_scan_freqs_list:              ; @wpa_obss_scan_freqs_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x21, #16]
Lloh0:
	adrp	x8, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_get_mode
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21, #4]
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.2:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_wpa_bss_get_ie
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.5:
	ldr	w8, [x0, #12]
Lloh6:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	mov	w8, #130
	str	w8, [x21, #4]
	ldr	w2, [x21]
	sub	w21, w2, #10
	b	LBB0_14
LBB0_7:
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x20]
	b	LBB0_23
LBB0_8:
Lloh12:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #129
	str	w8, [x21, #4]
	ldr	w2, [x21]
	add	w22, w2, #10
	b	LBB0_15
LBB0_10:
	ldr	w8, [x21, #4]
LBB0_11:
	ldr	w2, [x21]
	sub	w21, w2, #10
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.12:
	add	w22, w2, #10
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.13:
	sub	w9, w2, #30
	cmp	w2, #2453
	csel	w9, w9, w21, lt
	add	w10, w2, #30
	cmp	w2, #2431
	csel	w10, w10, w22, gt
	cmp	w8, #128
	csel	w22, w22, w10, ne
	csel	w21, w21, w9, ne
	b	LBB0_16
LBB0_14:
	add	w22, w2, #30
	b	LBB0_16
LBB0_15:
	sub	w21, w2, #30
LBB0_16:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x22
	bl	_wpa_printf
	ldr	w8, [x19]
	add	w0, w8, #1
	mov	w1, #4
	bl	_os_calloc
	str	x0, [x20]
	cbz	x0, LBB0_23
; %bb.17:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.18:
	mov	x8, #0
	mov	w11, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #4
Lloh20:
	adrp	x12, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh21:
	ldr	x12, [x12, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x8, #1
	add	x10, x10, #8
	cmp	x8, w9, sxtw
	b.ge	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x10, #-4]
	ldr	w14, [x12]
	tst	w14, w13
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w13, [x10]
	sub	w14, w13, #10
	add	w15, w13, #10
	cmp	w14, w22
	ccmp	w15, w21, #4, lt
	b.le	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	str	w13, [x0, w11, sxtw #2]
	add	w11, w11, #1
	ldr	w9, [x19]
	b	LBB0_19
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211G,4,2    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OBSS: assoc_freq %d possible affected range %d-%d"

	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.no_dead_strip	_wpa_obss_scan_freqs_list
.subsections_via_symbols
