	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_cfgdebug
_cb_cfgdebug:                           ## @cb_cfgdebug
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rsi), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	sete	%dl
	movl	%edx, (%rax)
	movq	%rcx, 8(%rax)
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.5:
	cmpq	$0, (%rsi)
	je	LBB0_12
## %bb.6:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_r_debug_use
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_r_config_get
	cmpb	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_r_config_set
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	32(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_r_config_set
LBB0_10:
	movq	16(%rbx), %rax
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	8(%rbx), %r15
	movq	24(%rbx), %rdi
	movl	(%rax), %esi
	callq	_r_io_fd_get_pid
	movl	%eax, %r12d
	movq	16(%rbx), %rax
	movq	24(%rbx), %rdi
	movl	(%rax), %esi
	callq	_r_io_fd_get_tid
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_r_debug_select
	jmp	LBB0_13
LBB0_12:
	xorl	%esi, %esi
	callq	_r_debug_use
	movq	(%rbx), %rax
	movl	$0, (%rax)
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbg.backend"

L_.str.1:                               ## @.str.1
	.asciz	"cmd.prompt"

L_.str.3:                               ## @.str.3
	.asciz	".dr*"

L_.str.4:                               ## @.str.4
	.asciz	"bf"

L_.str.5:                               ## @.str.5
	.asciz	"asm.arch"

	.no_dead_strip	_cb_cfgdebug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_cfgdebug
_cb_cfgdebug:                           ; @cb_cfgdebug
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x1]
	cmp	x9, #0
	cset	w10, eq
	str	w10, [x8]
	str	x9, [x8, #8]
LBB0_3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.4:
	ldr	x8, [x1]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get
	mov	x20, x0
	mov	w8, #1
	ldp	x9, x0, [x19]
	str	w8, [x9]
	mov	x1, x20
	bl	_r_debug_use
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_r_config_get
	ldrb	w8, [x0]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_r_config_set
LBB0_7:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_r_config_set
LBB0_9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x20, [x19, #8]
	ldr	x0, [x19, #24]
	ldr	w1, [x8]
	bl	_r_io_fd_get_pid
	mov	x21, x0
	ldp	x8, x0, [x19, #16]
	ldr	w1, [x8]
	bl	_r_io_fd_get_tid
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_r_debug_select
	b	LBB0_12
LBB0_11:
	mov	x1, #0
	bl	_r_debug_use
	ldr	x8, [x19]
	str	wzr, [x8]
LBB0_12:
	mov	w0, #1
LBB0_13:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbg.backend"

l_.str.1:                               ; @.str.1
	.asciz	"cmd.prompt"

l_.str.3:                               ; @.str.3
	.asciz	".dr*"

l_.str.4:                               ; @.str.4
	.asciz	"bf"

l_.str.5:                               ; @.str.5
	.asciz	"asm.arch"

	.no_dead_strip	_cb_cfgdebug
.subsections_via_symbols
