	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500usb_init_registers
_rt2500usb_init_registers:              ## @rt2500usb_init_registers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_USB_DEVICE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_MODE_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_REGISTER_TIMEOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	movl	$1, %edx
	callq	_rt2x00usb_vendor_request_sw
	movq	_USB_SINGLE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	movl	$776, %edx                      ## imm = 0x308
	movl	$240, %ecx
	callq	_rt2x00usb_vendor_request_sw
	movq	_TXRX_CSR2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR2_DISABLE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r14), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_MAC_CSR13@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4369, %edx                     ## imm = 0x1111
	callq	_rt2500usb_register_write
	movq	_MAC_CSR14@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$7697, %edx                     ## imm = 0x1E11
	callq	_rt2500usb_register_write
	movq	_MAC_CSR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_MAC_CSR1_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_MAC_CSR1_BBP_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_MAC_CSR1_HOST_READY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_MAC_CSR1_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR5@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR5_BBP_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$13, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR5_BBP_ID0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR5_BBP_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR5_BBP_ID1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR6@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR6_BBP_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR6_BBP_ID0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR6_BBP_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$11, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR6_BBP_ID1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR7@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR7_BBP_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR7_BBP_ID0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR7_BBP_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR7_BBP_ID1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR8@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR8_BBP_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR8_BBP_ID0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR8_BBP_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR8_BBP_ID1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR19@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR19_TSF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR19_TSF_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR19_TBCN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR19_BEACON_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR21@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$59279, %edx                    ## imm = 0xE78F
	callq	_rt2500usb_register_write
	movq	_MAC_CSR9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65309, %edx                    ## imm = 0xFF1D
	callq	_rt2500usb_register_write
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_STATE_AWAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_MAC_CSR1_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_MAC_CSR1_BBP_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movq	_MAC_CSR1_HOST_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	%rbx, %rdi
	callq	_rt2x00_rev
	movq	_RT2570_VERSION_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.4:
	movl	$0, -44(%rbp)
	movq	_PHY_CSR2_LNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	$3, %r14d
	movq	_PHY_CSR2_LNA_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PHY_CSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_PHY_CSR2_LNA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field16
	movq	_PHY_CSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_MAC_CSR11@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_rt2500usb_register_write
	movq	_MAC_CSR22@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$83, %edx
	callq	_rt2500usb_register_write
	movq	_MAC_CSR15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$494, %edx                      ## imm = 0x1EE
	callq	_rt2500usb_register_write
	movq	_MAC_CSR16@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2500usb_register_write
	movq	_MAC_CSR8@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_MAC_CSR8_MAX_FRAME_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR0_ALGORITHM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CIPHER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR0_IV_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR0_KEY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_MAC_CSR18@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_MAC_CSR18_DELAY_AFTER_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$90, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_PHY_CSR4@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_PHY_CSR4_LOW_RF_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
	movq	_TXRX_CSR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR1_AUTO_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2500usb_register_write
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DEVICE_MODE,4,2            ## @USB_DEVICE_MODE
	.comm	_USB_MODE_TEST,4,2              ## @USB_MODE_TEST
	.comm	_REGISTER_TIMEOUT,4,2           ## @REGISTER_TIMEOUT
	.comm	_USB_SINGLE_WRITE,4,2           ## @USB_SINGLE_WRITE
	.comm	_TXRX_CSR2,4,2                  ## @TXRX_CSR2
	.comm	_TXRX_CSR2_DISABLE_RX,4,2       ## @TXRX_CSR2_DISABLE_RX
	.comm	_MAC_CSR13,4,2                  ## @MAC_CSR13
	.comm	_MAC_CSR14,4,2                  ## @MAC_CSR14
	.comm	_MAC_CSR1,4,2                   ## @MAC_CSR1
	.comm	_MAC_CSR1_SOFT_RESET,4,2        ## @MAC_CSR1_SOFT_RESET
	.comm	_MAC_CSR1_BBP_RESET,4,2         ## @MAC_CSR1_BBP_RESET
	.comm	_MAC_CSR1_HOST_READY,4,2        ## @MAC_CSR1_HOST_READY
	.comm	_TXRX_CSR5,4,2                  ## @TXRX_CSR5
	.comm	_TXRX_CSR5_BBP_ID0,4,2          ## @TXRX_CSR5_BBP_ID0
	.comm	_TXRX_CSR5_BBP_ID0_VALID,4,2    ## @TXRX_CSR5_BBP_ID0_VALID
	.comm	_TXRX_CSR5_BBP_ID1,4,2          ## @TXRX_CSR5_BBP_ID1
	.comm	_TXRX_CSR5_BBP_ID1_VALID,4,2    ## @TXRX_CSR5_BBP_ID1_VALID
	.comm	_TXRX_CSR6,4,2                  ## @TXRX_CSR6
	.comm	_TXRX_CSR6_BBP_ID0,4,2          ## @TXRX_CSR6_BBP_ID0
	.comm	_TXRX_CSR6_BBP_ID0_VALID,4,2    ## @TXRX_CSR6_BBP_ID0_VALID
	.comm	_TXRX_CSR6_BBP_ID1,4,2          ## @TXRX_CSR6_BBP_ID1
	.comm	_TXRX_CSR6_BBP_ID1_VALID,4,2    ## @TXRX_CSR6_BBP_ID1_VALID
	.comm	_TXRX_CSR7,4,2                  ## @TXRX_CSR7
	.comm	_TXRX_CSR7_BBP_ID0,4,2          ## @TXRX_CSR7_BBP_ID0
	.comm	_TXRX_CSR7_BBP_ID0_VALID,4,2    ## @TXRX_CSR7_BBP_ID0_VALID
	.comm	_TXRX_CSR7_BBP_ID1,4,2          ## @TXRX_CSR7_BBP_ID1
	.comm	_TXRX_CSR7_BBP_ID1_VALID,4,2    ## @TXRX_CSR7_BBP_ID1_VALID
	.comm	_TXRX_CSR8,4,2                  ## @TXRX_CSR8
	.comm	_TXRX_CSR8_BBP_ID0,4,2          ## @TXRX_CSR8_BBP_ID0
	.comm	_TXRX_CSR8_BBP_ID0_VALID,4,2    ## @TXRX_CSR8_BBP_ID0_VALID
	.comm	_TXRX_CSR8_BBP_ID1,4,2          ## @TXRX_CSR8_BBP_ID1
	.comm	_TXRX_CSR8_BBP_ID1_VALID,4,2    ## @TXRX_CSR8_BBP_ID1_VALID
	.comm	_TXRX_CSR19,4,2                 ## @TXRX_CSR19
	.comm	_TXRX_CSR19_TSF_COUNT,4,2       ## @TXRX_CSR19_TSF_COUNT
	.comm	_TXRX_CSR19_TSF_SYNC,4,2        ## @TXRX_CSR19_TSF_SYNC
	.comm	_TXRX_CSR19_TBCN,4,2            ## @TXRX_CSR19_TBCN
	.comm	_TXRX_CSR19_BEACON_GEN,4,2      ## @TXRX_CSR19_BEACON_GEN
	.comm	_TXRX_CSR21,4,2                 ## @TXRX_CSR21
	.comm	_MAC_CSR9,4,2                   ## @MAC_CSR9
	.comm	_STATE_AWAKE,4,2                ## @STATE_AWAKE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RT2570_VERSION_C,8,3           ## @RT2570_VERSION_C
	.comm	_PHY_CSR2,4,2                   ## @PHY_CSR2
	.comm	_PHY_CSR2_LNA,4,2               ## @PHY_CSR2_LNA
	.comm	_PHY_CSR2_LNA_MODE,4,2          ## @PHY_CSR2_LNA_MODE
	.comm	_MAC_CSR11,4,2                  ## @MAC_CSR11
	.comm	_MAC_CSR22,4,2                  ## @MAC_CSR22
	.comm	_MAC_CSR15,4,2                  ## @MAC_CSR15
	.comm	_MAC_CSR16,4,2                  ## @MAC_CSR16
	.comm	_MAC_CSR8,4,2                   ## @MAC_CSR8
	.comm	_MAC_CSR8_MAX_FRAME_UNIT,4,2    ## @MAC_CSR8_MAX_FRAME_UNIT
	.comm	_TXRX_CSR0,4,2                  ## @TXRX_CSR0
	.comm	_TXRX_CSR0_ALGORITHM,4,2        ## @TXRX_CSR0_ALGORITHM
	.comm	_CIPHER_NONE,4,2                ## @CIPHER_NONE
	.comm	_TXRX_CSR0_IV_OFFSET,4,2        ## @TXRX_CSR0_IV_OFFSET
	.comm	_IEEE80211_HEADER,4,2           ## @IEEE80211_HEADER
	.comm	_TXRX_CSR0_KEY_ID,4,2           ## @TXRX_CSR0_KEY_ID
	.comm	_MAC_CSR18,4,2                  ## @MAC_CSR18
	.comm	_MAC_CSR18_DELAY_AFTER_BEACON,4,2 ## @MAC_CSR18_DELAY_AFTER_BEACON
	.comm	_PHY_CSR4,4,2                   ## @PHY_CSR4
	.comm	_PHY_CSR4_LOW_RF_LE,4,2         ## @PHY_CSR4_LOW_RF_LE
	.comm	_TXRX_CSR1,4,2                  ## @TXRX_CSR1
	.comm	_TXRX_CSR1_AUTO_SEQUENCE,4,2    ## @TXRX_CSR1_AUTO_SEQUENCE
	.no_dead_strip	_rt2500usb_init_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500usb_init_registers
_rt2500usb_init_registers:              ; @rt2500usb_init_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _USB_DEVICE_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DEVICE_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _USB_MODE_TEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_MODE_TEST@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x20, _REGISTER_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REGISTER_TIMEOUT@GOTPAGEOFF]
	ldr	w4, [x20]
	mov	w2, #1
	bl	_rt2x00usb_vendor_request_sw
Lloh8:
	adrp	x8, _USB_SINGLE_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_SINGLE_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w4, [x20]
	mov	x0, x19
	mov	w2, #776
	mov	w3, #240
	bl	_rt2x00usb_vendor_request_sw
Lloh11:
	adrp	x20, _TXRX_CSR2@GOTPAGE
Lloh12:
	ldr	x20, [x20, _TXRX_CSR2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh13:
	adrp	x8, _TXRX_CSR2_DISABLE_RX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TXRX_CSR2_DISABLE_RX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh16:
	adrp	x8, _MAC_CSR13@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAC_CSR13@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4369
	bl	_rt2500usb_register_write
Lloh19:
	adrp	x8, _MAC_CSR14@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAC_CSR14@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7697
	bl	_rt2500usb_register_write
Lloh22:
	adrp	x20, _MAC_CSR1@GOTPAGE
Lloh23:
	ldr	x20, [x20, _MAC_CSR1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh24:
	adrp	x22, _MAC_CSR1_SOFT_RESET@GOTPAGE
Lloh25:
	ldr	x22, [x22, _MAC_CSR1_SOFT_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh26:
	adrp	x21, _MAC_CSR1_BBP_RESET@GOTPAGE
Lloh27:
	ldr	x21, [x21, _MAC_CSR1_BBP_RESET@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh28:
	adrp	x23, _MAC_CSR1_HOST_READY@GOTPAGE
Lloh29:
	ldr	x23, [x23, _MAC_CSR1_HOST_READY@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh30:
	adrp	x24, _TXRX_CSR5@GOTPAGE
Lloh31:
	ldr	x24, [x24, _TXRX_CSR5@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh32:
	adrp	x8, _TXRX_CSR5_BBP_ID0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TXRX_CSR5_BBP_ID0@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #13
	bl	_rt2x00_set_field16
Lloh35:
	adrp	x8, _TXRX_CSR5_BBP_ID0_VALID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TXRX_CSR5_BBP_ID0_VALID@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh38:
	adrp	x8, _TXRX_CSR5_BBP_ID1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TXRX_CSR5_BBP_ID1@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #12
	bl	_rt2x00_set_field16
Lloh41:
	adrp	x8, _TXRX_CSR5_BBP_ID1_VALID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TXRX_CSR5_BBP_ID1_VALID@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh44:
	adrp	x24, _TXRX_CSR6@GOTPAGE
Lloh45:
	ldr	x24, [x24, _TXRX_CSR6@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh46:
	adrp	x8, _TXRX_CSR6_BBP_ID0@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TXRX_CSR6_BBP_ID0@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #10
	bl	_rt2x00_set_field16
Lloh49:
	adrp	x8, _TXRX_CSR6_BBP_ID0_VALID@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TXRX_CSR6_BBP_ID0_VALID@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh52:
	adrp	x8, _TXRX_CSR6_BBP_ID1@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TXRX_CSR6_BBP_ID1@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #11
	bl	_rt2x00_set_field16
Lloh55:
	adrp	x8, _TXRX_CSR6_BBP_ID1_VALID@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TXRX_CSR6_BBP_ID1_VALID@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh58:
	adrp	x24, _TXRX_CSR7@GOTPAGE
Lloh59:
	ldr	x24, [x24, _TXRX_CSR7@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh60:
	adrp	x8, _TXRX_CSR7_BBP_ID0@GOTPAGE
Lloh61:
	ldr	x8, [x8, _TXRX_CSR7_BBP_ID0@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #7
	bl	_rt2x00_set_field16
Lloh63:
	adrp	x8, _TXRX_CSR7_BBP_ID0_VALID@GOTPAGE
Lloh64:
	ldr	x8, [x8, _TXRX_CSR7_BBP_ID0_VALID@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh66:
	adrp	x8, _TXRX_CSR7_BBP_ID1@GOTPAGE
Lloh67:
	ldr	x8, [x8, _TXRX_CSR7_BBP_ID1@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #6
	bl	_rt2x00_set_field16
Lloh69:
	adrp	x8, _TXRX_CSR7_BBP_ID1_VALID@GOTPAGE
Lloh70:
	ldr	x8, [x8, _TXRX_CSR7_BBP_ID1_VALID@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh72:
	adrp	x24, _TXRX_CSR8@GOTPAGE
Lloh73:
	ldr	x24, [x24, _TXRX_CSR8@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh74:
	adrp	x8, _TXRX_CSR8_BBP_ID0@GOTPAGE
Lloh75:
	ldr	x8, [x8, _TXRX_CSR8_BBP_ID0@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #5
	bl	_rt2x00_set_field16
Lloh77:
	adrp	x8, _TXRX_CSR8_BBP_ID0_VALID@GOTPAGE
Lloh78:
	ldr	x8, [x8, _TXRX_CSR8_BBP_ID0_VALID@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh80:
	adrp	x8, _TXRX_CSR8_BBP_ID1@GOTPAGE
Lloh81:
	ldr	x8, [x8, _TXRX_CSR8_BBP_ID1@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh83:
	adrp	x8, _TXRX_CSR8_BBP_ID1_VALID@GOTPAGE
Lloh84:
	ldr	x8, [x8, _TXRX_CSR8_BBP_ID1_VALID@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh86:
	adrp	x24, _TXRX_CSR19@GOTPAGE
Lloh87:
	ldr	x24, [x24, _TXRX_CSR19@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh88:
	adrp	x8, _TXRX_CSR19_TSF_COUNT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _TXRX_CSR19_TSF_COUNT@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh91:
	adrp	x8, _TXRX_CSR19_TSF_SYNC@GOTPAGE
Lloh92:
	ldr	x8, [x8, _TXRX_CSR19_TSF_SYNC@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh94:
	adrp	x8, _TXRX_CSR19_TBCN@GOTPAGE
Lloh95:
	ldr	x8, [x8, _TXRX_CSR19_TBCN@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
Lloh97:
	adrp	x8, _TXRX_CSR19_BEACON_GEN@GOTPAGE
Lloh98:
	ldr	x8, [x8, _TXRX_CSR19_BEACON_GEN@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh100:
	adrp	x8, _TXRX_CSR21@GOTPAGE
Lloh101:
	ldr	x8, [x8, _TXRX_CSR21@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #59279
	bl	_rt2500usb_register_write
Lloh103:
	adrp	x8, _MAC_CSR9@GOTPAGE
Lloh104:
	ldr	x8, [x8, _MAC_CSR9@GOTPAGEOFF]
Lloh105:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65309
	bl	_rt2500usb_register_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh106:
	adrp	x9, _STATE_AWAKE@GOTPAGE
Lloh107:
	ldr	x9, [x9, _STATE_AWAKE@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh109:
	adrp	x8, _EBUSY@GOTPAGE
Lloh110:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh111:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x21]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	mov	x0, x19
	bl	_rt2x00_rev
Lloh112:
	adrp	x8, _RT2570_VERSION_C@GOTPAGE
Lloh113:
	ldr	x8, [x8, _RT2570_VERSION_C@GOTPAGEOFF]
Lloh114:
	ldr	x8, [x8]
Lloh115:
	adrp	x20, _PHY_CSR2@GOTPAGE
Lloh116:
	ldr	x20, [x20, _PHY_CSR2@GOTPAGEOFF]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	str	wzr, [sp, #12]
Lloh117:
	adrp	x8, _PHY_CSR2_LNA@GOTPAGE
Lloh118:
	ldr	x8, [x8, _PHY_CSR2_LNA@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	mov	w2, #3
Lloh120:
	adrp	x8, _PHY_CSR2_LNA_MODE@GOTPAGE
Lloh121:
	ldr	x8, [x8, _PHY_CSR2_LNA_MODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	mov	w2, #0
	str	w0, [sp, #12]
Lloh122:
	adrp	x8, _PHY_CSR2_LNA@GOTPAGE
Lloh123:
	ldr	x8, [x8, _PHY_CSR2_LNA@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh124:
	adrp	x8, _MAC_CSR11@GOTPAGE
Lloh125:
	ldr	x8, [x8, _MAC_CSR11@GOTPAGEOFF]
Lloh126:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_rt2500usb_register_write
Lloh127:
	adrp	x8, _MAC_CSR22@GOTPAGE
Lloh128:
	ldr	x8, [x8, _MAC_CSR22@GOTPAGEOFF]
Lloh129:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #83
	bl	_rt2500usb_register_write
Lloh130:
	adrp	x8, _MAC_CSR15@GOTPAGE
Lloh131:
	ldr	x8, [x8, _MAC_CSR15@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #494
	bl	_rt2500usb_register_write
Lloh133:
	adrp	x8, _MAC_CSR16@GOTPAGE
Lloh134:
	ldr	x8, [x8, _MAC_CSR16@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rt2500usb_register_write
Lloh136:
	adrp	x20, _MAC_CSR8@GOTPAGE
Lloh137:
	ldr	x20, [x20, _MAC_CSR8@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh138:
	adrp	x8, _MAC_CSR8_MAX_FRAME_UNIT@GOTPAGE
Lloh139:
	ldr	x8, [x8, _MAC_CSR8_MAX_FRAME_UNIT@GOTPAGEOFF]
Lloh140:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh141:
	adrp	x20, _TXRX_CSR0@GOTPAGE
Lloh142:
	ldr	x20, [x20, _TXRX_CSR0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh143:
	adrp	x8, _TXRX_CSR0_ALGORITHM@GOTPAGE
Lloh144:
	ldr	x8, [x8, _TXRX_CSR0_ALGORITHM@GOTPAGEOFF]
Lloh145:
	ldr	w1, [x8]
Lloh146:
	adrp	x8, _CIPHER_NONE@GOTPAGE
Lloh147:
	ldr	x8, [x8, _CIPHER_NONE@GOTPAGEOFF]
Lloh148:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh149:
	adrp	x8, _TXRX_CSR0_IV_OFFSET@GOTPAGE
Lloh150:
	ldr	x8, [x8, _TXRX_CSR0_IV_OFFSET@GOTPAGEOFF]
Lloh151:
	ldr	w1, [x8]
Lloh152:
	adrp	x8, _IEEE80211_HEADER@GOTPAGE
Lloh153:
	ldr	x8, [x8, _IEEE80211_HEADER@GOTPAGEOFF]
Lloh154:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field16
Lloh155:
	adrp	x8, _TXRX_CSR0_KEY_ID@GOTPAGE
Lloh156:
	ldr	x8, [x8, _TXRX_CSR0_KEY_ID@GOTPAGEOFF]
Lloh157:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh158:
	adrp	x20, _MAC_CSR18@GOTPAGE
Lloh159:
	ldr	x20, [x20, _MAC_CSR18@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh160:
	adrp	x8, _MAC_CSR18_DELAY_AFTER_BEACON@GOTPAGE
Lloh161:
	ldr	x8, [x8, _MAC_CSR18_DELAY_AFTER_BEACON@GOTPAGEOFF]
Lloh162:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #90
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh163:
	adrp	x20, _PHY_CSR4@GOTPAGE
Lloh164:
	ldr	x20, [x20, _PHY_CSR4@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh165:
	adrp	x8, _PHY_CSR4_LOW_RF_LE@GOTPAGE
Lloh166:
	ldr	x8, [x8, _PHY_CSR4_LOW_RF_LE@GOTPAGEOFF]
Lloh167:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
Lloh168:
	adrp	x20, _TXRX_CSR1@GOTPAGE
Lloh169:
	ldr	x20, [x20, _TXRX_CSR1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh170:
	adrp	x8, _TXRX_CSR1_AUTO_SEQUENCE@GOTPAGE
Lloh171:
	ldr	x8, [x8, _TXRX_CSR1_AUTO_SEQUENCE@GOTPAGEOFF]
Lloh172:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGot	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGot	Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGot	Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGot	Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DEVICE_MODE,4,2            ; @USB_DEVICE_MODE
	.comm	_USB_MODE_TEST,4,2              ; @USB_MODE_TEST
	.comm	_REGISTER_TIMEOUT,4,2           ; @REGISTER_TIMEOUT
	.comm	_USB_SINGLE_WRITE,4,2           ; @USB_SINGLE_WRITE
	.comm	_TXRX_CSR2,4,2                  ; @TXRX_CSR2
	.comm	_TXRX_CSR2_DISABLE_RX,4,2       ; @TXRX_CSR2_DISABLE_RX
	.comm	_MAC_CSR13,4,2                  ; @MAC_CSR13
	.comm	_MAC_CSR14,4,2                  ; @MAC_CSR14
	.comm	_MAC_CSR1,4,2                   ; @MAC_CSR1
	.comm	_MAC_CSR1_SOFT_RESET,4,2        ; @MAC_CSR1_SOFT_RESET
	.comm	_MAC_CSR1_BBP_RESET,4,2         ; @MAC_CSR1_BBP_RESET
	.comm	_MAC_CSR1_HOST_READY,4,2        ; @MAC_CSR1_HOST_READY
	.comm	_TXRX_CSR5,4,2                  ; @TXRX_CSR5
	.comm	_TXRX_CSR5_BBP_ID0,4,2          ; @TXRX_CSR5_BBP_ID0
	.comm	_TXRX_CSR5_BBP_ID0_VALID,4,2    ; @TXRX_CSR5_BBP_ID0_VALID
	.comm	_TXRX_CSR5_BBP_ID1,4,2          ; @TXRX_CSR5_BBP_ID1
	.comm	_TXRX_CSR5_BBP_ID1_VALID,4,2    ; @TXRX_CSR5_BBP_ID1_VALID
	.comm	_TXRX_CSR6,4,2                  ; @TXRX_CSR6
	.comm	_TXRX_CSR6_BBP_ID0,4,2          ; @TXRX_CSR6_BBP_ID0
	.comm	_TXRX_CSR6_BBP_ID0_VALID,4,2    ; @TXRX_CSR6_BBP_ID0_VALID
	.comm	_TXRX_CSR6_BBP_ID1,4,2          ; @TXRX_CSR6_BBP_ID1
	.comm	_TXRX_CSR6_BBP_ID1_VALID,4,2    ; @TXRX_CSR6_BBP_ID1_VALID
	.comm	_TXRX_CSR7,4,2                  ; @TXRX_CSR7
	.comm	_TXRX_CSR7_BBP_ID0,4,2          ; @TXRX_CSR7_BBP_ID0
	.comm	_TXRX_CSR7_BBP_ID0_VALID,4,2    ; @TXRX_CSR7_BBP_ID0_VALID
	.comm	_TXRX_CSR7_BBP_ID1,4,2          ; @TXRX_CSR7_BBP_ID1
	.comm	_TXRX_CSR7_BBP_ID1_VALID,4,2    ; @TXRX_CSR7_BBP_ID1_VALID
	.comm	_TXRX_CSR8,4,2                  ; @TXRX_CSR8
	.comm	_TXRX_CSR8_BBP_ID0,4,2          ; @TXRX_CSR8_BBP_ID0
	.comm	_TXRX_CSR8_BBP_ID0_VALID,4,2    ; @TXRX_CSR8_BBP_ID0_VALID
	.comm	_TXRX_CSR8_BBP_ID1,4,2          ; @TXRX_CSR8_BBP_ID1
	.comm	_TXRX_CSR8_BBP_ID1_VALID,4,2    ; @TXRX_CSR8_BBP_ID1_VALID
	.comm	_TXRX_CSR19,4,2                 ; @TXRX_CSR19
	.comm	_TXRX_CSR19_TSF_COUNT,4,2       ; @TXRX_CSR19_TSF_COUNT
	.comm	_TXRX_CSR19_TSF_SYNC,4,2        ; @TXRX_CSR19_TSF_SYNC
	.comm	_TXRX_CSR19_TBCN,4,2            ; @TXRX_CSR19_TBCN
	.comm	_TXRX_CSR19_BEACON_GEN,4,2      ; @TXRX_CSR19_BEACON_GEN
	.comm	_TXRX_CSR21,4,2                 ; @TXRX_CSR21
	.comm	_MAC_CSR9,4,2                   ; @MAC_CSR9
	.comm	_STATE_AWAKE,4,2                ; @STATE_AWAKE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RT2570_VERSION_C,8,3           ; @RT2570_VERSION_C
	.comm	_PHY_CSR2,4,2                   ; @PHY_CSR2
	.comm	_PHY_CSR2_LNA,4,2               ; @PHY_CSR2_LNA
	.comm	_PHY_CSR2_LNA_MODE,4,2          ; @PHY_CSR2_LNA_MODE
	.comm	_MAC_CSR11,4,2                  ; @MAC_CSR11
	.comm	_MAC_CSR22,4,2                  ; @MAC_CSR22
	.comm	_MAC_CSR15,4,2                  ; @MAC_CSR15
	.comm	_MAC_CSR16,4,2                  ; @MAC_CSR16
	.comm	_MAC_CSR8,4,2                   ; @MAC_CSR8
	.comm	_MAC_CSR8_MAX_FRAME_UNIT,4,2    ; @MAC_CSR8_MAX_FRAME_UNIT
	.comm	_TXRX_CSR0,4,2                  ; @TXRX_CSR0
	.comm	_TXRX_CSR0_ALGORITHM,4,2        ; @TXRX_CSR0_ALGORITHM
	.comm	_CIPHER_NONE,4,2                ; @CIPHER_NONE
	.comm	_TXRX_CSR0_IV_OFFSET,4,2        ; @TXRX_CSR0_IV_OFFSET
	.comm	_IEEE80211_HEADER,4,2           ; @IEEE80211_HEADER
	.comm	_TXRX_CSR0_KEY_ID,4,2           ; @TXRX_CSR0_KEY_ID
	.comm	_MAC_CSR18,4,2                  ; @MAC_CSR18
	.comm	_MAC_CSR18_DELAY_AFTER_BEACON,4,2 ; @MAC_CSR18_DELAY_AFTER_BEACON
	.comm	_PHY_CSR4,4,2                   ; @PHY_CSR4
	.comm	_PHY_CSR4_LOW_RF_LE,4,2         ; @PHY_CSR4_LOW_RF_LE
	.comm	_TXRX_CSR1,4,2                  ; @TXRX_CSR1
	.comm	_TXRX_CSR1_AUTO_SEQUENCE,4,2    ; @TXRX_CSR1_AUTO_SEQUENCE
	.no_dead_strip	_rt2500usb_init_registers
.subsections_via_symbols
