	.file	"extr_antsel.c_brcms_c_antsel_antcfg_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	brcms_c_antsel_antcfg_get
	.type	brcms_c_antsel_antcfg_get, @function
brcms_c_antsel_antcfg_get:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	test	esi, esi
	jne	.L8
	mov	rsi, QWORD PTR ANT_SELCFG_TX_UNICAST[rip]
	mov	eax, DWORD PTR [rax+rsi*4]
	test	edx, edx
	je	.L9
	mov	edx, DWORD PTR ANT_SELCFG_AUTO[rip]
	mov	esi, edx
	and	esi, eax
	cmp	edx, esi
	je	.L10
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR [r9], eax
	mov	DWORD PTR [rdi], eax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR 48[rsp]
	mov	DWORD PTR [r9], eax
	mov	DWORD PTR [rcx], eax
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR ANT_SELCFG_TX_DEF[rip]
	mov	rcx, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [r9], eax
	mov	DWORD PTR [rcx], eax
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, ecx
	mov	QWORD PTR 24[rsp], r9
	mov	DWORD PTR 20[rsp], r8d
	mov	QWORD PTR 8[rsp], rdi
	call	brcms_c_antsel_id2antcfg@PLT
	mov	r9, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR 20[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR [r9], eax
	mov	esi, r8d
	call	brcms_c_antsel_id2antcfg@PLT
	mov	rcx, QWORD PTR 48[rsp]
	mov	DWORD PTR [rcx], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	brcms_c_antsel_antcfg_get, .-brcms_c_antsel_antcfg_get
	.comm	ANT_SELCFG_TX_UNICAST,8,8
	.comm	ANT_SELCFG_TX_DEF,8,8
	.comm	ANT_SELCFG_AUTO,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_antsel.c_brcms_c_antsel_antcfg_get.c"
	.text
	.align	2
	.global	brcms_c_antsel_antcfg_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_c_antsel_antcfg_get, %function
brcms_c_antsel_antcfg_get:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, lr}
	ldr	r1, [r0]
	bne	.L8
	ldr	ip, .L9
	cmp	r2, #0
	ldr	r2, [ip]
	ldr	r2, [r1, r2, lsl #2]
	bne	.L4
.L5:
	ldr	r3, [sp, #12]
	str	r2, [r3]
	ldr	r3, [sp, #16]
	str	r2, [r3]
	pop	{r4, pc}
.L4:
	ldr	r1, .L9+4
	ldr	r1, [r1]
	bics	r1, r1, r2
	bne	.L5
	mov	r1, r3
	mov	r4, r0
	bl	brcms_c_antsel_id2antcfg
	ldr	r3, [sp, #12]
	ldr	r1, [sp, #8]
	str	r0, [r3]
	mov	r0, r4
	bl	brcms_c_antsel_id2antcfg
	ldr	r3, [sp, #16]
	str	r0, [r3]
	pop	{r4, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [r2]
	ldr	r2, [sp, #16]
	str	r3, [r2]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	ANT_SELCFG_TX_UNICAST
	.word	ANT_SELCFG_AUTO
	.word	ANT_SELCFG_TX_DEF
	.size	brcms_c_antsel_antcfg_get, .-brcms_c_antsel_antcfg_get
	.comm	ANT_SELCFG_TX_UNICAST,4,4
	.comm	ANT_SELCFG_TX_DEF,4,4
	.comm	ANT_SELCFG_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
