	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_write_bytes                 ## -- Begin function db_write_bytes
	.p2align	4, 0x90
_db_write_bytes:                        ## @db_write_bytes
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movslq	%edi, %r13
	movl	%r13d, %edi
	callq	_db_validate_address
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_db_printf
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_2:
	cmpq	$4, %r14
	jne	LBB0_6
## %bb.3:
	movl	%r15d, %eax
	andl	$3, %eax
	jne	LBB0_6
## %bb.4:
	movl	%r12d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	movl	%eax, (%r13)
	jmp	LBB0_14
LBB0_6:
	cmpq	$2, %r14
	jne	LBB0_9
## %bb.7:
	movl	%r15d, %eax
	andl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %eax
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.16:
	movzwl	(%r12), %eax
	movw	%ax, (%r13)
	jmp	LBB0_14
LBB0_9:
	testq	%r14, %r14
	je	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %edi
	callq	_db_validate_address
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	(%r12,%rbx), %eax
	movb	%al, (%r13,%rbx)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_11
LBB0_14:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_icache_sync
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tlb_flush_all
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addq	%rbx, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_db_printf
	movl	$-1, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address %p is invalid\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_write_bytes                 ; -- Begin function db_write_bytes
	.p2align	2
_db_write_bytes:                        ; @db_write_bytes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	sxtw	x21, w20
	bl	_db_validate_address
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_db_printf
	b	LBB0_15
LBB0_2:
	cmp	x19, #4
	b.ne	LBB0_6
; %bb.3:
	and	w8, w20, #0x3
	cbnz	w8, LBB0_6
; %bb.4:
	and	x8, x22, #0x3
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x22]
	str	w8, [x21]
	b	LBB0_14
LBB0_6:
	cmp	x19, #2
	b.ne	LBB0_10
; %bb.7:
	tbnz	w20, #0, LBB0_10
; %bb.8:
	tbnz	w22, #0, LBB0_10
; %bb.9:
	ldrh	w8, [x22]
	strh	w8, [x21]
	b	LBB0_14
LBB0_10:
	cbz	x19, LBB0_14
; %bb.11:
	mov	x24, x19
	mov	x23, x21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_db_validate_address
	cbnz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x22], #1
	strb	w8, [x23], #1
	add	w21, w21, #1
	subs	x24, x24, #1
	b.ne	LBB0_12
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_icache_sync
	bl	_tlb_flush_all
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_db_printf
	mov	w0, #-1
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address %p is invalid\n"

.subsections_via_symbols
