	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function native_encode_int
_native_encode_int:                     ## @native_encode_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TYPE_MODE
	movl	%eax, %edi
	callq	_GET_MODE_SIZE
	movl	%eax, %r13d
	xorl	%eax, %eax
	cmpl	%ebx, %r13d
	jg	LBB0_13
## %bb.1:
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rcx
	movl	%r13d, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.2:
	leal	-1(%r13), %r14d
	xorl	%ebx, %ebx
	movq	_HOST_BITS_PER_WIDE_INT@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BYTES_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	%r14d, %ecx
	cmovel	%ebx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%r9b, (%rcx,%rax)
	incl	%ebx
	addl	$-1, %r14d
	jae	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BITS_PER_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	%ebx, %r12d
	cmpl	(%r15), %r12d
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TREE_INT_CST_LOW
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TREE_INT_CST_HIGH
	subl	(%r15), %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r9d
	movl	%r12d, %ecx
	sarl	%cl, %r9d
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %r13d
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	cltd
	idivl	%edi
	movl	%eax, %ecx
	notl	%ecx
	addl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	cmovel	%eax, %ecx
	imull	%edi, %ecx
	movq	_BYTES_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	notl	%edx
	addl	%edi, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%edx, %ecx
	jmp	LBB0_11
LBB0_12:
	movl	%r13d, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNITS_PER_WORD,4,2             ## @UNITS_PER_WORD
	.comm	_BITS_PER_UNIT,4,2              ## @BITS_PER_UNIT
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ## @HOST_BITS_PER_WIDE_INT
	.comm	_WORDS_BIG_ENDIAN,8,3           ## @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ## @BYTES_BIG_ENDIAN
	.no_dead_strip	_native_encode_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function native_encode_int
_native_encode_int:                     ; @native_encode_int
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_TREE_TYPE
	bl	_TYPE_MODE
	bl	_GET_MODE_SIZE
	cmp	w0, w22
	b.le	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_13
LBB0_2:
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x8, _UNITS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w24, w21, w8
	mov	w25, #-1
Lloh3:
	adrp	x26, _BITS_PER_UNIT@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BITS_PER_UNIT@GOTPAGEOFF]
Lloh5:
	adrp	x27, _HOST_BITS_PER_WIDE_INT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HOST_BITS_PER_WIDE_INT@GOTPAGEOFF]
Lloh7:
	adrp	x28, _BYTES_BIG_ENDIAN@GOTPAGE
Lloh8:
	ldr	x28, [x28, _BYTES_BIG_ENDIAN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x28]
	add	w10, w21, w25
	cmp	x9, #0
	csel	w9, w22, w10, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x19, w9, sxtw]
	add	w22, w22, #1
	sub	w25, w25, #1
	cmp	w21, w22
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	mul	w23, w8, w22
	ldr	w8, [x27]
	mov	x0, x20
	cmp	w23, w8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_TREE_INT_CST_LOW
	asr	w8, w0, w23
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_TREE_INT_CST_HIGH
	ldr	w8, [x27]
	sub	w8, w23, w8
	asr	w8, w0, w8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x9, _UNITS_PER_WORD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w21, w9
	b.le	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	sdiv	w11, w22, w9
Lloh12:
	adrp	x10, _WORDS_BIG_ENDIAN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WORDS_BIG_ENDIAN@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	mvn	w12, w11
	add	w12, w24, w12
	cmp	x10, #0
	csel	w10, w11, w12, eq
	mul	w10, w10, w9
	ldr	x12, [x28]
	mul	w11, w11, w9
	cbz	x12, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w11, w22, w11
	mvn	w11, w11
	add	w9, w10, w9
	add	w9, w9, w11
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w10, w11
	add	w9, w22, w9
	b	LBB0_5
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UNITS_PER_WORD,4,2             ; @UNITS_PER_WORD
	.comm	_BITS_PER_UNIT,4,2              ; @BITS_PER_UNIT
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ; @HOST_BITS_PER_WIDE_INT
	.comm	_WORDS_BIG_ENDIAN,8,3           ; @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ; @BYTES_BIG_ENDIAN
	.no_dead_strip	_native_encode_int
.subsections_via_symbols
