	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_write_data_area
_doc_write_data_area:                   ## @doc_write_data_area
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_doc_dbg
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	andl	$-4, %r13d
	movq	_DOC_IOSPACE_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DOC_READADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_doc_writew
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_doc_writew
	addq	$4, %r14
	addl	$2, %ebx
	cmpl	%r13d, %ebx
	jl	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testb	$3, %al
	movq	_DOC_READADDRESS@GOTPCREL(%rip), %r13
	je	LBB0_6
## %bb.4:
	andl	$3, %eax
	xorl	%ebx, %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DOC_READADDR_ONE_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_doc_writew
	movl	(%r14,%rbx,4), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_doc_writeb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rbx
	cmpl	%ebx, %eax
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"doc_write_data_area(buf=%p, len=%d)\n"

	.comm	_DOC_IOSPACE_DATA,4,2           ## @DOC_IOSPACE_DATA
	.comm	_DOC_READADDRESS,4,2            ## @DOC_READADDRESS
	.comm	_DOC_READADDR_ONE_BYTE,4,2      ## @DOC_READADDR_ONE_BYTE
	.no_dead_strip	_doc_write_data_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_write_data_area
_doc_write_data_area:                   ; @doc_write_data_area
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_doc_dbg
	and	w23, w21, #0x3
	and	w24, w21, #0xfffffffc
Lloh2:
	adrp	x21, _DOC_IOSPACE_DATA@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DOC_IOSPACE_DATA@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _DOC_READADDRESS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DOC_READADDRESS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_doc_writew
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20], #4
	ldr	w2, [x21]
	mov	x0, x19
	bl	_doc_writew
	add	w25, w25, #2
	cmp	w25, w24
	b.lt	LBB0_2
LBB0_3:
	cbz	w23, LBB0_6
; %bb.4:
	ldr	w8, [x21]
Lloh6:
	adrp	x24, _DOC_READADDR_ONE_BYTE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DOC_READADDR_ONE_BYTE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_doc_writew
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_doc_writeb
	cmp	w23, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_doc_writew
	ldr	w1, [x20, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_doc_writeb
	cmp	w23, #2
	b.ne	LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x21]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_doc_writew
	ldr	w1, [x20, #8]
	ldr	w2, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_doc_writeb
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doc_write_data_area(buf=%p, len=%d)\n"

	.comm	_DOC_IOSPACE_DATA,4,2           ; @DOC_IOSPACE_DATA
	.comm	_DOC_READADDRESS,4,2            ; @DOC_READADDRESS
	.comm	_DOC_READADDR_ONE_BYTE,4,2      ; @DOC_READADDR_ONE_BYTE
	.no_dead_strip	_doc_write_data_area
.subsections_via_symbols
