	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_config_antenna_2529
_rt61pci_config_antenna_2529:           ## @rt61pci_config_antenna_2529
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$3, %esi
	callq	_rt61pci_bbp_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_rt61pci_bbp_read
	movl	%eax, -32(%rbp)
	movq	%rbx, %rdi
	movl	$77, %esi
	callq	_rt61pci_bbp_read
	movl	%eax, -28(%rbp)
	movl	(%r15), %r15d
	movq	_BBP_R4_RX_ANTENNA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_BBP_R77_RX_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	cmpl	$130, %r15d
	jne	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_2:
	movl	$3, %edx
	callq	_rt2x00_set_field8
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
LBB0_3:
	callq	_rt61pci_config_antenna_2529_rx
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	$77, %esi
	callq	_rt61pci_bbp_write
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	%r14d, %edx
	callq	_rt61pci_bbp_write
	movl	-32(%rbp), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_rt61pci_bbp_write
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBP_R4_RX_ANTENNA_CONTROL,4,2  ## @BBP_R4_RX_ANTENNA_CONTROL
	.comm	_BBP_R77_RX_ANTENNA,4,2         ## @BBP_R77_RX_ANTENNA
	.no_dead_strip	_rt61pci_config_antenna_2529
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_config_antenna_2529
_rt61pci_config_antenna_2529:           ; @rt61pci_config_antenna_2529
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	mov	w1, #3
	bl	_rt61pci_bbp_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4
	bl	_rt61pci_bbp_read
	str	w0, [sp, #12]
	mov	x0, x19
	mov	w1, #77
	bl	_rt61pci_bbp_read
	str	w0, [sp, #8]
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _BBP_R4_RX_ANTENNA_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBP_R4_RX_ANTENNA_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh3:
	adrp	x8, _BBP_R77_RX_ANTENNA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BBP_R77_RX_ANTENNA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	cmp	w21, #130
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_rt2x00_set_field8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	b	LBB0_3
LBB0_2:
	mov	w2, #3
	bl	_rt2x00_set_field8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
LBB0_3:
	bl	_rt61pci_config_antenna_2529_rx
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #77
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #3
	mov	x2, x20
	bl	_rt61pci_bbp_write
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #4
	bl	_rt61pci_bbp_write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BBP_R4_RX_ANTENNA_CONTROL,4,2  ; @BBP_R4_RX_ANTENNA_CONTROL
	.comm	_BBP_R77_RX_ANTENNA,4,2         ; @BBP_R77_RX_ANTENNA
	.no_dead_strip	_rt61pci_config_antenna_2529
.subsections_via_symbols
