	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdm_reset_command
_bdm_reset_command:                     ## @bdm_reset_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_ocd_desc@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	movq	_OCD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8(%rbp), %rsi
	leaq	-4(%rbp), %rdx
	callq	_ocd_do_command
	movq	_target_dcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dcache_invalidate
	xorl	%eax, %eax
	callq	_registers_changed
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ocd_desc,4,2                   ## @ocd_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not connected to OCD device."

	.comm	_OCD_RESET,4,2                  ## @OCD_RESET
	.comm	_target_dcache,4,2              ## @target_dcache
	.no_dead_strip	_bdm_reset_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdm_reset_command
_bdm_reset_command:                     ; @bdm_reset_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _ocd_desc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ocd_desc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh5:
	adrp	x8, _OCD_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCD_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	sub	x1, x29, #4
	add	x2, sp, #8
	bl	_ocd_do_command
Lloh8:
	adrp	x8, _target_dcache@GOTPAGE
Lloh9:
	ldr	x8, [x8, _target_dcache@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_dcache_invalidate
	bl	_registers_changed
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ocd_desc,4,2                   ; @ocd_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not connected to OCD device."

	.comm	_OCD_RESET,4,2                  ; @OCD_RESET
	.comm	_target_dcache,4,2              ; @target_dcache
	.no_dead_strip	_bdm_reset_command
.subsections_via_symbols
