	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_set_ucode_capabilities
_iwl_set_ucode_capabilities:            ## @iwl_set_ucode_capabilities
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	4(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_NUM_IWL_UCODE_TLV_CAPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_DIV_ROUND_UP
	cmpl	%eax, %r15d
	jge	LBB0_6
## %bb.1:
	shll	$5, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r15,%rbx), %edi
	movl	(%r14), %esi
	callq	___set_bit
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_WARN                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_IWL_UCODE_TLV_CAPA,4,2     ## @NUM_IWL_UCODE_TLV_CAPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"capa flags index %d larger than supported by driver\n"

	.no_dead_strip	_iwl_set_ucode_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_set_ucode_capabilities
_iwl_set_ucode_capabilities:            ; @iwl_set_ucode_capabilities
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x20]
	bl	_le32_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _NUM_IWL_UCODE_TLV_CAPA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_IWL_UCODE_TLV_CAPA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #32
	bl	_DIV_ROUND_UP
	cmp	w22, w0
	b.ge	LBB0_5
; %bb.1:
	mov	w21, #0
	lsl	w22, w22, #5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, #32
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w22, w21
	ldr	w1, [x19]
	bl	___set_bit
	b	LBB0_2
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IWL_WARN
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_IWL_UCODE_TLV_CAPA,4,2     ; @NUM_IWL_UCODE_TLV_CAPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"capa flags index %d larger than supported by driver\n"

	.no_dead_strip	_iwl_set_ucode_capabilities
.subsections_via_symbols
