	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_init_sband_channels        ## -- Begin function iwl_init_sband_channels
	.p2align	4, 0x90
_iwl_init_sband_channels:               ## @iwl_init_sband_channels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	xorl	%eax, %eax
	movq	%r8, %r9
	movl	$0, %r11d
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	movl	%edx, %r10d
	xorl	%r11d, %r11d
	movq	%r8, %r9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%r9)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addq	$4, %r9
	cmpq	%r11, %r10
	jne	LBB0_2
## %bb.4:
	leaq	(%r8,%r10,4), %rax
	movq	%rax, 8(%rsi)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movl	%r11d, %r10d
	leaq	(%r8,%r10,4), %rdi
	movq	%rdi, 8(%rsi)
	cmpl	%edx, %r11d
	jge	LBB0_10
## %bb.6:
	subl	%r10d, %edx
	leaq	(%r8,%r10,4), %rdi
	addq	$4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r9, %r8
	cmpl	%ecx, (%r9)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %r9
	incl	%eax
	addq	$4, %rdi
	cmpl	%eax, %edx
	jne	LBB0_7
## %bb.9:
	movl	%edx, %eax
LBB0_10:
	movl	%eax, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_init_sband_channels        ; -- Begin function iwl_init_sband_channels
	.p2align	2
_iwl_init_sband_channels:               ; @iwl_init_sband_channels
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	mov	w11, w2
	mov	x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	cmp	w12, w3
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	add	x8, x8, #4
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.4:
	mov	w0, #0
	add	x8, x9, x11, lsl #2
	str	x8, [x1, #8]
	str	wzr, [x1]
	ret
LBB0_5:
	mov	w10, #0
	mov	x8, x9
LBB0_6:
	add	x11, x9, w10, uxtw #2
	str	x11, [x1, #8]
	cmp	w10, w2
	b.ge	LBB0_12
; %bb.7:
	mov	w0, #0
	mov	w11, w10
	sub	w10, w2, w11
	add	x9, x9, x11, lsl #2
	add	x9, x9, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w3
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x9
	add	w0, w0, #1
	add	x9, x9, #4
	cmp	w10, w0
	b.ne	LBB0_8
; %bb.10:
	mov	x0, x10
LBB0_11:
	str	w0, [x1]
	ret
LBB0_12:
	mov	w0, #0
	str	wzr, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
