	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfs_get_start_chan_idx
_dfs_get_start_chan_idx:                ## @dfs_get_start_chan_idx
	.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	%rdi, %r14
	movq	(%rdi), %rdi
	movl	(%rdi), %ebx
	movl	$-1, (%rsi)
	cmpl	$0, 8(%rdi)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leal	-4(%rbx), %eax
	cmpl	$-1, 4(%rdi)
	cmovnel	%ebx, %eax
	movl	%eax, %ebx
LBB0_2:
	cmpq	$0, 24(%rdi)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 16(%rdi)
	je	LBB0_10
LBB0_4:
	callq	_hostapd_get_oper_chwidth
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.5:
	movl	$-1, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	(%r14), %rdi
	callq	_hostapd_get_oper_centr_freq_seg0_idx
	movl	%eax, %ebx
	addl	$-6, %ebx
	movq	(%r14), %rdi
	callq	_hostapd_get_oper_centr_freq_seg1_idx
	movl	%eax, %r12d
	addl	$-6, %r12d
	jmp	LBB0_11
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_10:
	movl	$-1, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	(%r14), %rdi
	callq	_hostapd_get_oper_centr_freq_seg0_idx
	movl	%eax, %ebx
	addl	$-6, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	(%r14), %rdi
	callq	_hostapd_get_oper_centr_freq_seg0_idx
	movl	%eax, %ebx
	addl	$-14, %ebx
LBB0_11:
	movq	%r14, %rdx
	movq	8(%r14), %r15
	movl	(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.12:
	movq	8(%r15), %rax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax,%r13,4)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_13
	jmp	LBB0_19
LBB0_15:
	testl	%r12d, %r12d
	js	LBB0_22
## %bb.16:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rax,%rcx,4)
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_17
LBB0_19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdx), %rdi
	movl	8(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %r13d
	callq	_hostapd_get_oper_chwidth
	movl	%eax, %r10d
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r13
	callq	_wpa_printf
	addq	$16, %rsp
	movl	$-1, %r13d
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.20:
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_21
LBB0_22:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DFS only VHT20/40/80/160/80+80 is supported now"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DFS chan_idx seems wrong; num-ch: %d ch-no: %d conf-ch-no: %d 11n: %d sec-ch: %d vht-oper-width: %d"

L_.str.2:                               ## @.str.2
	.asciz	"Available channel: %d"

	.no_dead_strip	_dfs_get_start_chan_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfs_get_start_chan_idx
_dfs_get_start_chan_idx:                ; @dfs_get_start_chan_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w21, [x0]
	mov	w8, #-1
	str	w8, [x1]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	sub	w9, w21, #4
	cmn	w8, #1
	csel	w21, w9, w21, eq
LBB0_2:
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
LBB0_4:
	bl	_hostapd_get_oper_chwidth
	sub	w9, w0, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.5:
	mov	w8, #-1
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
	ldr	x0, [x19]
	bl	_hostapd_get_oper_centr_freq_seg0_idx
	sub	w21, w0, #6
	ldr	x0, [x19]
	bl	_hostapd_get_oper_centr_freq_seg1_idx
	sub	w8, w0, #6
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w21, #-1
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19]
	bl	_hostapd_get_oper_centr_freq_seg0_idx
	sub	w21, w0, #6
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19]
	bl	_hostapd_get_oper_centr_freq_seg0_idx
	sub	w21, w0, #14
LBB0_10:
	mov	w8, #-1
LBB0_11:
	ldr	x22, [x19, #8]
	ldr	w23, [x22]
	cmp	w23, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x0, #0
	ldr	x9, [x22, #8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cmp	w10, w21
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x0, #1
	cmp	x23, x0
	b.ne	LBB0_13
	b	LBB0_19
LBB0_15:
	tbnz	w8, #31, LBB0_23
; %bb.16:
	mov	x10, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x10, lsl #2]
	cmp	w11, w8
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x10, x10, #1
	cmp	x23, x10
	b.ne	LBB0_17
LBB0_19:
Lloh7:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w20, [x24]
	ldr	x0, [x19]
	ldp	w26, w19, [x0, #4]
	ldr	w25, [x0]
	bl	_hostapd_get_oper_chwidth
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp, #32]
	stp	x25, x19, [sp, #16]
	stp	x23, x21, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x20, #0
Lloh11:
	adrp	x19, l_.str.2@PAGE
Lloh12:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [x22, #8]
	ldr	w8, [x8, x20, lsl #2]
	str	x8, [sp]
	mov	x1, x19
	bl	_wpa_printf
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_21
LBB0_22:
	mov	w0, #-1
LBB0_23:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	str	w10, [x20]
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DFS only VHT20/40/80/160/80+80 is supported now"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DFS chan_idx seems wrong; num-ch: %d ch-no: %d conf-ch-no: %d 11n: %d sec-ch: %d vht-oper-width: %d"

l_.str.2:                               ; @.str.2
	.asciz	"Available channel: %d"

	.no_dead_strip	_dfs_get_start_chan_idx
.subsections_via_symbols
