	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_debug_bochs_attach
_r_debug_bochs_attach:                  ## @r_debug_bochs_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movl	$0, (%rdi)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movq	_desc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	movl	$1024, %edi                     ## imm = 0x400
	callq	_malloc
	movq	_saveRegs@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_bCapturaRegs@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_bStep@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_bBreak@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_7:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bochs"

	.comm	_desc,8,3                       ## @desc
L_.str.1:                               ## @.str.1
	.asciz	"bochs attach: ok\n"

	.comm	_saveRegs,4,2                   ## @saveRegs
	.comm	_bCapturaRegs,4,2               ## @bCapturaRegs
	.comm	_bStep,4,2                      ## @bStep
	.comm	_bBreak,4,2                     ## @bBreak
	.no_dead_strip	_r_debug_bochs_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_debug_bochs_attach
_r_debug_bochs_attach:                  ; @r_debug_bochs_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	str	wzr, [x0]
	cbz	x19, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x1, [x8]
	cbz	x1, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _desc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _desc@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
	cbz	x8, LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	mov	w0, #1024
	bl	_malloc
Lloh7:
	adrp	x8, _saveRegs@GOTPAGE
Lloh8:
	ldr	x8, [x8, _saveRegs@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
Lloh10:
	adrp	x8, _bCapturaRegs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bCapturaRegs@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
Lloh13:
	adrp	x8, _bStep@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bStep@GOTPAGEOFF]
Lloh15:
	str	wzr, [x8]
Lloh16:
	adrp	x8, _bBreak@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bBreak@GOTPAGEOFF]
Lloh18:
	str	wzr, [x8]
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bochs"

	.comm	_desc,8,3                       ; @desc
l_.str.1:                               ; @.str.1
	.asciz	"bochs attach: ok\n"

	.comm	_saveRegs,4,2                   ; @saveRegs
	.comm	_bCapturaRegs,4,2               ; @bCapturaRegs
	.comm	_bStep,4,2                      ; @bStep
	.comm	_bBreak,4,2                     ; @bBreak
	.no_dead_strip	_r_debug_bochs_attach
.subsections_via_symbols
