	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_rdi_xfer_memory
_arm_rdi_xfer_memory:                   ## @arm_rdi_xfer_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, %eax
	movl	%edx, -4(%rbp)
	leaq	-4(%rbp), %rdx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_angel_RDI_write
	movq	_RDIError_NoError@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_filtered
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %edi
	callq	_angel_RDI_read
	movq	_RDIError_NoError@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_filtered
	movl	$0, -4(%rbp)
LBB0_5:
	movl	-4(%rbp), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDIError_NoError,4,2           ## @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDI_write: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"RDI_read: %s\n"

	.no_dead_strip	_arm_rdi_xfer_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_rdi_xfer_memory
_arm_rdi_xfer_memory:                   ; @arm_rdi_xfer_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	stur	w2, [x29, #-4]
	sub	x2, x29, #4
	cbz	w3, LBB0_3
; %bb.1:
	mov	x0, x1
	mov	x1, x8
	bl	_angel_RDI_write
Lloh0:
	adrp	x8, _RDIError_NoError@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDIError_NoError@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.2:
	bl	_rdi_error_message
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
	b	LBB0_5
LBB0_3:
	mov	x0, x8
	bl	_angel_RDI_read
Lloh5:
	adrp	x8, _RDIError_NoError@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDIError_NoError@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_rdi_error_message
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf_filtered
	stur	wzr, [x29, #-4]
LBB0_5:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RDIError_NoError,4,2           ; @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDI_write: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"RDI_read: %s\n"

	.no_dead_strip	_arm_rdi_xfer_memory
.subsections_via_symbols
