	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_swreg_to_rereg
_nfp_swreg_to_rereg:                    ## @nfp_swreg_to_rereg
	.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	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%edi, %ebx
	callq	_swreg_value
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_swreg_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_RE_REG_XFR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r14d
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_17
LBB0_11:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.13:
	movq	_REG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_17
LBB0_3:
	movl	%ebx, %edi
	callq	_swreg_lm_idx
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_swreg_lm_mode
	movq	_NN_LM_MOD_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_RE_REG_LM_IDX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %r14d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_8:
	notl	%r12d
	shll	$7, %r12d
	testl	%r12d, %r14d
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
LBB0_17:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_RE_REG_NO_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_4:
	movl	%ebx, %edi
	callq	_swreg_lm_mode
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_18
LBB0_10:
	movl	%r14d, %eax
	andl	$128, %eax
	movl	%eax, (%r15)
	andl	$127, %r14d
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RE_REG_IMM_encode              ## TAILCALL
LBB0_7:
	movq	_RE_REG_LM@GOTPCREL(%rip), %rax
	movq	_RE_REG_LM_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %ebx
	orl	%r14d, %ebx
	movl	%r15d, %esi
	callq	_FIELD_PREP
	movl	%eax, %r14d
	orl	%ebx, %r14d
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_RE_REG_XFR,4,2                 ## @RE_REG_XFR
	.comm	_NN_LM_MOD_NONE,4,2             ## @NN_LM_MOD_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad LM mode for restricted operands %d\n"

	.comm	_RE_REG_LM_IDX_MAX,4,2          ## @RE_REG_LM_IDX_MAX
L_.str.1:                               ## @.str.1
	.asciz	"LM offset too large\n"

	.comm	_RE_REG_LM,4,2                  ## @RE_REG_LM
	.comm	_RE_REG_LM_IDX,4,2              ## @RE_REG_LM_IDX
L_.str.2:                               ## @.str.2
	.asciz	"immediate too large\n"

	.comm	_RE_REG_NO_DST,4,2              ## @RE_REG_NO_DST
	.comm	_REG_NONE,4,2                   ## @REG_NONE
L_.str.3:                               ## @.str.3
	.asciz	"NNRs used with restricted encoding\n"

L_.str.4:                               ## @.str.4
	.asciz	"unrecognized reg encoding\n"

	.no_dead_strip	_nfp_swreg_to_rereg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_swreg_to_rereg
_nfp_swreg_to_rereg:                    ; @nfp_swreg_to_rereg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_swreg_value
	mov	x19, x0
	mov	x0, x20
	bl	_swreg_type
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _RE_REG_XFR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RE_REG_XFR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_13
LBB0_3:
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh7:
	adrp	x8, _RE_REG_NO_DST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RE_REG_NO_DST@GOTPAGEOFF]
Lloh9:
	adrp	x9, _REG_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REG_NONE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	b	LBB0_13
LBB0_5:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_6:
	mov	x0, x20
	bl	_swreg_lm_idx
	mov	x21, x0
	mov	x0, x20
	bl	_swreg_lm_mode
Lloh13:
	adrp	x8, _NN_LM_MOD_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NN_LM_MOD_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
Lloh16:
	adrp	x8, _RE_REG_LM_IDX_MAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RE_REG_LM_IDX_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bics	wzr, w19, w8
	b.eq	LBB0_15
; %bb.8:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
	mvn	w8, w23
	tst	w19, w8, lsl #7
	b.eq	LBB0_14
; %bb.10:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_swreg_lm_mode
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_pr_err
	mov	w19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	and	w8, w19, #0x80
	str	w8, [x21]
	and	w0, w19, #0x7f
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_RE_REG_IMM_encode
LBB0_15:
Lloh25:
	adrp	x8, _RE_REG_LM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RE_REG_LM@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x8, _RE_REG_LM_IDX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RE_REG_LM_IDX@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w8, w20, w19
	orr	w19, w8, w0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_RE_REG_XFR,4,2                 ; @RE_REG_XFR
	.comm	_NN_LM_MOD_NONE,4,2             ; @NN_LM_MOD_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad LM mode for restricted operands %d\n"

	.comm	_RE_REG_LM_IDX_MAX,4,2          ; @RE_REG_LM_IDX_MAX
l_.str.1:                               ; @.str.1
	.asciz	"LM offset too large\n"

	.comm	_RE_REG_LM,4,2                  ; @RE_REG_LM
	.comm	_RE_REG_LM_IDX,4,2              ; @RE_REG_LM_IDX
l_.str.2:                               ; @.str.2
	.asciz	"immediate too large\n"

	.comm	_RE_REG_NO_DST,4,2              ; @RE_REG_NO_DST
	.comm	_REG_NONE,4,2                   ; @REG_NONE
l_.str.3:                               ; @.str.3
	.asciz	"NNRs used with restricted encoding\n"

l_.str.4:                               ; @.str.4
	.asciz	"unrecognized reg encoding\n"

	.no_dead_strip	_nfp_swreg_to_rereg
.subsections_via_symbols
