	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_debug_windbg_reg_write
_r_debug_windbg_reg_write:              ## @r_debug_windbg_reg_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movq	_R_REG_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_r_reg_get_bytes
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_wctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %edx
	movq	%rbx, %rsi
	callq	_windbg_write_reg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_REG_TYPE_ALL,4,2             ## @R_REG_TYPE_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not retrieve the register arena!\n"

	.comm	_wctx,4,2                       ## @wctx
	.no_dead_strip	_r_debug_windbg_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_debug_windbg_reg_write
_r_debug_windbg_reg_write:              ; @r_debug_windbg_reg_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w0, [x0]
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _R_REG_TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_REG_TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_r_reg_get_bytes
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _wctx@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wctx@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
	mov	x1, x19
	bl	_windbg_write_reg
	mov	x20, x0
	mov	x0, x19
	bl	_free
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_R_REG_TYPE_ALL,4,2             ; @R_REG_TYPE_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not retrieve the register arena!\n"

	.comm	_wctx,4,2                       ; @wctx
	.no_dead_strip	_r_debug_windbg_reg_write
.subsections_via_symbols
