	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_antenna_diversity
_rt2x00lib_antenna_diversity:           ## @rt2x00lib_antenna_diversity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %eax
	movq	_ANTENNA_RX_DIVERSITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	_ANTENNA_TX_DIVERSITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	_ANTENNA_MODE_SAMPLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	callq	_rt2x00lib_antenna_diversity_sample
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	testb	$1, (%rdi)
	je	LBB0_8
## %bb.6:
	callq	_rt2x00lib_antenna_diversity_eval
	jmp	LBB0_7
LBB0_2:
	movl	$0, 4(%rdi)
LBB0_7:
	movl	$1, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANTENNA_RX_DIVERSITY,4,2       ## @ANTENNA_RX_DIVERSITY
	.comm	_ANTENNA_TX_DIVERSITY,4,2       ## @ANTENNA_TX_DIVERSITY
	.comm	_ANTENNA_MODE_SAMPLE,4,2        ## @ANTENNA_MODE_SAMPLE
	.no_dead_strip	_rt2x00lib_antenna_diversity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_antenna_diversity
_rt2x00lib_antenna_diversity:           ; @rt2x00lib_antenna_diversity
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _ANTENNA_RX_DIVERSITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ANTENNA_RX_DIVERSITY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _ANTENNA_TX_DIVERSITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ANTENNA_TX_DIVERSITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
Lloh6:
	adrp	x9, _ANTENNA_MODE_SAMPLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ANTENNA_MODE_SAMPLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_rt2x00lib_antenna_diversity_sample
	b	LBB0_8
LBB0_4:
	ldrb	w8, [x0]
	tbnz	w8, #0, LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_rt2x00lib_antenna_diversity_eval
	b	LBB0_8
LBB0_7:
	str	wzr, [x0, #4]
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ANTENNA_RX_DIVERSITY,4,2       ; @ANTENNA_RX_DIVERSITY
	.comm	_ANTENNA_TX_DIVERSITY,4,2       ; @ANTENNA_TX_DIVERSITY
	.comm	_ANTENNA_MODE_SAMPLE,4,2        ; @ANTENNA_MODE_SAMPLE
	.no_dead_strip	_rt2x00lib_antenna_diversity
.subsections_via_symbols
