	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_mrs
_do_mrs:                                ## @do_mrs
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_do_vfp_nsyn_mrs
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_inst@GOTPCREL(%rip), %r14
	movq	8(%r14), %rax
	movq	_PSR_c@GOTPCREL(%rip), %rcx
	movq	_PSR_x@GOTPCREL(%rip), %rdx
	movq	_PSR_s@GOTPCREL(%rip), %rsi
	movq	_PSR_f@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	movl	(%rdx), %ecx
	orl	%edi, %ecx
	orl	(%rsi), %ecx
	andl	8(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%edi, %ecx
	setne	%bl
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_constraint
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	shll	$12, %ecx
	orl	(%r14), %ecx
	movq	_SPSR_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%rax), %edx
	orl	%ecx, %edx
	movl	%edx, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_inst,16,3                      ## @inst
	.comm	_PSR_c,4,2                      ## @PSR_c
	.comm	_PSR_x,4,2                      ## @PSR_x
	.comm	_PSR_s,4,2                      ## @PSR_s
	.comm	_PSR_f,4,2                      ## @PSR_f
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'CPSR' or 'SPSR' expected"

	.comm	_SPSR_BIT,4,2                   ## @SPSR_BIT
	.no_dead_strip	_do_mrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_mrs
_do_mrs:                                ; @do_mrs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_do_vfp_nsyn_mrs
Lloh0:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _inst@GOTPAGE
Lloh4:
	ldr	x20, [x20, _inst@GOTPAGEOFF]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
Lloh5:
	adrp	x9, _PSR_c@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PSR_c@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _PSR_x@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PSR_x@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _PSR_s@GOTPAGE
Lloh12:
	ldr	x11, [x11, _PSR_s@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _PSR_f@GOTPAGE
Lloh15:
	ldr	x12, [x12, _PSR_f@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	orr	w9, w12, w9
	orr	w10, w9, w10
	orr	w10, w10, w11
	and	w8, w10, w8
	cmp	w8, w9
	cset	w19, ne
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_constraint
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	ldp	w10, w8, [x8, #4]
	orr	w9, w9, w10, lsl #12
Lloh19:
	adrp	x10, _SPSR_BIT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPSR_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w8, w10, w8
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_inst,16,3                      ; @inst
	.comm	_PSR_c,4,2                      ; @PSR_c
	.comm	_PSR_x,4,2                      ; @PSR_x
	.comm	_PSR_s,4,2                      ; @PSR_s
	.comm	_PSR_f,4,2                      ; @PSR_f
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'CPSR' or 'SPSR' expected"

	.comm	_SPSR_BIT,4,2                   ; @SPSR_BIT
	.no_dead_strip	_do_mrs
.subsections_via_symbols
