	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_debug_gdb_reg_read
_r_debug_gdb_reg_read:                  ## @r_debug_gdb_reg_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	callq	_check_connection
	movq	_desc@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	callq	_gdbr_read_registers
	movq	(%r14), %rax
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_14
## %bb.4:
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %esi
	callq	_r_reg_get_bytes
	movl	%eax, %edi
	callq	_free
	movq	(%r14), %rax
	movl	(%rax), %edx
	cmpl	%r15d, %edx
	jle	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_eprintf
	movq	(%r14), %rax
	movl	(%rax), %edx
LBB0_6:
	movl	%edx, %edi
	movl	%r15d, %esi
	callq	_R_MIN
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_R_MAX
	movl	%eax, %r13d
	movl	%eax, -44(%rbp)
	movq	_reg_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	movq	_buf_size@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_12
## %bb.8:
	movl	%r13d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, (%rbx)
	movl	-44(%rbp), %r13d
	jmp	LBB0_11
LBB0_1:
	movq	_R_DEBUG_REASON_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	movq	_buf_size@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	(%r14), %rax
	movl	4(%rax), %r12d
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_R_MIN
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movq	_reg_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	-44(%rbp), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rdi
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movl	%r13d, %edx
	callq	_memcpy
	movq	(%r14), %rax
LBB0_13:
	movl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_desc,8,3                       ## @desc
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ## @R_DEBUG_REASON_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_debug_gdb_reg_read: small buffer %d vs %d\n"

	.comm	_reg_buf,8,3                    ## @reg_buf
	.comm	_buf_size,4,2                   ## @buf_size
	.no_dead_strip	_r_debug_gdb_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_debug_gdb_reg_read
_r_debug_gdb_reg_read:                  ; @r_debug_gdb_reg_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #12]
	bl	_check_connection
Lloh0:
	adrp	x23, _desc@GOTPAGE
Lloh1:
	ldr	x23, [x23, _desc@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_9
; %bb.1:
	bl	_gdbr_read_registers
	ldr	x8, [x23]
	cbz	x8, LBB0_14
; %bb.2:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_14
; %bb.3:
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	x1, x21
	bl	_r_reg_get_bytes
	bl	_free
	ldr	x8, [x23]
	ldr	w2, [x8]
	cmp	w2, w20
	b.le	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_eprintf
	ldr	x8, [x23]
	ldr	w2, [x8]
LBB0_5:
	mov	x0, x2
	mov	x1, x20
	bl	_R_MIN
	mov	x21, x0
	ldr	x8, [x23]
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_R_MAX
	mov	x22, x0
	str	w0, [sp, #12]
Lloh4:
	adrp	x24, _reg_buf@GOTPAGE
Lloh5:
	ldr	x24, [x24, _reg_buf@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh6:
	adrp	x25, _buf_size@GOTPAGE
Lloh7:
	ldr	x25, [x25, _buf_size@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w8, [x25]
	cmp	w22, w8
	b.le	LBB0_12
; %bb.7:
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_14
; %bb.8:
	str	x0, [x24]
	ldr	w22, [sp, #12]
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	x0, x22
	mov	w1, #1
	bl	_calloc
	str	x0, [x24]
	cbz	x0, LBB0_14
LBB0_11:
	str	w22, [x25]
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	x8, [x23]
	ldr	w22, [x8, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_R_MIN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	ldr	x0, [x24]
	ldr	w2, [sp, #12]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x24]
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x23]
LBB0_13:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_desc,8,3                       ; @desc
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ; @R_DEBUG_REASON_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_debug_gdb_reg_read: small buffer %d vs %d\n"

	.comm	_reg_buf,8,3                    ; @reg_buf
	.comm	_buf_size,4,2                   ; @buf_size
	.no_dead_strip	_r_debug_gdb_reg_read
.subsections_via_symbols
