	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_cli_cmd_chan_switch
_hostapd_cli_cmd_chan_switch:           ## @hostapd_cli_cmd_chan_switch
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, %esi
	jg	LBB0_3
## %bb.1:
	leaq	L_str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdx), %rcx
	movq	8(%rdx), %r8
	leaq	L_.str.1(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	$256, %edi                      ## imm = 0x100
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	leaq	L_str.4(%rip), %rdi
LBB0_2:
	callq	_puts
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -312(%rbp)                ## 8-byte Spill
	cmpl	$3, %r12d
	jb	LBB0_9
## %bb.5:
	movl	%r12d, %eax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-304, %rdi                     ## imm = 0xFED0
	movl	$256, %r14d                     ## imm = 0x100
	subl	%eax, %r14d
	movq	(%r15,%r12,8), %rcx
	movl	%r14d, %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %r13d
	incq	%r12
	cmpq	%r12, -320(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_9:
	leaq	-304(%rbp), %rsi
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	callq	_wpa_ctrl_command
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"CHAN_SWITCH %s %s"

L_.str.3:                               ## @.str.3
	.asciz	" %s"

L_str.4:                                ## @str.4
	.asciz	"Too long CHAN_SWITCH command."

L_str.5:                                ## @str.5
	.asciz	"Invalid chan_switch command: needs at least two arguments (count and freq)\nusage: <cs_count> <freq> [sec_channel_offset=] [center_freq1=] [center_freq2=] [bandwidth=] [blocktx] [ht|vht]"

	.no_dead_strip	_hostapd_cli_cmd_chan_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_cli_cmd_chan_switch
_hostapd_cli_cmd_chan_switch:           ; @hostapd_cli_cmd_chan_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w1, #1
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_str.5@PAGE
Lloh4:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x3, x8, [x2]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #256
	bl	_os_snprintf
	mov	x20, x0
	mov	w0, #256
	mov	x1, x20
	bl	_os_snprintf_error
	cbz	x0, LBB0_7
LBB0_3:
Lloh7:
	adrp	x0, l_str.4@PAGE
Lloh8:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_4:
	bl	_puts
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.6:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_7:
	cmp	w22, #3
	b.lo	LBB0_11
; %bb.8:
	mov	w8, w22
	add	x24, x21, #16
	sub	x25, x8, #2
	add	x26, sp, #8
	mov	w27, #256
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x26, w20, sxtw
	sub	w23, w27, w20
	ldr	x3, [x24]
	mov	x1, x23
	mov	x2, x21
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w22, w20
	add	x24, x24, #8
	subs	x25, x25, #1
	b.ne	LBB0_9
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wpa_ctrl_command
	b	LBB0_5
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"CHAN_SWITCH %s %s"

l_.str.3:                               ; @.str.3
	.asciz	" %s"

l_str.4:                                ; @str.4
	.asciz	"Too long CHAN_SWITCH command."

l_str.5:                                ; @str.5
	.asciz	"Invalid chan_switch command: needs at least two arguments (count and freq)\nusage: <cs_count> <freq> [sec_channel_offset=] [center_freq1=] [center_freq2=] [bandwidth=] [blocktx] [ht|vht]"

	.no_dead_strip	_hostapd_cli_cmd_chan_switch
.subsections_via_symbols
