	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_rdi_fetch_registers
_arm_rdi_fetch_registers:               ## @arm_rdi_fetch_registers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.4:
	movl	%edi, %ebx
	movq	_ARM_PC_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_RDIReg_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_11
LBB0_1:
	leaq	-288(%rbp), %rdx
	movl	$255, %edi
	movl	$163839, %esi                   ## imm = 0x27FFF
	callq	_angel_RDI_CPUread
	movq	_RDIError_NoError@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_filtered
LBB0_3:
	movq	-288(%rbp), %rdx
	leaq	-292(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-280(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-272(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$2, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-264(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$3, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-256(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$4, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-248(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$5, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-240(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$6, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-232(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$7, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-224(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$8, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-216(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$9, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-208(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-200(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$11, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-192(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$12, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-184(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$13, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-176(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	$14, %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	-168(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movq	_ARM_PS_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_supply_register
	movq	_ARM_PC_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_arm_rdi_fetch_registers
	jmp	LBB0_15
LBB0_6:
	movq	_ARM_PS_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_RDIReg_CPSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_11
LBB0_8:
	cmpl	$16, %ebx
	jb	LBB0_10
## %bb.9:
	movq	$0, -288(%rbp)
	leaq	-288(%rbp), %rsi
	movl	%ebx, %edi
	jmp	LBB0_14
LBB0_10:
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
LBB0_11:
	leaq	-288(%rbp), %rdx
	movl	$255, %edi
	callq	_angel_RDI_CPUread
	movq	_RDIError_NoError@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_filtered
LBB0_13:
	movq	-288(%rbp), %rdx
	leaq	-292(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	%ebx, %edi
	movq	%r14, %rsi
LBB0_14:
	callq	_supply_register
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RDIError_NoError,4,2           ## @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDI_CPUread: %s\n"

	.comm	_ARM_PS_REGNUM,4,2              ## @ARM_PS_REGNUM
	.comm	_ARM_PC_REGNUM,4,2              ## @ARM_PC_REGNUM
	.comm	_RDIReg_PC,4,2                  ## @RDIReg_PC
	.comm	_RDIReg_CPSR,4,2                ## @RDIReg_CPSR
	.no_dead_strip	_arm_rdi_fetch_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_rdi_fetch_registers
_arm_rdi_fetch_registers:               ; @arm_rdi_fetch_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ARM_PC_REGNUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARM_PC_REGNUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _RDIReg_PC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDIReg_PC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_3:
	add	x2, sp, #8
	mov	w0, #255
	mov	w1, #32767
	movk	w1, #2, lsl #16
	bl	_angel_RDI_CPUread
Lloh9:
	adrp	x8, _RDIError_NoError@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDIError_NoError@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_rdi_error_message
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
LBB0_5:
	ldr	x2, [sp, #8]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #0
	bl	_supply_register
	ldr	x2, [sp, #16]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #1
	bl	_supply_register
	ldr	x2, [sp, #24]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #2
	bl	_supply_register
	ldr	x2, [sp, #32]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #3
	bl	_supply_register
	ldr	x2, [sp, #40]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #4
	bl	_supply_register
	ldr	x2, [sp, #48]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #5
	bl	_supply_register
	ldr	x2, [sp, #56]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #6
	bl	_supply_register
	ldr	x2, [sp, #64]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #7
	bl	_supply_register
	ldr	x2, [sp, #72]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #8
	bl	_supply_register
	ldr	x2, [sp, #80]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #9
	bl	_supply_register
	ldr	x2, [sp, #88]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #10
	bl	_supply_register
	ldr	x2, [sp, #96]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #11
	bl	_supply_register
	ldr	x2, [sp, #104]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #12
	bl	_supply_register
	ldr	x2, [sp, #112]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #13
	bl	_supply_register
	ldr	x2, [sp, #120]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
	mov	w0, #14
	bl	_supply_register
	ldr	x2, [sp, #128]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
Lloh14:
	adrp	x8, _ARM_PS_REGNUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARM_PS_REGNUM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_supply_register
Lloh17:
	adrp	x8, _ARM_PC_REGNUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARM_PC_REGNUM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_arm_rdi_fetch_registers
	b	LBB0_15
LBB0_6:
Lloh20:
	adrp	x8, _ARM_PS_REGNUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARM_PS_REGNUM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x8, _RDIReg_CPSR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RDIReg_CPSR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_8:
	cmp	w19, #16
	b.lo	LBB0_10
; %bb.9:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	b	LBB0_14
LBB0_10:
	mov	w8, #1
	lsl	w1, w8, w19
LBB0_11:
	add	x2, sp, #8
	mov	w0, #255
	bl	_angel_RDI_CPUread
Lloh26:
	adrp	x8, _RDIError_NoError@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RDIError_NoError@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	bl	_rdi_error_message
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
LBB0_13:
	ldr	x2, [sp, #8]
	add	x0, sp, #4
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #4
LBB0_14:
	mov	x0, x19
	bl	_supply_register
LBB0_15:
	ldur	x8, [x29, #-24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RDIError_NoError,4,2           ; @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDI_CPUread: %s\n"

	.comm	_ARM_PS_REGNUM,4,2              ; @ARM_PS_REGNUM
	.comm	_ARM_PC_REGNUM,4,2              ; @ARM_PC_REGNUM
	.comm	_RDIReg_PC,4,2                  ; @RDIReg_PC
	.comm	_RDIReg_CPSR,4,2                ; @RDIReg_CPSR
	.no_dead_strip	_arm_rdi_fetch_registers
.subsections_via_symbols
