	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_get_antenna          ## -- Begin function rt2x00mac_get_antenna
	.p2align	4, 0x90
_rt2x00mac_get_antenna:                 ## @rt2x00mac_get_antenna
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_ANTENNA_TX_DIVERSITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	leaq	4(%rax), %r8
	leaq	8(%rax), %rdi
	testl	%ecx, %ecx
	movq	_ANTENNA_HW_DIVERSITY@GOTPCREL(%rip), %rcx
	cmovneq	%rcx, %rdi
	movl	(%rdi), %edi
	movl	%edi, (%rsi)
	movq	_ANTENNA_RX_DIVERSITY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rax), %esi
	cmovneq	%rcx, %r8
	movl	(%r8), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANTENNA_TX_DIVERSITY,4,2       ## @ANTENNA_TX_DIVERSITY
	.comm	_ANTENNA_HW_DIVERSITY,4,2       ## @ANTENNA_HW_DIVERSITY
	.comm	_ANTENNA_RX_DIVERSITY,4,2       ## @ANTENNA_RX_DIVERSITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_get_antenna          ; -- Begin function rt2x00mac_get_antenna
	.p2align	2
_rt2x00mac_get_antenna:                 ; @rt2x00mac_get_antenna
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	mov	x9, x8
	ldr	w10, [x9], #8
Lloh0:
	adrp	x11, _ANTENNA_TX_DIVERSITY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ANTENNA_TX_DIVERSITY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _ANTENNA_HW_DIVERSITY@GOTPAGE
Lloh4:
	ldr	x12, [x12, _ANTENNA_HW_DIVERSITY@GOTPAGEOFF]
	tst	w11, w10
	csel	x9, x9, x12, eq
	ldr	w9, [x9]
	str	w9, [x1]
	ldr	w9, [x8], #4
Lloh5:
	adrp	x10, _ANTENNA_RX_DIVERSITY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ANTENNA_RX_DIVERSITY@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x8, x8, x12, eq
	ldr	w8, [x8]
	str	w8, [x2]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ANTENNA_TX_DIVERSITY,4,2       ; @ANTENNA_TX_DIVERSITY
	.comm	_ANTENNA_HW_DIVERSITY,4,2       ; @ANTENNA_HW_DIVERSITY
	.comm	_ANTENNA_RX_DIVERSITY,4,2       ; @ANTENNA_RX_DIVERSITY
.subsections_via_symbols
