	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __write
___write:                               ## @__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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %edi
	callq	_windbg_get_target
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	callq	_windbg_va_to_pa
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	movl	-36(%rbp), %edx
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_windbg_write_at_phys
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movq	%r15, %rsi
	movl	%r14d, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_windbg_write_at                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __write
___write:                               ; @__write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x1, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x1]
	bl	_windbg_get_target
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_windbg_va_to_pa
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	ldr	w2, [sp, #12]
	mov	x1, x20
	mov	x3, x19
	bl	_windbg_write_at_phys
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_windbg_write_at
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___write
.subsections_via_symbols
