	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function u128_shift_right_round
_u128_shift_right_round:                ## @u128_shift_right_round
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	$127, %esi
	jg	LBB0_12
## %bb.3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leal	-1(%rsi), %r8d
	movq	$-1, %r9
	movl	%r8d, %ecx
	shlq	%cl, %r9
	movl	%edi, %eax
	movl	%esi, %ecx
	sarl	%cl, %eax
	movq	_f80_rounding_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$130, %ecx
	popq	%rbp
	je	LBB0_7
## %bb.4:
	cmpl	$129, %ecx
	je	LBB0_8
## %bb.5:
	cmpl	$128, %ecx
	jne	LBB0_12
## %bb.6:
	cmpl	$1, %edx
	adcl	$0, %eax
	retq
LBB0_1:
	movl	%edi, %eax
	retq
LBB0_7:
	cmpl	$1, %edx
	sbbl	$-1, %eax
	retq
LBB0_8:
	btl	%r8d, %edi
	jae	LBB0_12
## %bb.9:
	notl	%r9d
	testl	%edi, %r9d
	je	LBB0_11
## %bb.10:
	incl	%eax
	retq
LBB0_11:
	movl	%eax, %ecx
	andl	$1, %ecx
	addl	%ecx, %eax
LBB0_12:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f80_rounding_mode,4,2          ## @f80_rounding_mode
	.no_dead_strip	_u128_shift_right_round
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function u128_shift_right_round
_u128_shift_right_round:                ; @u128_shift_right_round
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_9
; %bb.1:
	cmp	w1, #127
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	ret
LBB0_3:
	asr	w8, w0, w1
Lloh0:
	adrp	x9, _f80_rounding_mode@GOTPAGE
Lloh1:
	ldr	x9, [x9, _f80_rounding_mode@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #129
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x8
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.6:
	cmp	w2, #0
	cinc	w0, w8, eq
	ret
LBB0_7:
	cmp	w2, #0
	cinc	w0, w8, ne
	ret
LBB0_8:
	sub	w9, w1, #1
	mov	x10, #-1
	lsl	x10, x10, x9
	bic	w10, w0, w10
	lsr	w9, w0, w9
	and	w11, w8, #0x1
	add	w11, w11, w8
	cmp	w10, #0
	csinc	w10, w11, w8, eq
	tst	w9, #0x1
	csel	w0, w8, w10, eq
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_f80_rounding_mode,4,2          ; @f80_rounding_mode
	.no_dead_strip	_u128_shift_right_round
.subsections_via_symbols
