	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_typavgwidth                ## -- Begin function get_typavgwidth
	.p2align	4, 0x90
_get_typavgwidth:                       ## @get_typavgwidth
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_get_typlen
	movl	%eax, %ecx
	testl	%eax, %eax
	jle	LBB0_1
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_type_maximum_size
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	_BPCHAROID@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_7
## %bb.4:
	movl	%eax, %ecx
	cmpl	$33, %eax
	jb	LBB0_8
## %bb.5:
	movl	$516, %ecx                      ## imm = 0x204
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_8
## %bb.6:
	addl	$65504, %eax                    ## imm = 0xFFE0
	shrl	%eax
	andl	$32767, %eax                    ## imm = 0x7FFF
	addl	$32, %eax
LBB0_7:
	movl	%eax, %ecx
	jmp	LBB0_8
LBB0_2:
	movl	$32, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BPCHAROID,8,3                  ## @BPCHAROID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_typavgwidth                ; -- Begin function get_typavgwidth
	.p2align	2
_get_typavgwidth:                       ; @get_typavgwidth
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_typlen
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_type_maximum_size
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _BPCHAROID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BPCHAROID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #516
	mov	w9, #65504
	add	w9, w0, w9
	ubfx	w9, w9, #1, #15
	add	w9, w9, #32
	cmp	w0, #999
	csel	w8, w8, w9, hi
	cmp	w0, #33
	csel	w0, w0, w8, lo
	b	LBB0_5
LBB0_4:
	mov	w0, #32
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BPCHAROID,8,3                  ; @BPCHAROID
.subsections_via_symbols
