	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ashrdi3                      ## -- Begin function __ashrdi3
	.p2align	4, 0x90
___ashrdi3:                             ## @__ashrdi3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movl	%edi, %r8d
	movq	_LONG_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %edx
	subl	%esi, %edx
	jle	LBB0_1
## %bb.2:
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	movq	_L@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	(%r8,%r9,8), %r11
	movl	%esi, %ecx
	sarq	%cl, %r11
	movq	_H@GOTPCREL(%rip), %r10
	movq	(%r10), %rcx
	movq	(%r8,%rcx,8), %rdi
	movl	%edx, %ecx
	shlq	%cl, %rdi
	orq	%r11, %rdi
	movq	%rdi, (%r8,%r9,8)
	movq	(%r10), %rdx
	movl	%esi, %ecx
	sarl	%cl, (%r8,%rdx,4)
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movq	_H@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movl	(%r8,%rcx,4), %r10d
	leal	-1(%rdi), %ecx
	movl	%r10d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	sarl	%edx
	movl	%esi, %ecx
	subl	%edi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r10d
	movslq	%edx, %rcx
	movq	_QUAD_BITS@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	movslq	%r10d, %rdx
	cmovleq	%rcx, %rdx
	movq	_L@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%r8,%rsi,8)
	movq	(%r9), %rdx
	movq	%rcx, (%r8,%rdx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_BITS,4,2                  ## @LONG_BITS
	.comm	_H,8,3                          ## @H
	.comm	_QUAD_BITS,4,2                  ## @QUAD_BITS
	.comm	_L,8,3                          ## @L
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ashrdi3                      ; -- Begin function __ashrdi3
	.p2align	2
___ashrdi3:                             ; @__ashrdi3
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	mov	w8, w0
Lloh0:
	adrp	x9, _LONG_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LONG_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	subs	w9, w10, w1
	b.le	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x10, _L@GOTPAGE
Lloh4:
	ldr	x10, [x10, _L@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x10, #3
	ldr	x11, [x8, x10]
Lloh6:
	adrp	x12, _H@GOTPAGE
Lloh7:
	ldr	x12, [x12, _H@GOTPAGEOFF]
	ldr	x13, [x12]
	ldr	x13, [x8, x13, lsl #3]
	asr	x11, x11, x1
	lsl	x9, x13, x9
	orr	x9, x9, x11
	str	x9, [x8, x10]
	ldr	x9, [x12]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	asr	w10, w10, w1
	str	w10, [x8, x9]
LBB0_3:
	ret
LBB0_4:
Lloh8:
	adrp	x9, _H@GOTPAGE
Lloh9:
	ldr	x9, [x9, _H@GOTPAGEOFF]
	ldr	x11, [x9]
	ldr	w11, [x8, x11, lsl #2]
	sub	w12, w10, #1
	asr	w12, w11, w12
	sbfx	x12, x12, #1, #31
Lloh10:
	adrp	x13, _QUAD_BITS@GOTPAGE
Lloh11:
	ldr	x13, [x13, _QUAD_BITS@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x13]
	sub	w10, w1, w10
	asr	w10, w11, w10
	sxtw	x10, w10
	cmp	w13, w1
	csel	x10, x10, x12, gt
Lloh13:
	adrp	x11, _L@GOTPAGE
Lloh14:
	ldr	x11, [x11, _L@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	str	x10, [x8, x11, lsl #3]
	ldr	x9, [x9]
	str	x12, [x8, x9, lsl #3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_BITS,4,2                  ; @LONG_BITS
	.comm	_H,8,3                          ; @H
	.comm	_QUAD_BITS,4,2                  ; @QUAD_BITS
	.comm	_L,8,3                          ; @L
.subsections_via_symbols
