	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rtl8xxxu_identify_chip
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
LCPI0_1:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
LCPI0_2:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rtl8xxxu_identify_chip:                ## @rtl8xxxu_identify_chip
	.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	%rdi, %rbx
	movq	88(%rdi), %r14
	movq	_REG_SYS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl8xxxu_read32
	movl	%eax, %r15d
	movq	_SYS_CFG_CHIP_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_SYS_CFG_CHIP_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%rbx)
	movq	_SYS_CFG_TRP_VAUX_EN@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_info
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_53
LBB0_3:
	movq	_SYS_CFG_BT_FUNC@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	76(%rbx), %edi
	cmpl	$3, %eax
	jl	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movl	$131, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_SYS_CFG_TYPE_ID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.7:
	movq	_REG_HPON_FSM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read32
	movq	_HPON_FSM_BONDING_MASK@GOTPCREL(%rip), %rdx
	movq	80(%rbx), %rsi
	movq	_HPON_FSM_BONDING_1T2R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	76(%rbx), %edi
	andl	(%rdx), %eax
	cmpl	$4, (%rsi)
	jne	LBB0_19
## %bb.8:
	cmpl	%ecx, %eax
	jne	LBB0_21
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	callq	_sprintf
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, 12(%rbx)
	movl	$1, 20(%rbx)
	movq	_RTL8191E@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movl	$1, 8(%rbx)
	movq	_RTL8723A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movl	%eax, 4(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%rbx)
	movl	$1, 20(%rbx)
	movq	_REG_MULTI_FUNC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read32
	movl	%eax, %r15d
	movq	_MULTI_WIFI_FUNC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.12:
	movl	$1, 24(%rbx)
LBB0_13:
	movq	_MULTI_BT_FUNC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_15
## %bb.14:
	movl	$1, 28(%rbx)
LBB0_15:
	movq	_MULTI_GPS_FUNC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_17
## %bb.16:
	movl	$1, 32(%rbx)
LBB0_17:
	movl	$1, 36(%rbx)
	movl	4(%rbx), %eax
	jmp	LBB0_26
LBB0_18:
	movl	76(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_sprintf
	movq	_RTL8188C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_25
LBB0_19:
	cmpl	%ecx, %eax
	jne	LBB0_22
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	callq	_sprintf
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1,2,2,1]
	movups	%xmm0, 8(%rbx)
	movq	_RTL8191C@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.4(%rip), %rsi
	callq	_sprintf
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, 12(%rbx)
	movl	$2, 20(%rbx)
	movl	$132, %eax
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.6(%rip), %rsi
	callq	_sprintf
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,2,2]
	movups	%xmm0, 8(%rbx)
	movq	_RTL8192C@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
LBB0_24:
	movl	%eax, 4(%rbx)
LBB0_25:
	movl	$1, 24(%rbx)
LBB0_26:
	addl	$-131, %eax
	cmpl	$2, %eax
	ja	LBB0_31
## %bb.27:
	movq	_SYS_CFG_VENDOR_EXT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	cmpl	$128, %r15d
	je	LBB0_33
## %bb.28:
	cmpl	$130, %r15d
	je	LBB0_35
## %bb.29:
	cmpl	$129, %r15d
	jne	LBB0_36
## %bb.30:
	movl	72(%rbx), %edi
	jmp	LBB0_32
LBB0_31:
	movq	_SYS_CFG_VENDOR_ID@GOTPCREL(%rip), %rax
	movl	72(%rbx), %edi
	testl	%r15d, (%rax)
	jne	LBB0_34
LBB0_32:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_37
LBB0_33:
	movl	72(%rbx), %edi
LBB0_34:
	leaq	L_.str.10(%rip), %rsi
	callq	_sprintf
	movl	$1, 44(%rbx)
	jmp	LBB0_38
LBB0_35:
	movl	72(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_sprintf
	movl	$1, 40(%rbx)
	jmp	LBB0_38
LBB0_36:
	movl	72(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
LBB0_37:
	callq	_sprintf
LBB0_38:
	movq	_REG_GPIO_OUTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read32
	movq	_GPIO_RF_RL_ID@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	$28, %eax
	movl	%eax, 48(%rbx)
	movq	_REG_NORMAL_SIE_EP_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read16
	movq	_NORMAL_SIE_EP_TX_HIGH_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.39:
	movl	$1, 52(%rbx)
	incl	68(%rbx)
LBB0_40:
	movq	_NORMAL_SIE_EP_TX_NORMAL_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_42
## %bb.41:
	movl	$1, 56(%rbx)
	incl	68(%rbx)
LBB0_42:
	movq	_NORMAL_SIE_EP_TX_LOW_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_44
## %bb.43:
	movl	$1, 60(%rbx)
	movl	68(%rbx), %ecx
	incl	%ecx
	movl	%ecx, 68(%rbx)
	jmp	LBB0_45
LBB0_44:
	movl	68(%rbx), %ecx
LBB0_45:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_53
## %bb.46:
	movl	64(%rbx), %ecx
	leal	-3(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_50
## %bb.47:
	cmpl	$1, %ecx
	je	LBB0_52
## %bb.48:
	cmpl	$2, %ecx
	je	LBB0_51
## %bb.49:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_2
LBB0_50:
	movl	$1, 60(%rbx)
	movl	$3, %ecx
LBB0_51:
	movl	$1, 56(%rbx)
LBB0_52:
	movl	$1, 52(%rbx)
	movl	%ecx, 68(%rbx)
LBB0_53:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_CFG,4,2                ## @REG_SYS_CFG
	.comm	_SYS_CFG_CHIP_VERSION_MASK,4,2  ## @SYS_CFG_CHIP_VERSION_MASK
	.comm	_SYS_CFG_CHIP_VERSION_SHIFT,4,2 ## @SYS_CFG_CHIP_VERSION_SHIFT
	.comm	_SYS_CFG_TRP_VAUX_EN,4,2        ## @SYS_CFG_TRP_VAUX_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported test chip\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_SYS_CFG_BT_FUNC,4,2            ## @SYS_CFG_BT_FUNC
L_.str.1:                               ## @.str.1
	.asciz	"8723BU"

L_.str.2:                               ## @.str.2
	.asciz	"8723AU"

	.comm	_RTL8723A,4,2                   ## @RTL8723A
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ## @REG_MULTI_FUNC_CTRL
	.comm	_MULTI_WIFI_FUNC_EN,4,2         ## @MULTI_WIFI_FUNC_EN
	.comm	_MULTI_BT_FUNC_EN,4,2           ## @MULTI_BT_FUNC_EN
	.comm	_MULTI_GPS_FUNC_EN,4,2          ## @MULTI_GPS_FUNC_EN
	.comm	_SYS_CFG_TYPE_ID,4,2            ## @SYS_CFG_TYPE_ID
	.comm	_REG_HPON_FSM,4,2               ## @REG_HPON_FSM
	.comm	_HPON_FSM_BONDING_MASK,4,2      ## @HPON_FSM_BONDING_MASK
	.comm	_HPON_FSM_BONDING_1T2R,4,2      ## @HPON_FSM_BONDING_1T2R
L_.str.3:                               ## @.str.3
	.asciz	"8191EU"

	.comm	_RTL8191E,4,2                   ## @RTL8191E
L_.str.4:                               ## @.str.4
	.asciz	"8192EU"

L_.str.5:                               ## @.str.5
	.asciz	"8191CU"

	.comm	_RTL8191C,4,2                   ## @RTL8191C
L_.str.6:                               ## @.str.6
	.asciz	"8192CU"

	.comm	_RTL8192C,4,2                   ## @RTL8192C
L_.str.7:                               ## @.str.7
	.asciz	"8188CU"

	.comm	_RTL8188C,4,2                   ## @RTL8188C
	.comm	_SYS_CFG_VENDOR_EXT_MASK,4,2    ## @SYS_CFG_VENDOR_EXT_MASK
L_.str.8:                               ## @.str.8
	.asciz	"TSMC"

L_.str.9:                               ## @.str.9
	.asciz	"SMIC"

L_.str.10:                              ## @.str.10
	.asciz	"UMC"

L_.str.11:                              ## @.str.11
	.asciz	"unknown"

	.comm	_SYS_CFG_VENDOR_ID,4,2          ## @SYS_CFG_VENDOR_ID
	.comm	_REG_GPIO_OUTSTS,4,2            ## @REG_GPIO_OUTSTS
	.comm	_GPIO_RF_RL_ID,4,2              ## @GPIO_RF_RL_ID
	.comm	_REG_NORMAL_SIE_EP_TX,4,2       ## @REG_NORMAL_SIE_EP_TX
	.comm	_NORMAL_SIE_EP_TX_HIGH_MASK,4,2 ## @NORMAL_SIE_EP_TX_HIGH_MASK
	.comm	_NORMAL_SIE_EP_TX_NORMAL_MASK,4,2 ## @NORMAL_SIE_EP_TX_NORMAL_MASK
	.comm	_NORMAL_SIE_EP_TX_LOW_MASK,4,2  ## @NORMAL_SIE_EP_TX_LOW_MASK
L_.str.12:                              ## @.str.12
	.asciz	"Unsupported USB TX end-points\n"

	.no_dead_strip	_rtl8xxxu_identify_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function rtl8xxxu_identify_chip
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
lCPI0_1:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rtl8xxxu_identify_chip:                ; @rtl8xxxu_identify_chip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x20, [x0, #88]
Lloh0:
	adrp	x8, _REG_SYS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SYS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtl8xxxu_read32
Lloh3:
	adrp	x8, _SYS_CFG_CHIP_VERSION_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_CFG_CHIP_VERSION_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _SYS_CFG_CHIP_VERSION_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYS_CFG_CHIP_VERSION_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
Lloh9:
	adrp	x9, _SYS_CFG_TRP_VAUX_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SYS_CFG_TRP_VAUX_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_dev_info
Lloh14:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_53
LBB0_3:
	mov	x21, x0
Lloh17:
	adrp	x9, _SYS_CFG_BT_FUNC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SYS_CFG_BT_FUNC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #76]
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.5:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	mov	w8, #131
	b	LBB0_11
LBB0_6:
Lloh22:
	adrp	x8, _SYS_CFG_TYPE_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SYS_CFG_TYPE_ID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.7:
Lloh25:
	adrp	x8, _REG_HPON_FSM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REG_HPON_FSM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl8xxxu_read32
Lloh28:
	adrp	x8, _HPON_FSM_BONDING_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HPON_FSM_BONDING_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	x9, [x19, #80]
	ldr	w10, [x9]
Lloh31:
	adrp	x9, _HPON_FSM_BONDING_1T2R@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HPON_FSM_BONDING_1T2R@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	ldr	w0, [x19, #76]
	cmp	w10, #4
	b.ne	LBB0_19
; %bb.8:
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.9:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	movi.2s	v0, #2
	stur	d0, [x19, #12]
	mov	w8, #1
	str	w8, [x19, #20]
Lloh36:
	adrp	x8, _RTL8191E@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RTL8191E@GOTPAGEOFF]
	b	LBB0_23
LBB0_10:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	mov	w8, #1
	str	w8, [x19, #8]
Lloh40:
	adrp	x8, _RTL8723A@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RTL8723A@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
LBB0_11:
	str	w8, [x19, #4]
	movi.2s	v0, #1
	stur	d0, [x19, #12]
	mov	w22, #1
	str	w22, [x19, #20]
Lloh43:
	adrp	x8, _REG_MULTI_FUNC_CTRL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _REG_MULTI_FUNC_CTRL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl8xxxu_read32
	mov	x21, x0
Lloh46:
	adrp	x8, _MULTI_WIFI_FUNC_EN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MULTI_WIFI_FUNC_EN@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	str	w22, [x19, #24]
LBB0_13:
Lloh49:
	adrp	x8, _MULTI_BT_FUNC_EN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MULTI_BT_FUNC_EN@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_15:
Lloh52:
	adrp	x8, _MULTI_GPS_FUNC_EN@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MULTI_GPS_FUNC_EN@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_17:
	mov	w8, #1
	str	w8, [x19, #36]
	ldr	w8, [x19, #4]
	b	LBB0_26
LBB0_18:
	ldr	w0, [x19, #76]
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_sprintf
Lloh57:
	adrp	x8, _RTL8188C@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RTL8188C@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	movi.4s	v0, #1
	stur	q0, [x19, #8]
	b	LBB0_25
LBB0_19:
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.20:
Lloh60:
	adrp	x1, l_.str.5@PAGE
Lloh61:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_sprintf
Lloh62:
	adrp	x8, lCPI0_1@PAGE
Lloh63:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x19, #8]
Lloh64:
	adrp	x8, _RTL8191C@GOTPAGE
Lloh65:
	ldr	x8, [x8, _RTL8191C@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
Lloh66:
	adrp	x1, l_.str.4@PAGE
Lloh67:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sprintf
	movi.2s	v0, #2
	stur	d0, [x19, #12]
	mov	w8, #2
	str	w8, [x19, #20]
	mov	w8, #132
	b	LBB0_24
LBB0_22:
Lloh68:
	adrp	x1, l_.str.6@PAGE
Lloh69:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_sprintf
Lloh70:
	adrp	x8, lCPI0_0@PAGE
Lloh71:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
Lloh72:
	adrp	x8, _RTL8192C@GOTPAGE
Lloh73:
	ldr	x8, [x8, _RTL8192C@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
LBB0_24:
	str	w8, [x19, #4]
LBB0_25:
	mov	w9, #1
	str	w9, [x19, #24]
LBB0_26:
	sub	w8, w8, #131
	cmp	w8, #2
	b.hi	LBB0_31
; %bb.27:
Lloh74:
	adrp	x8, _SYS_CFG_VENDOR_EXT_MASK@GOTPAGE
Lloh75:
	ldr	x8, [x8, _SYS_CFG_VENDOR_EXT_MASK@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #128
	b.eq	LBB0_33
; %bb.28:
	cmp	w8, #130
	b.eq	LBB0_35
; %bb.29:
	cmp	w8, #129
	b.ne	LBB0_36
; %bb.30:
	ldr	w0, [x19, #72]
	b	LBB0_32
LBB0_31:
Lloh77:
	adrp	x8, _SYS_CFG_VENDOR_ID@GOTPAGE
Lloh78:
	ldr	x8, [x8, _SYS_CFG_VENDOR_ID@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	ldr	w0, [x19, #72]
	tst	w8, w21
	b.ne	LBB0_34
LBB0_32:
Lloh80:
	adrp	x1, l_.str.8@PAGE
Lloh81:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_37
LBB0_33:
	ldr	w0, [x19, #72]
LBB0_34:
Lloh82:
	adrp	x1, l_.str.10@PAGE
Lloh83:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_sprintf
	mov	w8, #1
	str	w8, [x19, #44]
	b	LBB0_38
LBB0_35:
	ldr	w0, [x19, #72]
Lloh84:
	adrp	x1, l_.str.9@PAGE
Lloh85:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_sprintf
	mov	w8, #1
	str	w8, [x19, #40]
	b	LBB0_38
LBB0_36:
	ldr	w0, [x19, #72]
Lloh86:
	adrp	x1, l_.str.11@PAGE
Lloh87:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_37:
	bl	_sprintf
LBB0_38:
Lloh88:
	adrp	x8, _REG_GPIO_OUTSTS@GOTPAGE
Lloh89:
	ldr	x8, [x8, _REG_GPIO_OUTSTS@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl8xxxu_read32
Lloh91:
	adrp	x8, _GPIO_RF_RL_ID@GOTPAGE
Lloh92:
	ldr	x8, [x8, _GPIO_RF_RL_ID@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #28
	str	w8, [x19, #48]
Lloh94:
	adrp	x8, _REG_NORMAL_SIE_EP_TX@GOTPAGE
Lloh95:
	ldr	x8, [x8, _REG_NORMAL_SIE_EP_TX@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl8xxxu_read16
Lloh97:
	adrp	x8, _NORMAL_SIE_EP_TX_HIGH_MASK@GOTPAGE
Lloh98:
	ldr	x8, [x8, _NORMAL_SIE_EP_TX_HIGH_MASK@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_40
; %bb.39:
	mov	w8, #1
	str	w8, [x19, #52]
	ldr	w8, [x19, #68]
	add	w8, w8, #1
	str	w8, [x19, #68]
LBB0_40:
Lloh100:
	adrp	x8, _NORMAL_SIE_EP_TX_NORMAL_MASK@GOTPAGE
Lloh101:
	ldr	x8, [x8, _NORMAL_SIE_EP_TX_NORMAL_MASK@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_42
; %bb.41:
	mov	w8, #1
	str	w8, [x19, #56]
	ldr	w8, [x19, #68]
	add	w8, w8, #1
	str	w8, [x19, #68]
LBB0_42:
Lloh103:
	adrp	x8, _NORMAL_SIE_EP_TX_LOW_MASK@GOTPAGE
Lloh104:
	ldr	x8, [x8, _NORMAL_SIE_EP_TX_LOW_MASK@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_45
; %bb.43:
	mov	w8, #1
	str	w8, [x19, #60]
	ldr	w8, [x19, #68]
	add	w8, w8, #1
	str	w8, [x19, #68]
	cbz	w8, LBB0_46
LBB0_44:
	mov	w0, #0
	b	LBB0_53
LBB0_45:
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_44
LBB0_46:
	ldr	w8, [x19, #64]
	sub	w9, w8, #3
	cmp	w9, #2
	b.lo	LBB0_50
; %bb.47:
	cmp	w8, #1
	b.eq	LBB0_52
; %bb.48:
	cmp	w8, #2
	b.eq	LBB0_51
; %bb.49:
Lloh106:
	adrp	x1, l_.str.12@PAGE
Lloh107:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_2
LBB0_50:
	mov	w8, #1
	str	w8, [x19, #60]
	mov	w8, #3
LBB0_51:
	mov	w9, #1
	str	w9, [x19, #56]
LBB0_52:
	mov	w0, #0
	mov	w9, #1
	str	w9, [x19, #52]
	str	w8, [x19, #68]
LBB0_53:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdrp	Lloh62, Lloh64
	.loh AdrpLdr	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdrp	Lloh70, Lloh72
	.loh AdrpLdr	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SYS_CFG,4,2                ; @REG_SYS_CFG
	.comm	_SYS_CFG_CHIP_VERSION_MASK,4,2  ; @SYS_CFG_CHIP_VERSION_MASK
	.comm	_SYS_CFG_CHIP_VERSION_SHIFT,4,2 ; @SYS_CFG_CHIP_VERSION_SHIFT
	.comm	_SYS_CFG_TRP_VAUX_EN,4,2        ; @SYS_CFG_TRP_VAUX_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported test chip\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_SYS_CFG_BT_FUNC,4,2            ; @SYS_CFG_BT_FUNC
l_.str.1:                               ; @.str.1
	.asciz	"8723BU"

l_.str.2:                               ; @.str.2
	.asciz	"8723AU"

	.comm	_RTL8723A,4,2                   ; @RTL8723A
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ; @REG_MULTI_FUNC_CTRL
	.comm	_MULTI_WIFI_FUNC_EN,4,2         ; @MULTI_WIFI_FUNC_EN
	.comm	_MULTI_BT_FUNC_EN,4,2           ; @MULTI_BT_FUNC_EN
	.comm	_MULTI_GPS_FUNC_EN,4,2          ; @MULTI_GPS_FUNC_EN
	.comm	_SYS_CFG_TYPE_ID,4,2            ; @SYS_CFG_TYPE_ID
	.comm	_REG_HPON_FSM,4,2               ; @REG_HPON_FSM
	.comm	_HPON_FSM_BONDING_MASK,4,2      ; @HPON_FSM_BONDING_MASK
	.comm	_HPON_FSM_BONDING_1T2R,4,2      ; @HPON_FSM_BONDING_1T2R
l_.str.3:                               ; @.str.3
	.asciz	"8191EU"

	.comm	_RTL8191E,4,2                   ; @RTL8191E
l_.str.4:                               ; @.str.4
	.asciz	"8192EU"

l_.str.5:                               ; @.str.5
	.asciz	"8191CU"

	.comm	_RTL8191C,4,2                   ; @RTL8191C
l_.str.6:                               ; @.str.6
	.asciz	"8192CU"

	.comm	_RTL8192C,4,2                   ; @RTL8192C
l_.str.7:                               ; @.str.7
	.asciz	"8188CU"

	.comm	_RTL8188C,4,2                   ; @RTL8188C
	.comm	_SYS_CFG_VENDOR_EXT_MASK,4,2    ; @SYS_CFG_VENDOR_EXT_MASK
l_.str.8:                               ; @.str.8
	.asciz	"TSMC"

l_.str.9:                               ; @.str.9
	.asciz	"SMIC"

l_.str.10:                              ; @.str.10
	.asciz	"UMC"

l_.str.11:                              ; @.str.11
	.asciz	"unknown"

	.comm	_SYS_CFG_VENDOR_ID,4,2          ; @SYS_CFG_VENDOR_ID
	.comm	_REG_GPIO_OUTSTS,4,2            ; @REG_GPIO_OUTSTS
	.comm	_GPIO_RF_RL_ID,4,2              ; @GPIO_RF_RL_ID
	.comm	_REG_NORMAL_SIE_EP_TX,4,2       ; @REG_NORMAL_SIE_EP_TX
	.comm	_NORMAL_SIE_EP_TX_HIGH_MASK,4,2 ; @NORMAL_SIE_EP_TX_HIGH_MASK
	.comm	_NORMAL_SIE_EP_TX_NORMAL_MASK,4,2 ; @NORMAL_SIE_EP_TX_NORMAL_MASK
	.comm	_NORMAL_SIE_EP_TX_LOW_MASK,4,2  ; @NORMAL_SIE_EP_TX_LOW_MASK
l_.str.12:                              ; @.str.12
	.asciz	"Unsupported USB TX end-points\n"

	.no_dead_strip	_rtl8xxxu_identify_chip
.subsections_via_symbols
