	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_internal_size                  ## -- Begin function internal_size
	.p2align	4, 0x90
_internal_size:                         ## @internal_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movslq	(%rdi), %rax
	movslq	4(%rdi), %r9
	subq	%rax, %r9
	incq	%r9
	cmpl	$3, %esi
	jb	LBB0_14
## %bb.3:
	movl	%esi, %eax
	addq	$-3, %rax
	movq	%rax, %r8
	shrq	%r8
	incq	%r8
	cmpq	$2, %rax
	jae	LBB0_5
## %bb.4:
	movl	$2, %eax
LBB0_11:
	testb	$1, %r8b
	je	LBB0_14
## %bb.12:
	movslq	(%rdi,%rax,4), %rdx
	cmpl	-4(%rdi,%rax,4), %edx
	je	LBB0_14
## %bb.13:
	shlq	$2, %rax
	orq	$4, %rax
	movslq	(%rdi,%rax), %rax
	addq	%rax, %r9
	subq	%rdx, %r9
	incq	%r9
	jmp	LBB0_14
LBB0_1:
	xorl	%r9d, %r9d
LBB0_14:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	movl	%r9d, %eax
	cmovll	%edx, %eax
	cmpq	(%rcx), %r9
	cmovgl	%edx, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movl	$2, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rax
	addq	$-2, %rsi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi,%rax,4), %rdx
	cmpl	-4(%rdi,%rax,4), %edx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	4(%rdi,%rax,4), %rcx
	addq	%rcx, %r9
	subq	%rdx, %r9
	incq	%r9
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	8(%rdi,%rax,4), %rdx
	cmpl	4(%rdi,%rax,4), %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	12(%rdi,%rax,4), %rcx
	addq	%rcx, %r9
	subq	%rdx, %r9
	incq	%r9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_INT_MIN,8,3                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_internal_size                  ; -- Begin function internal_size
	.p2align	2
_internal_size:                         ; @internal_size
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	ldpsw	x8, x9, [x0]
	sub	x8, x9, x8
	add	x8, x8, #1
	cmp	w1, #3
	b.lo	LBB0_7
; %bb.2:
	mov	x10, #0
	mov	w9, w1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x10, #4
	add	x10, x10, #2
	cmp	x11, x9
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x0, x10, lsl #2
	ldp	w13, w11, [x12, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	cmp	w11, w13
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x12, [x12, #12]
	add	x8, x8, x12
	sub	x8, x8, x11
	add	x8, x8, #1
	b	LBB0_3
LBB0_6:
	mov	x8, #0
LBB0_7:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x10, _INT_MIN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _INT_MIN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #0, ge
	csinv	w0, w8, wzr, le
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_INT_MIN,8,3                    ; @INT_MIN
.subsections_via_symbols
