	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ua2regval
_ua2regval:                             ## @ua2regval
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	movl	%eax, %edi
LBB0_2:
	leal	(%rdi,%rdi,4), %eax
	addl	%eax, %eax
	addl	$8500000, %eax                  ## imm = 0x81B320
	cltq
	imulq	$264655585, %rax, %rcx          ## imm = 0xFC652E1
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$42, %rcx
	addl	%eax, %ecx
	cmpl	$513, %ecx                      ## imm = 0x201
	movl	$512, %eax                      ## imm = 0x200
	cmovgel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ua2regval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ua2regval
_ua2regval:                             ; @ua2regval
	.cfi_startproc
; %bb.0:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	cmp	w1, #0
	csel	w8, w0, w8, eq
	mov	w9, #10
	mov	w10, #45856
	movk	w10, #129, lsl #16
	madd	w8, w8, w9, w10
	mov	w9, #21217
	movk	w9, #4038, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #42
	add	w8, w8, w9
	mov	w9, #512
	cmp	w8, #512
	csel	w0, w8, w9, gt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ua2regval
.subsections_via_symbols
