	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_read_data_area
_doc_read_data_area:                    ## @doc_read_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	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_doc_dbg
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	andl	$-2, %r13d
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_DOC_IOSPACE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DOC_READADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_doc_writew
LBB0_2:
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_DOC_IOSPACE_DATA@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%r15)
	addq	$4, %r15
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_doc_readw
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_8:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
## %bb.9:
	movq	_DOC_IOSPACE_DATA@GOTPCREL(%rip), %rbx
	movq	_DOC_READADDR_ONE_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	movq	_DOC_READADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_doc_writew
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_doc_delay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_doc_readb
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	%eax, (%r15)
LBB0_11:
	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_read_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_read_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_read_data_area
_doc_read_data_area:                    ; @doc_read_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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_doc_dbg
	and	w25, w21, #0xfffffffe
Lloh2:
	adrp	x23, _DOC_IOSPACE_DATA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DOC_IOSPACE_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DOC_READADDRESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DOC_READADDRESS@GOTPAGEOFF]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_doc_writew
LBB0_2:
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #2
	cmp	w22, w25
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_doc_readw
	cbz	x19, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [x19], #4
	b	LBB0_4
LBB0_7:
	tbz	w21, #0, LBB0_10
; %bb.8:
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _DOC_READADDR_ONE_BYTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DOC_READADDR_ONE_BYTE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x24]
	mov	x0, x20
	bl	_doc_writew
	mov	x0, x20
	mov	w1, #1
	bl	_doc_delay
	ldr	w1, [x23]
	mov	x0, x20
	bl	_doc_readb
	cbz	x19, LBB0_10
; %bb.9:
	str	w0, [x19]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doc_read_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_read_data_area
.subsections_via_symbols
