	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_store_cscheme
_iwl_store_cscheme:                     ## @iwl_store_cscheme
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$16, %edx
	jb	LBB0_10
## %bb.1:
	movslq	%edx, %rax
	movslq	(%rsi), %rcx
	leaq	4(,%rcx,4), %rdx
	cmpq	%rax, %rdx
	jbe	LBB0_2
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_IWL_UCODE_MAX_CS@GOTPCREL(%rip), %r8
	movl	(%r8), %r10d
	xorl	%eax, %eax
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.3:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.4:
	movq	8(%rsi), %r9
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r11d, %rax
	movl	(%r9,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %r10
	leal	1(%rax), %r11d
	movl	%edx, (%r10,%rax,4)
	movl	(%r8), %r10d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ecx
	xorl	%eax, %eax
	cmpl	%r10d, %ecx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%rsi), %ecx
	jl	LBB0_5
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_UCODE_MAX_CS,4,2           ## @IWL_UCODE_MAX_CS
	.no_dead_strip	_iwl_store_cscheme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_store_cscheme
_iwl_store_cscheme:                     ; @iwl_store_cscheme
	.cfi_startproc
; %bb.0:
	cmp	w2, #16
	b.lo	LBB0_2
; %bb.1:
	ldrsw	x9, [x1]
	lsl	x8, x9, #2
	add	x8, x8, #4
	cmp	x8, w2, sxtw
	b.ls	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
Lloh3:
	adrp	x8, _IWL_UCODE_MAX_CS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_MAX_CS@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.4:
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w9, #0
	mov	w10, #0
	ldr	x12, [x1, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, w9, sxtw #2]
	cbz	w13, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x11, w9
	ldr	x14, [x0]
	add	w9, w9, #1
	str	w13, [x14, x11, lsl #2]
	ldr	w11, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w10, w10, #1
	cmp	w10, w11
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x1]
	cmp	w10, w13
	b.lt	LBB0_6
LBB0_10:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_UCODE_MAX_CS,4,2           ; @IWL_UCODE_MAX_CS
	.no_dead_strip	_iwl_store_cscheme
.subsections_via_symbols
