	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_core_file_do_load_for_debug
_r_core_file_do_load_for_debug:         ## @r_core_file_do_load_for_debug
	.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
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_r_core_file_cur
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	movl	12(%r12), %edi
	movl	(%rax), %esi
	callq	_r_io_desc_get
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	$6, %edx
	callq	_strncmp
	leaq	6(%rbx), %r14
	testl	%eax, %eax
	cmovneq	%rbx, %r14
	testq	%r15, %r15
	je	LBB0_11
## %bb.2:
	movl	12(%r12), %edi
	movl	16(%r12), %r15d
	movl	(%r13), %esi
	callq	_r_io_fd_get_pid
	movl	%eax, %ebx
	movl	12(%r12), %edi
	movl	(%r13), %esi
	callq	_r_io_fd_get_tid
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_r_debug_select
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_get_base_from_maps
	movl	%eax, %r15d
	movq	_UT64_MAX@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_r_config_set_i
LBB0_4:
	movl	(%r13), %r13d
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	callq	_r_bin_options_init
	movl	$0, -48(%rbp)
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_r_bin_open
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	8(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_r_config_get
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_r_core_cmd0
	leaq	L_.str.4(%rip), %rbx
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_setbpint
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_setbpint
LBB0_7:
	movq	(%r12), %rdi
	callq	_r_bin_cur
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_r_core_bin_set_env
	movq	%r15, %rdi
	callq	_r_bin_file_cur_plugin
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.9:
	testq	%r15, %r15
	jne	LBB0_16
	jmp	LBB0_22
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	$6, %edx
	callq	_strncmp
LBB0_11:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_eprintf
	movl	8(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_r_config_get_i
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	movq	_UT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	$1, %r8d
	callq	_r_bin_options_init
	movl	$0, -48(%rbp)
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_r_bin_open
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_11
LBB0_15:
	testq	%r15, %r15
	je	LBB0_26
LBB0_16:
	movq	(%r12), %rdi
	callq	_r_bin_cur_object
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	movq	(%rax), %rbx
	testq	%r14, %r14
	je	LBB0_26
LBB0_18:
	movq	(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.20:
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	callq	_r_core_bin_set_arch_bits
	jmp	LBB0_22
LBB0_21:
	movl	8(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_r_config_get_i
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	8(%r12), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_r_config_get_i
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_22:
	movq	(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.23:
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	callq	_r_core_cmd0
	jmp	LBB0_27
LBB0_24:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	jne	LBB0_18
LBB0_26:
	movl	$1, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbg://"

	.comm	_UT64_MAX,4,2                   ## @UT64_MAX
L_.str.1:                               ## @.str.1
	.asciz	"bin.baddr"

L_.str.2:                               ## @.str.2
	.asciz	"RBinLoad: Cannot open %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"bin.rawstr"

L_.str.4:                               ## @.str.4
	.asciz	"dbg.libs"

L_.str.5:                               ## @.str.5
	.asciz	".dmm*"

L_.str.6:                               ## @.str.6
	.asciz	"sym._dlopen"

L_.str.7:                               ## @.str.7
	.asciz	"sym._dlclose"

L_.str.8:                               ## @.str.8
	.asciz	"any"

L_.str.9:                               ## @.str.9
	.asciz	"bin.minstr"

L_.str.10:                              ## @.str.10
	.asciz	"bin.maxstrbuf"

L_.str.11:                              ## @.str.11
	.asciz	"dex"

L_.str.12:                              ## @.str.12
	.asciz	"\"(fix-dex,wx `ph sha1 $s-32 @32` @12 ; wx `ph adler32 $s-12 @12` @8)\"\n"

	.no_dead_strip	_r_core_file_do_load_for_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_core_file_do_load_for_debug
_r_core_file_do_load_for_debug:         ; @r_core_file_do_load_for_debug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x0
	bl	_r_core_file_cur
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	bl	_r_io_desc_get
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w23, #6
	mov	x1, x20
	mov	w2, #6
	bl	_strncmp
	cmp	w0, #0
	csel	x8, x23, xzr, eq
	cbz	x22, LBB0_11
; %bb.2:
	add	x20, x20, x8
	ldp	w0, w22, [x19, #12]
	ldr	w1, [x21]
	bl	_r_io_fd_get_pid
	mov	x23, x0
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	bl	_r_io_fd_get_tid
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_r_debug_select
	mov	x0, x19
	mov	x1, x20
	bl	_get_base_from_maps
	mov	x22, x0
Lloh2:
	adrp	x23, _UT64_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _UT64_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_r_config_set_i
LBB0_4:
	ldr	w21, [x21]
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	mov	w4, #0
	bl	_r_bin_options_init
	str	wzr, [sp, #8]
	ldr	x0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_r_bin_open
	cbz	w0, LBB0_12
LBB0_5:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_r_config_get
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_r_core_cmd0
Lloh10:
	adrp	x20, l_.str.4@PAGE
Lloh11:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_setbpint
Lloh14:
	adrp	x2, l_.str.7@PAGE
Lloh15:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_setbpint
LBB0_7:
	ldr	x0, [x19]
	bl	_r_bin_cur
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_r_core_bin_set_env
	mov	x0, x21
	bl	_r_bin_file_cur_plugin
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.8:
	ldr	x0, [x20]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbz	w0, LBB0_17
; %bb.9:
	cbnz	x21, LBB0_15
	b	LBB0_22
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	w2, #6
	bl	_strncmp
LBB0_11:
	mov	w0, #0
	b	LBB0_25
LBB0_12:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_eprintf
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_r_config_get_i
	cbz	x0, LBB0_5
; %bb.13:
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	mov	w4, #1
	bl	_r_bin_options_init
	str	wzr, [sp, #8]
	ldr	x0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_r_bin_open
	cbnz	w0, LBB0_5
	b	LBB0_25
LBB0_14:
	cbz	x21, LBB0_24
LBB0_15:
	ldr	x0, [x19]
	bl	_r_bin_cur_object
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x22, [x0]
	cbnz	x20, LBB0_19
	b	LBB0_24
LBB0_17:
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_r_config_get_i
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_r_config_get_i
	ldr	x8, [x19]
	str	x0, [x8]
	b	LBB0_22
LBB0_18:
	mov	x22, #0
	cbz	x20, LBB0_24
LBB0_19:
	ldr	x0, [x20]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.20:
	cbz	x22, LBB0_22
; %bb.21:
	ldr	w1, [x21]
	ldp	w3, w2, [x22]
	mov	x0, x19
	bl	_r_core_bin_set_arch_bits
LBB0_22:
	ldr	x0, [x20]
Lloh30:
	adrp	x1, l_.str.11@PAGE
Lloh31:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_24
; %bb.23:
Lloh32:
	adrp	x1, l_.str.12@PAGE
Lloh33:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_r_core_cmd0
LBB0_24:
	mov	w0, #1
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbg://"

	.comm	_UT64_MAX,4,2                   ; @UT64_MAX
l_.str.1:                               ; @.str.1
	.asciz	"bin.baddr"

l_.str.2:                               ; @.str.2
	.asciz	"RBinLoad: Cannot open %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"bin.rawstr"

l_.str.4:                               ; @.str.4
	.asciz	"dbg.libs"

l_.str.5:                               ; @.str.5
	.asciz	".dmm*"

l_.str.6:                               ; @.str.6
	.asciz	"sym._dlopen"

l_.str.7:                               ; @.str.7
	.asciz	"sym._dlclose"

l_.str.8:                               ; @.str.8
	.asciz	"any"

l_.str.9:                               ; @.str.9
	.asciz	"bin.minstr"

l_.str.10:                              ; @.str.10
	.asciz	"bin.maxstrbuf"

l_.str.11:                              ; @.str.11
	.asciz	"dex"

l_.str.12:                              ; @.str.12
	.asciz	"\"(fix-dex,wx `ph sha1 $s-32 @32` @12 ; wx `ph adler32 $s-12 @12` @8)\"\n"

	.no_dead_strip	_r_core_file_do_load_for_debug
.subsections_via_symbols
