	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_type_maximum_size              ## -- Begin function type_maximum_size
	.p2align	4, 0x90
_type_maximum_size:                     ## @type_maximum_size
	.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 $edi killed $edi def $rdi
	movq	$-1, %rax
	testq	%rsi, %rsi
	js	LBB0_9
## %bb.1:
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_9
## %bb.2:
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_VARHDRSZ@GOTPCREL(%rip), %r14
	subq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movl	%eax, %edi
	callq	_pg_encoding_max_length
	imulq	%rbx, %rax
	addq	(%r14), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	(%rbx,%rcx), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_numeric_maximum_size           ## TAILCALL
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	addq	$16, %rax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_BITS_PER_BYTE,8,3              ## @BITS_PER_BYTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_type_maximum_size              ; -- Begin function type_maximum_size
	.p2align	2
_type_maximum_size:                     ; @type_maximum_size
	.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
	tbnz	x1, #63, LBB0_4
; %bb.1:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x19, _VARHDRSZ@GOTPAGE
Lloh3:
	ldr	x19, [x19, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x19]
	sub	x20, x1, x8
	bl	_GetDatabaseEncoding
	bl	_pg_encoding_max_length
	ldr	x8, [x19]
	madd	x0, x0, x20, x8
	b	LBB0_6
LBB0_4:
	mov	x0, #-1
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x9, x1, x8
	sub	x9, x9, #1
	sdiv	x8, x9, x8
	add	x0, x8, #16
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_numeric_maximum_size
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_BITS_PER_BYTE,8,3              ; @BITS_PER_BYTE
.subsections_via_symbols
