	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_psr
_parse_psr:                             ## @parse_psr
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %edi
	callq	_ISALNUM
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$95, (%r15,%rbx)
	je	LBB0_12
## %bb.13:
	movq	_arm_v7m_psr_hsh@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_hash_find_n
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	addq	%rbx, %r15
	movq	%r15, (%r14)
	jmp	LBB0_22
LBB0_1:
	movq	_SPSR_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_2
LBB0_8:
	xorl	%r13d, %r13d
LBB0_2:
	movb	4(%r15), %al
	cmpb	$95, %al
	jne	LBB0_17
## %bb.3:
	leaq	5(%r15), %r12
	addq	$6, %r15
	movl	$1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	incl	%ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15), %edi
	callq	_ISALNUM
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$95, (%r15)
	je	LBB0_6
## %bb.15:
	movq	_arm_psr_hsh@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_hash_find_n
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_17:
	movsbl	%al, %edi
	callq	_ISALNUM
	testq	%rax, %rax
	je	LBB0_18
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	_inst@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_21:
	movq	_FAIL@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_18:
	addq	$4, %r15
	movq	_PSR_c@GOTPCREL(%rip), %rcx
	movq	_PSR_f@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	(%rcx), %rax
LBB0_19:
	orl	%r13d, %eax
	movq	%r15, (%r14)
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	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	"SPSR"

	.comm	_SPSR_BIT,8,3                   ## @SPSR_BIT
L_.str.1:                               ## @.str.1
	.asciz	"CPSR"

	.comm	_arm_v7m_psr_hsh,4,2            ## @arm_v7m_psr_hsh
	.comm	_FAIL,4,2                       ## @FAIL
	.comm	_arm_psr_hsh,4,2                ## @arm_psr_hsh
	.comm	_PSR_c,8,3                      ## @PSR_c
	.comm	_PSR_f,8,3                      ## @PSR_f
L_.str.2:                               ## @.str.2
	.asciz	"flag for {c}psr instruction expected"

	.comm	_inst,4,2                       ## @inst
	.no_dead_strip	_parse_psr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_psr
_parse_psr:                             ; @parse_psr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_strncasecmp
	cbz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_strncasecmp
	cbz	x0, LBB0_9
; %bb.2:
	mov	w21, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, x21]
	bl	_ISALNUM
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20, x21]
	cmp	w8, #95
	b.eq	LBB0_3
; %bb.6:
Lloh4:
	adrp	x8, _arm_v7m_psr_hsh@GOTPAGE
Lloh5:
	ldr	x8, [x8, _arm_v7m_psr_hsh@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_hash_find_n
	cbz	x0, LBB0_19
; %bb.7:
	add	x8, x20, x21
	str	x8, [x19]
	ldr	w0, [x0]
	b	LBB0_22
LBB0_8:
Lloh7:
	adrp	x8, _SPSR_BIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPSR_BIT@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	b	LBB0_10
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x21, x20
	ldrb	w8, [x21, #4]!
	cmp	w8, #95
	b.ne	LBB0_17
; %bb.11:
	add	x21, x20, #5
	mov	w23, #6
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, x23]
	bl	_ISALNUM
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x20, x23]
	cmp	w8, #95
	b.eq	LBB0_12
; %bb.15:
Lloh10:
	adrp	x8, _arm_psr_hsh@GOTPAGE
Lloh11:
	ldr	x8, [x8, _arm_psr_hsh@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	sub	w2, w23, #5
	mov	x1, x21
	bl	_hash_find_n
	cbz	x0, LBB0_18
; %bb.16:
	add	x21, x20, x23
	ldr	w8, [x0]
	b	LBB0_21
LBB0_17:
	sxtb	w0, w8
	bl	_ISALNUM
	cbz	x0, LBB0_20
LBB0_18:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
Lloh15:
	adrp	x8, _inst@GOTPAGE
Lloh16:
	ldr	x8, [x8, _inst@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
LBB0_19:
Lloh18:
	adrp	x8, _FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_20:
Lloh21:
	adrp	x8, _PSR_c@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PSR_c@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _PSR_f@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PSR_f@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	orr	x8, x9, x8
LBB0_21:
	orr	w0, w8, w22
	str	x21, [x19]
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPSR"

	.comm	_SPSR_BIT,8,3                   ; @SPSR_BIT
l_.str.1:                               ; @.str.1
	.asciz	"CPSR"

	.comm	_arm_v7m_psr_hsh,4,2            ; @arm_v7m_psr_hsh
	.comm	_FAIL,4,2                       ; @FAIL
	.comm	_arm_psr_hsh,4,2                ; @arm_psr_hsh
	.comm	_PSR_c,8,3                      ; @PSR_c
	.comm	_PSR_f,8,3                      ; @PSR_f
l_.str.2:                               ; @.str.2
	.asciz	"flag for {c}psr instruction expected"

	.comm	_inst,4,2                       ; @inst
	.no_dead_strip	_parse_psr
.subsections_via_symbols
