	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_iface_get_capability_channels
_ctrl_iface_get_capability_channels:    ## @ctrl_iface_get_capability_channels
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movq	%rsi, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	addq	%r12, -48(%rbp)                 ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	subl	%r15d, %r14d
	movq	%r15, %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r15d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movl	(%rcx,%rdx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	leaq	l_reltable.ctrl_iface_get_capability_channels(%rip), %rdx
	movslq	(%rdx,%rax,4), %rcx
	addq	%rdx, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	subl	%r12d, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$0, 4(%rax,%rsi)
	movq	%r12, %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rsi), %r12
	xorl	%r13d, %r13d
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	movslq	4(%rax,%rsi), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx), %ecx
	testl	%ecx, (%r12,%r13,8)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	subl	%r15d, %r14d
	movl	4(%r12,%r13,8), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	leaq	L_.str.5(%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_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movslq	%ebx, %rax
	addq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rdx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %r12
LBB0_14:
	subl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B"

L_.str.1:                               ## @.str.1
	.asciz	"G"

L_.str.2:                               ## @.str.2
	.asciz	"A"

L_.str.3:                               ## @.str.3
	.asciz	"AD"

L_.str.4:                               ## @.str.4
	.asciz	"Mode[%s] Channels:"

	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
L_.str.5:                               ## @.str.5
	.asciz	" %d"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

	.no_dead_strip	_ctrl_iface_get_capability_channels
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.ctrl_iface_get_capability_channels
l_reltable.ctrl_iface_get_capability_channels:
	.long	L_.str.1-l_reltable.ctrl_iface_get_capability_channels
	.long	L_.str-l_reltable.ctrl_iface_get_capability_channels
	.long	L_.str.3-l_reltable.ctrl_iface_get_capability_channels
	.long	L_.str.2-l_reltable.ctrl_iface_get_capability_channels

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_iface_get_capability_channels
_ctrl_iface_get_capability_channels:    ; @ctrl_iface_get_capability_channels
	.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, x1
	ldr	w8, [x0]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x0
	mov	x27, #0
Lloh0:
	adrp	x24, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x28, x21, x2
Lloh2:
	adrp	x23, l_.str.5@PAGE
Lloh3:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x20, #8]
	lsl	x10, x27, #4
	ldr	w9, [x9, x10]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x8, l_switch.table.ctrl_iface_get_capability_channels@PAGE
Lloh5:
	add	x8, x8, l_switch.table.ctrl_iface_get_capability_channels@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	sub	w26, w28, w21
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x26
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_os_snprintf
	mov	x25, x0
	mov	x0, x26
	mov	x1, x25
	bl	_os_snprintf_error
	cbnz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, w25, sxtw
	ldr	x8, [x20, #8]
	add	x9, x8, x27, lsl #4
	ldr	w10, [x9, #4]
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	ldr	x9, [x9, #8]
	add	x19, x9, #4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x22, x22, #1
	add	x9, x8, x27, lsl #4
	ldrsw	x9, [x9, #4]
	add	x19, x19, #8
	cmp	x22, x9
	b.ge	LBB0_11
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w9, [x19, #-4]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	w26, w28, w21
	ldr	w8, [x19]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x23
	bl	_os_snprintf
	mov	x25, x0
	mov	x0, x26
	mov	x1, x25
	bl	_os_snprintf_error
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, w25, sxtw
	ldr	x8, [x20, #8]
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w26, w28, w21
	mov	x0, x21
	mov	x1, x26
Lloh8:
	adrp	x2, l_.str.6@PAGE
Lloh9:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_os_snprintf
	mov	x25, x0
	mov	x0, x26
	mov	x1, x25
	bl	_os_snprintf_error
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, w25, sxtw
	ldr	w8, [x20]
	b	LBB0_2
LBB0_13:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	w0, w21, w8
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B"

l_.str.1:                               ; @.str.1
	.asciz	"G"

l_.str.2:                               ; @.str.2
	.asciz	"A"

l_.str.3:                               ; @.str.3
	.asciz	"AD"

l_.str.4:                               ; @.str.4
	.asciz	"Mode[%s] Channels:"

	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
l_.str.5:                               ; @.str.5
	.asciz	" %d"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

	.no_dead_strip	_ctrl_iface_get_capability_channels
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ctrl_iface_get_capability_channels
l_switch.table.ctrl_iface_get_capability_channels:
	.quad	l_.str.1
	.quad	l_.str
	.quad	l_.str.3
	.quad	l_.str.2

.subsections_via_symbols
