	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_chars_dma
_receive_chars_dma:                     ## @receive_chars_dma
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ESP_STAT_RX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movq	_dma_bytes@GOTPCREL(%rip), %r12
	movl	%esi, (%r12)
	movq	_ESP_STAT_DMA_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DMA_MODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_dma_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isa_virt_to_bus
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_program_isa_dma
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESI_START_DMA_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_serial_out                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESP_STAT_RX_TIMEOUT,4,2        ## @ESP_STAT_RX_TIMEOUT
	.comm	_dma_bytes,4,2                  ## @dma_bytes
	.comm	_ESP_STAT_DMA_RX,4,2            ## @ESP_STAT_DMA_RX
	.comm	_dma,4,2                        ## @dma
	.comm	_DMA_MODE_READ,4,2              ## @DMA_MODE_READ
	.comm	_dma_buffer,4,2                 ## @dma_buffer
	.comm	_UART_ESI_CMD1,4,2              ## @UART_ESI_CMD1
	.comm	_ESI_START_DMA_RX,4,2           ## @ESI_START_DMA_RX
	.no_dead_strip	_receive_chars_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_chars_dma
_receive_chars_dma:                     ; @receive_chars_dma
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _ESP_STAT_RX_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESP_STAT_RX_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh3:
	adrp	x22, _dma_bytes@GOTPAGE
Lloh4:
	ldr	x22, [x22, _dma_bytes@GOTPAGEOFF]
	str	w1, [x22]
Lloh5:
	adrp	x8, _ESP_STAT_DMA_RX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESP_STAT_DMA_RX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh8:
	adrp	x8, _dma@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _DMA_MODE_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_MODE_READ@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _dma_buffer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dma_buffer@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_isa_virt_to_bus
	mov	x2, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_program_isa_dma
Lloh17:
	adrp	x8, _UART_ESI_CMD1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UART_ESI_CMD1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _ESI_START_DMA_RX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ESI_START_DMA_RX@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_serial_out
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ESP_STAT_RX_TIMEOUT,4,2        ; @ESP_STAT_RX_TIMEOUT
	.comm	_dma_bytes,4,2                  ; @dma_bytes
	.comm	_ESP_STAT_DMA_RX,4,2            ; @ESP_STAT_DMA_RX
	.comm	_dma,4,2                        ; @dma
	.comm	_DMA_MODE_READ,4,2              ; @DMA_MODE_READ
	.comm	_dma_buffer,4,2                 ; @dma_buffer
	.comm	_UART_ESI_CMD1,4,2              ; @UART_ESI_CMD1
	.comm	_ESI_START_DMA_RX,4,2           ; @ESI_START_DMA_RX
	.no_dead_strip	_receive_chars_dma
.subsections_via_symbols
