	.file	"extr_ar5211_misc.c_ar5211SetCapability.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar5211SetCapability
	.type	ar5211SetCapability, @function
ar5211SetCapability:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	esi, 128
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ath_hal_setcapability@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	AH_PRIVATE@PLT
	and	r12d, 6
	mov	rdi, rbp
	mov	DWORD PTR [rax], r12d
	call	AH_PRIVATE@PLT
	mov	esi, DWORD PTR AR_DIAG_SW[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	call	OS_REG_WRITE@PLT
	mov	eax, DWORD PTR AH_TRUE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar5211SetCapability, .-ar5211SetCapability
	.comm	AR_DIAG_SW,4,4
	.comm	AH_TRUE,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_ar5211_misc.c_ar5211SetCapability.c"
	.text
	.align	2
	.global	ar5211SetCapability
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5211SetCapability, %function
ar5211SetCapability:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	beq	.L9
	b	ath_hal_setcapability
.L9:
	push	{r4, r5, r6, lr}
	mov	r4, r3
	mov	r5, r0
	bl	AH_PRIVATE
	and	r3, r4, #6
	ldr	r2, .L10
	str	r3, [r0]
	mov	r0, r5
	ldr	r4, [r2]
	bl	AH_PRIVATE
	mov	r1, r4
	ldr	r2, [r0]
	mov	r0, r5
	bl	OS_REG_WRITE
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	AR_DIAG_SW
	.word	AH_TRUE
	.size	ar5211SetCapability, .-ar5211SetCapability
	.comm	AR_DIAG_SW,4,4
	.comm	AH_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
