	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_qnx_read_at
_debug_qnx_read_at:                     ## @debug_qnx_read_at
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_c_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_UT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_c_addr@GOTPCREL(%rip), %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpq	%r12, %rcx
	je	LBB0_4
## %bb.2:
	cmpq	%r12, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_4:
	movl	$-1, %eax
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.5:
	cmpq	%r12, %rcx
	jle	LBB0_15
## %bb.6:
	movslq	%ebx, %rcx
	imulq	$274877907, %rcx, %rax          ## imm = 0x10624DD3
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$37, %rax
	addl	%esi, %eax
	imull	$500, %eax, %esi                ## imm = 0x1F4
	subl	%esi, %ecx
	cmpl	$500, %ebx                      ## imm = 0x1F4
	jb	LBB0_7
## %bb.8:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	movq	_desc@GOTPCREL(%rip), %r14
	movq	%r12, %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$500, %ecx                      ## imm = 0x1F4
	callq	_qnxr_read_memory
	addq	$2000, %r15                     ## imm = 0x7D0
	addq	$500, %rbx                      ## imm = 0x1F4
	decq	%r13
	jne	LBB0_9
## %bb.10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_c_addr@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_7:
	xorl	%esi, %esi
	testl	%ecx, %ecx
	je	LBB0_13
LBB0_12:
	movq	_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r15,%rsi,4), %rdx
	addq	%r12, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_qnxr_read_memory
LBB0_13:
	movq	%r12, (%r14)
	movq	_c_size@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_14:
	movl	%ebx, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c_buff,8,3                     ## @c_buff
	.comm	_UT64_MAX,8,3                   ## @UT64_MAX
	.comm	_c_addr,8,3                     ## @c_addr
	.comm	_desc,4,2                       ## @desc
	.comm	_c_size,4,2                     ## @c_size
	.no_dead_strip	_debug_qnx_read_at
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_qnx_read_at
_debug_qnx_read_at:                     ; @debug_qnx_read_at
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _c_buff@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c_buff@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _UT64_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UT64_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x25, _c_addr@GOTPAGE
Lloh7:
	ldr	x25, [x25, _c_addr@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x1, #0
	ccmp	x8, x2, #4, ne
	ccmp	x9, x2, #0, ne
	b.eq	LBB0_7
; %bb.1:
	mov	w0, #-1
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x20, x2
	cmp	x8, x2
	b.le	LBB0_12
; %bb.3:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w19, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w27, w8, w9
	mov	w8, #500
	msub	w22, w27, w8, w19
Lloh8:
	adrp	x26, _desc@GOTPAGE
Lloh9:
	ldr	x26, [x26, _desc@GOTPAGEOFF]
	cmp	w19, #500
	b.lo	LBB0_8
; %bb.4:
	mov	x28, x27
	mov	x23, x20
	mov	x24, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	mov	x1, x23
	mov	x2, x24
	mov	w3, #500
	bl	_qnxr_read_memory
	add	x24, x24, #2000
	add	x23, x23, #500
	subs	x28, x28, #1
	b.ne	LBB0_5
; %bb.6:
	mov	w8, #500
	mul	w8, w27, w8
	cbnz	w22, LBB0_9
	b	LBB0_10
LBB0_7:
	mov	x0, x21
	mov	x2, x19
	bl	_memcpy
	b	LBB0_11
LBB0_8:
	mov	x8, #0
	cbz	w22, LBB0_10
LBB0_9:
	ldr	w0, [x26]
	add	x1, x8, x20
	add	x2, x21, x8, lsl #2
	mov	x3, x22
	bl	_qnxr_read_memory
LBB0_10:
	str	x20, [x25]
Lloh10:
	adrp	x8, _c_size@GOTPAGE
Lloh11:
	ldr	x8, [x8, _c_size@GOTPAGEOFF]
Lloh12:
	str	w19, [x8]
LBB0_11:
	mov	x0, x19
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_c_buff,8,3                     ; @c_buff
	.comm	_UT64_MAX,8,3                   ; @UT64_MAX
	.comm	_c_addr,8,3                     ; @c_addr
	.comm	_desc,4,2                       ; @desc
	.comm	_c_size,4,2                     ; @c_size
	.no_dead_strip	_debug_qnx_read_at
.subsections_via_symbols
