	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_ocp_read
_generic_ocp_read:                      ## @generic_ocp_read
	.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
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_RTL8152_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movl	%r12d, %eax
	andl	$3, %eax
	jne	LBB0_7
## %bb.5:
	testb	$3, %r13b
	jne	LBB0_7
## %bb.6:
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	leal	(%r12,%r13), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jle	LBB0_9
LBB0_7:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$65, %r12d
	jl	LBB0_10
## %bb.11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %ebx
	movl	%r15d, %edx
	movl	$64, %ecx
	movq	%r14, %r8
	callq	_get_registers
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$64, %r13d
	addq	$64, %r14
	leal	-64(%r12), %ecx
	cmpl	$128, %r12d
	movl	%ecx, %r12d
	movl	%ebx, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_12
	jmp	LBB0_15
LBB0_10:
	movl	%r12d, %ecx
LBB0_15:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_get_registers
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_13:
	movl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_rtl_set_unplug
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8152_UNPLUG,4,2             ## @RTL8152_UNPLUG
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_generic_ocp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_ocp_read
_generic_ocp_read:                      ; @generic_ocp_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RTL8152_UNPLUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8152_UNPLUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	cbz	w23, LBB0_7
; %bb.3:
	and	w8, w23, #0x3
	cbnz	w8, LBB0_7
; %bb.4:
	tst	w22, #0x3
	b.ne	LBB0_7
; %bb.5:
	cbz	x20, LBB0_7
; %bb.6:
	add	w8, w23, w22
	cmp	w8, #16, lsl #12                ; =65536
	b.lt	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	w23, #65
	b.lt	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w3, #64
	mov	x4, x20
	bl	_get_registers
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #64
	add	x20, x20, #64
	sub	w3, w23, #64
	cmp	w23, #128
	mov	x23, x3
	b.gt	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	x3, x23
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x4, x20
	bl	_get_registers
LBB0_15:
	mov	x24, x0
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.16:
	mov	x0, x19
	bl	_rtl_set_unplug
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8152_UNPLUG,4,2             ; @RTL8152_UNPLUG
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_generic_ocp_read
.subsections_via_symbols
