	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function READ_GET
_READ_GET:                              ## @READ_GET
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	24(%rbx), %rsi
	callq	_nv_ro32
	movl	%eax, %r14d
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_nv_ro32
LBB0_2:
	cmpl	(%r12), %r14d
	jne	LBB0_3
## %bb.7:
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	testb	%al, %al
	jne	LBB0_4
## %bb.8:
	movl	$1, %edi
	callq	_udelay
	cmpl	$100001, (%r15)                 ## imm = 0x186A1
	jl	LBB0_4
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_3:
	movl	%r14d, (%r12)
	movl	$1, (%r15)
LBB0_4:
	movl	(%rbx), %ecx
	movl	%r14d, %eax
	subl	%ecx, %eax
	jl	LBB0_6
## %bb.5:
	movl	4(%rbx), %edx
	leal	(%rcx,%rdx,4), %ecx
	cmpl	%ecx, %r14d
	jle	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	sarl	$2, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_READ_GET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function READ_GET
_READ_GET:                              ; @READ_GET
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldr	x1, [x19, #24]
	bl	_nv_ro32
	mov	x20, x0
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_nv_ro32
LBB0_2:
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	tst	w8, #0xff
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x21]
	mov	w9, #34465
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	str	w20, [x22]
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	ldr	w9, [x19]
	subs	w8, w20, w9
	b.lt	LBB0_9
; %bb.8:
	ldr	w10, [x19, #4]
	add	w9, w9, w10, lsl #2
	cmp	w20, w9
	b.le	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	asr	w0, w8, #2
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_READ_GET
.subsections_via_symbols
