	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_get_version
_rtl_get_version:                       ## @rtl_get_version
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_RTL8152_REQ_GET_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RTL8152_REQT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PLA_TCR0@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%eax, %esi
	pushq	$500                            ## imm = 0x1F4
	pushq	$4
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:
	movl	(%rbx), %edi
	callq	___le32_to_cpu
	movl	%eax, %r15d
	sarl	$16, %r15d
	movq	_VERSION_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$23567, %r15d                   ## imm = 0x5C0F
	jle	LBB0_6
## %bb.13:
	cmpl	$23599, %r15d                   ## imm = 0x5C2F
	jle	LBB0_14
## %bb.17:
	cmpl	$23600, %r15d                   ## imm = 0x5C30
	je	LBB0_23
## %bb.18:
	cmpl	$24576, %r15d                   ## imm = 0x6000
	je	LBB0_25
## %bb.19:
	cmpl	$24592, %r15d                   ## imm = 0x6010
	jne	LBB0_4
## %bb.20:
	movq	_RTL_VER_09@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movq	_RTL_VER_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_27
LBB0_6:
	cmpl	$19471, %r15d                   ## imm = 0x4C0F
	jg	LBB0_10
## %bb.7:
	cmpl	$18432, %r15d                   ## imm = 0x4800
	je	LBB0_24
## %bb.8:
	cmpl	$19456, %r15d                   ## imm = 0x4C00
	jne	LBB0_4
## %bb.9:
	movq	_RTL_VER_01@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_14:
	cmpl	$23568, %r15d                   ## imm = 0x5C10
	je	LBB0_22
## %bb.15:
	cmpl	$23584, %r15d                   ## imm = 0x5C20
	jne	LBB0_4
## %bb.16:
	movq	_RTL_VER_05@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_10:
	cmpl	$19472, %r15d                   ## imm = 0x4C10
	je	LBB0_21
## %bb.11:
	cmpl	$23552, %r15d                   ## imm = 0x5C00
	jne	LBB0_4
## %bb.12:
	movq	_RTL_VER_03@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	movq	_RTL_VER_06@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_RTL_VER_08@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movq	_RTL_VER_07@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_22:
	movq	_RTL_VER_04@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_21:
	movq	_RTL_VER_02@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ebx
LBB0_27:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_28:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RTL8152_REQ_GET_REGS,4,2       ## @RTL8152_REQ_GET_REGS
	.comm	_RTL8152_REQT_READ,4,2          ## @RTL8152_REQT_READ
	.comm	_PLA_TCR0,4,2                   ## @PLA_TCR0
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_VERSION_MASK,4,2               ## @VERSION_MASK
	.comm	_RTL_VER_01,4,2                 ## @RTL_VER_01
	.comm	_RTL_VER_02,4,2                 ## @RTL_VER_02
	.comm	_RTL_VER_03,4,2                 ## @RTL_VER_03
	.comm	_RTL_VER_04,4,2                 ## @RTL_VER_04
	.comm	_RTL_VER_05,4,2                 ## @RTL_VER_05
	.comm	_RTL_VER_06,4,2                 ## @RTL_VER_06
	.comm	_RTL_VER_07,4,2                 ## @RTL_VER_07
	.comm	_RTL_VER_08,4,2                 ## @RTL_VER_08
	.comm	_RTL_VER_09,4,2                 ## @RTL_VER_09
	.comm	_RTL_VER_UNKNOWN,4,2            ## @RTL_VER_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown version 0x%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Detected version 0x%04x\n"

	.no_dead_strip	_rtl_get_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_get_version
_rtl_get_version:                       ; @rtl_get_version
	.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	x19, x0
	bl	_interface_to_usbdev
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_27
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _RTL8152_REQ_GET_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8152_REQ_GET_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _RTL8152_REQT_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL8152_REQT_READ@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _PLA_TCR0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PLA_TCR0@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _MCU_TYPE_PLA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCU_TYPE_PLA@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x20
	mov	x6, x21
	mov	w7, #4
	bl	_usb_control_msg
	cmp	w0, #0
	b.le	LBB0_8
; %bb.2:
	ldr	w0, [x21]
	bl	___le32_to_cpu
Lloh15:
	adrp	x8, _VERSION_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VERSION_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w20, w8, w0, asr #16
	mov	x0, x21
	bl	_kfree
	mov	w8, #23567
	cmp	w20, w8
	b.le	LBB0_10
; %bb.3:
	mov	w8, #23599
	cmp	w20, w8
	b.le	LBB0_14
; %bb.4:
	mov	w8, #23600
	cmp	w20, w8
	b.eq	LBB0_20
; %bb.5:
	cmp	w20, #6, lsl #12                ; =24576
	b.eq	LBB0_21
; %bb.6:
	mov	w8, #24592
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _RTL_VER_09@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RTL_VER_09@GOTPAGEOFF]
	b	LBB0_25
LBB0_8:
	mov	x0, x21
	bl	_kfree
	mov	w20, #0
LBB0_9:
Lloh20:
	adrp	x8, _RTL_VER_UNKNOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTL_VER_UNKNOWN@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_info
	b	LBB0_26
LBB0_10:
	mov	w8, #19471
	cmp	w20, w8
	b.gt	LBB0_17
; %bb.11:
	mov	w8, #18432
	cmp	w20, w8
	b.eq	LBB0_22
; %bb.12:
	mov	w8, #19456
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.13:
Lloh25:
	adrp	x8, _RTL_VER_01@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RTL_VER_01@GOTPAGEOFF]
	b	LBB0_25
LBB0_14:
	mov	w8, #23568
	cmp	w20, w8
	b.eq	LBB0_23
; %bb.15:
	mov	w8, #23584
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.16:
Lloh27:
	adrp	x8, _RTL_VER_05@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTL_VER_05@GOTPAGEOFF]
	b	LBB0_25
LBB0_17:
	mov	w8, #19472
	cmp	w20, w8
	b.eq	LBB0_24
; %bb.18:
	mov	w8, #23552
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.19:
Lloh29:
	adrp	x8, _RTL_VER_03@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RTL_VER_03@GOTPAGEOFF]
	b	LBB0_25
LBB0_20:
Lloh31:
	adrp	x8, _RTL_VER_06@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RTL_VER_06@GOTPAGEOFF]
	b	LBB0_25
LBB0_21:
Lloh33:
	adrp	x8, _RTL_VER_08@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTL_VER_08@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh35:
	adrp	x8, _RTL_VER_07@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RTL_VER_07@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh37:
	adrp	x8, _RTL_VER_04@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RTL_VER_04@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh39:
	adrp	x8, _RTL_VER_02@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RTL_VER_02@GOTPAGEOFF]
LBB0_25:
	ldr	w21, [x8]
LBB0_26:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_27:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RTL8152_REQ_GET_REGS,4,2       ; @RTL8152_REQ_GET_REGS
	.comm	_RTL8152_REQT_READ,4,2          ; @RTL8152_REQT_READ
	.comm	_PLA_TCR0,4,2                   ; @PLA_TCR0
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_VERSION_MASK,4,2               ; @VERSION_MASK
	.comm	_RTL_VER_01,4,2                 ; @RTL_VER_01
	.comm	_RTL_VER_02,4,2                 ; @RTL_VER_02
	.comm	_RTL_VER_03,4,2                 ; @RTL_VER_03
	.comm	_RTL_VER_04,4,2                 ; @RTL_VER_04
	.comm	_RTL_VER_05,4,2                 ; @RTL_VER_05
	.comm	_RTL_VER_06,4,2                 ; @RTL_VER_06
	.comm	_RTL_VER_07,4,2                 ; @RTL_VER_07
	.comm	_RTL_VER_08,4,2                 ; @RTL_VER_08
	.comm	_RTL_VER_09,4,2                 ; @RTL_VER_09
	.comm	_RTL_VER_UNKNOWN,4,2            ; @RTL_VER_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown version 0x%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Detected version 0x%04x\n"

	.no_dead_strip	_rtl_get_version
.subsections_via_symbols
