	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i386nto_register_area          ## -- Begin function i386nto_register_area
	.p2align	4, 0x90
_i386nto_register_area:                 ## @i386nto_register_area
	.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
	movq	%rdx, %rbx
	movl	$0, (%rdx)
	movq	_NTO_REG_GENERAL@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.3:
	callq	_i386nto_reg_offset
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	setne	%al
	movl	%ecx, (%rbx)
	shll	$2, %eax
	jmp	LBB0_15
LBB0_4:
	movq	_NTO_REG_FLOAT@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%esi, (%rcx)
	jne	LBB0_15
## %bb.5:
	movq	_I387_FCTRL_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_I387_ST0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	setle	%r8b
	leal	8(%rax), %ecx
	cmpl	%edi, %ecx
	setg	%sil
	movq	_I387_XMM0_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	cmpl	%edi, %r10d
	setle	%r14b
	movq	_I387_MXCSR_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	cmpl	%edi, %r9d
	setg	%r11b
	movq	_I387_FISEG_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edi, %edx
	jg	LBB0_8
## %bb.6:
	cmpl	%edi, %ecx
	jl	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	movl	$2, %eax
	jmp	LBB0_14
LBB0_2:
	movq	_NUM_GPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_15
LBB0_8:
	cmpl	%edi, %ecx
	jge	LBB0_11
## %bb.9:
	movq	_I387_FOP_REGNUM@GOTPCREL(%rip), %rdx
	cmpl	%edi, (%rdx)
	jl	LBB0_11
## %bb.10:
	incl	%ecx
	movl	$8, %esi
	movl	$4, %eax
	movl	%ecx, %edx
	jmp	LBB0_14
LBB0_11:
	andb	%sil, %r8b
	andb	%r11b, %r14b
	orb	%r8b, %r14b
	testb	%r8b, %r8b
	cmovnel	%eax, %r10d
	testb	%r14b, %r14b
	je	LBB0_13
## %bb.12:
	xorb	$1, %r8b
	movzbl	%r8b, %esi
	shll	$7, %esi
	orl	$32, %esi
	movl	$16, %eax
	movl	%r10d, %edx
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
	cmpl	%edi, %r9d
	cmovnel	%ecx, %r9d
	movl	$4, %edx
	movl	$512, %eax                      ## imm = 0x200
	cmovel	%edx, %eax
	movl	$24, %esi
	cmovnel	%ecx, %esi
	movl	%r9d, %edx
LBB0_14:
	movl	%edi, %ecx
	subl	%edx, %ecx
	imull	%eax, %ecx
	addl	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$-1, %edi
	cmovnel	%ecx, %edx
	movl	%edx, (%rbx)
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NTO_REG_GENERAL,4,2            ## @NTO_REG_GENERAL
	.comm	_NUM_GPREGS,4,2                 ## @NUM_GPREGS
	.comm	_NTO_REG_FLOAT,4,2              ## @NTO_REG_FLOAT
	.comm	_I387_FCTRL_REGNUM,4,2          ## @I387_FCTRL_REGNUM
	.comm	_I387_FISEG_REGNUM,4,2          ## @I387_FISEG_REGNUM
	.comm	_I387_FOP_REGNUM,4,2            ## @I387_FOP_REGNUM
	.comm	_I387_ST0_REGNUM,4,2            ## @I387_ST0_REGNUM
	.comm	_I387_XMM0_REGNUM,4,2           ## @I387_XMM0_REGNUM
	.comm	_I387_MXCSR_REGNUM,4,2          ## @I387_MXCSR_REGNUM
	.comm	_X86_CPU_FXSR,4,2               ## @X86_CPU_FXSR
	.comm	_nto_cpuinfo_flags,4,2          ## @nto_cpuinfo_flags
	.comm	_nto_cpuinfo_valid,8,3          ## @nto_cpuinfo_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i386nto_register_area          ; -- Begin function i386nto_register_area
	.p2align	2
_i386nto_register_area:                 ; @i386nto_register_area
	.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
	mov	x19, x2
	str	wzr, [x2]
Lloh0:
	adrp	x8, _NTO_REG_GENERAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NTO_REG_GENERAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	bl	_i386nto_reg_offset
	cmn	w0, #1
	cset	w8, ne
	str	w0, [x19]
	lsl	w8, w8, #2
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _NTO_REG_FLOAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NTO_REG_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _I387_FCTRL_REGNUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I387_FCTRL_REGNUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _I387_FISEG_REGNUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I387_FISEG_REGNUM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _I387_ST0_REGNUM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _I387_ST0_REGNUM@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w10, w0
	add	w11, w10, #8
	ccmp	w11, w0, #4, le
	cset	w12, gt
Lloh15:
	adrp	x11, _I387_XMM0_REGNUM@GOTPAGE
Lloh16:
	ldr	x11, [x11, _I387_XMM0_REGNUM@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x11]
Lloh18:
	adrp	x11, _I387_MXCSR_REGNUM@GOTPAGE
Lloh19:
	ldr	x11, [x11, _I387_MXCSR_REGNUM@GOTPAGEOFF]
	cmp	w13, w0
Lloh20:
	ldr	w11, [x11]
	ccmp	w11, w0, #4, le
	cset	w14, gt
	cmp	w9, w0
	ccmp	w8, w0, #8, le
	b.ge	LBB0_8
; %bb.5:
Lloh21:
	adrp	x9, _I387_FOP_REGNUM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I387_FOP_REGNUM@GOTPAGEOFF]
	orr	w14, w12, w14
Lloh23:
	ldr	w9, [x9]
	cmp	w12, #0
	csel	w10, w10, w13, ne
	mov	w12, #160
	mov	w13, #32
	csel	w12, w13, w12, ne
	mov	w13, #16
	cmp	w11, w0
	csel	w11, w11, wzr, eq
	mov	w15, #512
	mov	w16, #4
	csel	w15, w16, w15, eq
	mov	w16, #24
	csel	w16, w16, wzr, eq
	tst	w14, #0x1
	csel	w10, w10, w11, ne
	csel	w11, w13, w15, ne
	csel	w12, w12, w16, ne
	mov	w13, #8
	mov	w14, #4
	cmp	w8, w0
	ccmp	w9, w0, #8, lt
	csinc	w9, w10, w8, lt
	csel	w8, w11, w14, lt
	csel	w10, w12, w13, lt
	b	LBB0_9
LBB0_6:
	mov	w8, #-1
	b	LBB0_10
LBB0_7:
Lloh24:
	adrp	x8, _NUM_GPREGS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NUM_GPREGS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	b	LBB0_10
LBB0_8:
	mov	w10, #0
	mov	w8, #2
LBB0_9:
	sub	w9, w0, w9
	madd	w9, w9, w8, w10
	cmn	w0, #1
	csel	w9, wzr, w9, eq
	str	w9, [x19]
LBB0_10:
	mov	x0, x8
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NTO_REG_GENERAL,4,2            ; @NTO_REG_GENERAL
	.comm	_NUM_GPREGS,4,2                 ; @NUM_GPREGS
	.comm	_NTO_REG_FLOAT,4,2              ; @NTO_REG_FLOAT
	.comm	_I387_FCTRL_REGNUM,4,2          ; @I387_FCTRL_REGNUM
	.comm	_I387_FISEG_REGNUM,4,2          ; @I387_FISEG_REGNUM
	.comm	_I387_FOP_REGNUM,4,2            ; @I387_FOP_REGNUM
	.comm	_I387_ST0_REGNUM,4,2            ; @I387_ST0_REGNUM
	.comm	_I387_XMM0_REGNUM,4,2           ; @I387_XMM0_REGNUM
	.comm	_I387_MXCSR_REGNUM,4,2          ; @I387_MXCSR_REGNUM
	.comm	_X86_CPU_FXSR,4,2               ; @X86_CPU_FXSR
	.comm	_nto_cpuinfo_flags,4,2          ; @nto_cpuinfo_flags
	.comm	_nto_cpuinfo_valid,8,3          ; @nto_cpuinfo_valid
.subsections_via_symbols
