	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmp_cast_object
_gmp_cast_object:                       ## @gmp_cast_object
	.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
                                        ## kill: def $edx killed $edx def $rdx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	callq	_GET_GMP_OBJECT_FROM_OBJ
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_mpz_fits_slong_p
	movl	%r14d, %edi
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_6
LBB0_1:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	callq	_GET_GMP_OBJECT_FROM_OBJ
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_gmp_strval
	jmp	LBB0_9
LBB0_4:
	callq	_GET_GMP_OBJECT_FROM_OBJ
	movl	(%rax), %edi
LBB0_8:
	callq	_mpz_get_si
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ZVAL_LONG
	jmp	LBB0_9
LBB0_5:
	callq	_GET_GMP_OBJECT_FROM_OBJ
	movl	(%rax), %edi
LBB0_6:
	callq	_mpz_get_d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ZVAL_DOUBLE
LBB0_9:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FAILURE,4,2                    ## @FAILURE
	.no_dead_strip	_gmp_cast_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmp_cast_object
_gmp_cast_object:                       ; @gmp_cast_object
	.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
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x1
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:
	bl	_GET_GMP_OBJECT_FROM_OBJ
	ldr	w20, [x0]
	mov	x0, x20
	bl	_mpz_fits_slong_p
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _FAILURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	bl	_GET_GMP_OBJECT_FROM_OBJ
	ldr	w1, [x0]
	mov	x0, x19
	mov	w2, #10
	bl	_gmp_strval
	b	LBB0_11
LBB0_6:
	bl	_GET_GMP_OBJECT_FROM_OBJ
	ldr	w0, [x0]
LBB0_7:
	bl	_mpz_get_si
	mov	x1, x0
	mov	x0, x19
	bl	_ZVAL_LONG
	b	LBB0_11
LBB0_8:
	bl	_GET_GMP_OBJECT_FROM_OBJ
	ldr	w0, [x0]
	b	LBB0_10
LBB0_9:
	mov	x0, x20
LBB0_10:
	bl	_mpz_get_d
	mov	x1, x0
	mov	x0, x19
	bl	_ZVAL_DOUBLE
LBB0_11:
Lloh4:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FAILURE,4,2                    ; @FAILURE
	.no_dead_strip	_gmp_cast_object
.subsections_via_symbols
