	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_swreg_to_unreg
_nfp_swreg_to_unreg:                    ## @nfp_swreg_to_unreg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_swreg_value
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_swreg_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_26
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_UR_REG_XFR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_26:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
LBB0_27:
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_22:
	testl	%r14d, %r14d
	jne	LBB0_23
## %bb.24:
	movq	_REG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_2:
	movq	_UR_REG_NN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	orl	%eax, %r15d
	jmp	LBB0_28
LBB0_5:
	movl	%ebx, %edi
	callq	_swreg_lm_idx
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_swreg_lm_mode
	cmpl	$138, %eax
	je	LBB0_14
## %bb.6:
	cmpl	$137, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$136, %eax
	jne	LBB0_18
## %bb.9:
	movq	_UR_REG_LM_IDX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %r15d
	je	LBB0_12
## %bb.10:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_19:
	cmpl	$256, %r15d                     ## imm = 0x100
	jae	LBB0_20
## %bb.21:
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UR_REG_IMM_encode              ## TAILCALL
LBB0_23:
	movq	_UR_REG_NO_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	movl	$1, %r12d
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_7:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	jne	LBB0_16
LBB0_17:
	movq	_UR_REG_LM@GOTPCREL(%rip), %rax
	movq	_UR_REG_LM_POST_MOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_UR_REG_LM_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_UR_REG_LM_POST_MOD_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	jmp	LBB0_13
LBB0_18:
	movl	%ebx, %edi
	callq	_swreg_lm_mode
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	jmp	LBB0_27
LBB0_12:
	movq	_UR_REG_LM@GOTPCREL(%rip), %rax
	movq	_UR_REG_LM_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %ebx
	orl	%r15d, %ebx
	movl	%r14d, %esi
LBB0_13:
	callq	_FIELD_PREP
	movl	%eax, %r15d
	orl	%ebx, %r15d
LBB0_28:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_22
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_19
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_UR_REG_NN,4,2                  ## @UR_REG_NN
	.comm	_UR_REG_XFR,4,2                 ## @UR_REG_XFR
	.comm	_UR_REG_LM_IDX_MAX,4,2          ## @UR_REG_LM_IDX_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LM offset too large\n"

	.comm	_UR_REG_LM,4,2                  ## @UR_REG_LM
	.comm	_UR_REG_LM_IDX,4,2              ## @UR_REG_LM_IDX
L_.str.1:                               ## @.str.1
	.asciz	"LM offset in inc/dev mode\n"

	.comm	_UR_REG_LM_POST_MOD,4,2         ## @UR_REG_LM_POST_MOD
	.comm	_UR_REG_LM_POST_MOD_DEC,4,2     ## @UR_REG_LM_POST_MOD_DEC
L_.str.2:                               ## @.str.2
	.asciz	"bad LM mode for unrestricted operands %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"immediate too large\n"

	.comm	_UR_REG_NO_DST,4,2              ## @UR_REG_NO_DST
	.comm	_REG_NONE,4,2                   ## @REG_NONE
L_.str.4:                               ## @.str.4
	.asciz	"unrecognized reg encoding %08x\n"

	.no_dead_strip	_nfp_swreg_to_unreg
.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_unreg
_nfp_swreg_to_unreg:                    ; @nfp_swreg_to_unreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_swreg_value
	mov	x19, x0
	mov	x0, x21
	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, _UR_REG_XFR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UR_REG_XFR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh6:
	adrp	x8, _UR_REG_NO_DST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UR_REG_NO_DST@GOTPAGEOFF]
Lloh8:
	adrp	x9, _REG_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG_NONE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	b	LBB0_21
LBB0_5:
Lloh10:
	adrp	x8, _UR_REG_NN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UR_REG_NN@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_21
LBB0_7:
	mov	x0, x21
	bl	_swreg_lm_idx
	mov	x20, x0
	mov	x0, x21
	bl	_swreg_lm_mode
	cmp	w0, #138
	b.eq	LBB0_15
; %bb.8:
	cmp	w0, #137
	b.eq	LBB0_17
; %bb.9:
	cmp	w0, #136
	b.ne	LBB0_19
; %bb.10:
Lloh12:
	adrp	x8, _UR_REG_LM_IDX_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UR_REG_LM_IDX_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bics	wzr, w19, w8
	b.eq	LBB0_22
; %bb.11:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_12:
	cmp	w19, #256
	b.hs	LBB0_14
; %bb.13:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_UR_REG_IMM_encode
LBB0_14:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_15:
	mov	w21, #1
	cbz	w19, LBB0_18
LBB0_16:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_17:
	mov	w21, #0
	cbnz	w19, LBB0_16
LBB0_18:
Lloh21:
	adrp	x8, _UR_REG_LM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UR_REG_LM@GOTPAGEOFF]
Lloh23:
	adrp	x9, _UR_REG_LM_POST_MOD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _UR_REG_LM_POST_MOD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh27:
	adrp	x8, _UR_REG_LM_IDX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UR_REG_LM_IDX@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w19, w19, w0
Lloh30:
	adrp	x8, _UR_REG_LM_POST_MOD_DEC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UR_REG_LM_POST_MOD_DEC@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w19, w19, w0
	b	LBB0_21
LBB0_19:
	mov	x0, x21
	bl	_swreg_lm_mode
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:
	bl	_pr_err
	mov	w19, #0
LBB0_21:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_22:
Lloh35:
	adrp	x8, _UR_REG_LM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UR_REG_LM@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
Lloh38:
	adrp	x8, _UR_REG_LM_IDX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UR_REG_LM_IDX@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w8, w21, w19
	orr	w19, w8, w0
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
                                        ; -- End function
	.comm	_UR_REG_NN,4,2                  ; @UR_REG_NN
	.comm	_UR_REG_XFR,4,2                 ; @UR_REG_XFR
	.comm	_UR_REG_LM_IDX_MAX,4,2          ; @UR_REG_LM_IDX_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LM offset too large\n"

	.comm	_UR_REG_LM,4,2                  ; @UR_REG_LM
	.comm	_UR_REG_LM_IDX,4,2              ; @UR_REG_LM_IDX
l_.str.1:                               ; @.str.1
	.asciz	"LM offset in inc/dev mode\n"

	.comm	_UR_REG_LM_POST_MOD,4,2         ; @UR_REG_LM_POST_MOD
	.comm	_UR_REG_LM_POST_MOD_DEC,4,2     ; @UR_REG_LM_POST_MOD_DEC
l_.str.2:                               ; @.str.2
	.asciz	"bad LM mode for unrestricted operands %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"immediate too large\n"

	.comm	_UR_REG_NO_DST,4,2              ; @UR_REG_NO_DST
	.comm	_REG_NONE,4,2                   ; @REG_NONE
l_.str.4:                               ; @.str.4
	.asciz	"unrecognized reg encoding %08x\n"

	.no_dead_strip	_nfp_swreg_to_unreg
.subsections_via_symbols
