	.file	"extr_if_iwm.c_iwm_set_ucode_capabilities.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"capa flags index %d larger than supported by driver\n"
	.text
	.p2align 4
	.type	iwm_set_ucode_capabilities, @function
iwm_set_ucode_capabilities:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR 4[rsi]
	call	le32toh@PLT
	mov	edi, DWORD PTR [rbx]
	xor	ebx, ebx
	mov	r14d, eax
	call	le32toh@PLT
	mov	edi, DWORD PTR IWM_NUM_UCODE_TLV_CAPA[rip]
	mov	esi, 32
	mov	r13d, r14d
	mov	ebp, eax
	sal	r13d, 5
	call	howmany@PLT
	cmp	eax, r14d
	ja	.L5
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	cmp	ebx, 32
	je	.L3
.L5:
	mov	eax, r15d
	mov	ecx, ebx
	sal	eax, cl
	test	eax, ebp
	je	.L4
	mov	edi, DWORD PTR [r12]
	lea	esi, [rbx+r13]
	add	ebx, 1
	call	setbit@PLT
	cmp	ebx, 32
	jne	.L5
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	device_printf@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	iwm_set_ucode_capabilities, .-iwm_set_ucode_capabilities
	.comm	IWM_NUM_UCODE_TLV_CAPA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_iwm.c_iwm_set_ucode_capabilities.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"capa flags index %d larger than supported by driver"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwm_set_ucode_capabilities, %function
iwm_set_ucode_capabilities:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r1, #4]
	mov	r4, r1
	mov	r8, r2
	bl	le32toh
	mov	r7, r0
	ldr	r0, [r4]
	bl	le32toh
	ldr	r3, .L13
	mov	r5, r0
	mov	r1, #32
	ldr	r0, [r3]
	bl	howmany
	cmp	r0, r7
	movhi	r4, #0
	movhi	r6, #1
	lslhi	r7, r7, #5
	bhi	.L5
	b	.L12
.L4:
	add	r4, r4, #1
	cmp	r4, #32
	beq	.L3
.L5:
	ands	r3, r5, r6, lsl r4
	beq	.L4
	add	r1, r4, r7
	ldr	r0, [r8]
	add	r4, r4, #1
	bl	setbit
	cmp	r4, #32
	bne	.L5
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r2, r7
	ldr	r0, [r6]
	ldr	r1, .L13+4
	bl	device_printf
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	IWM_NUM_UCODE_TLV_CAPA
	.word	.LC0
	.size	iwm_set_ucode_capabilities, .-iwm_set_ucode_capabilities
	.comm	IWM_NUM_UCODE_TLV_CAPA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
