	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_vt4font
_load_vt4font:                          ## @load_vt4font
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-64(%rbp), %rdi
	movl	$32, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fread
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movl	-40(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_4:
	movq	_VFNT_MAPS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.5:
	movq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_be32toh
	movq	_load_vt4font.vfnt+32(%rip), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	movl	-52(%rbp), %edi
	callq	_be32toh
	movq	%rax, _load_vt4font.vfnt(%rip)
	movl	-56(%rbp), %edi
	movl	%edi, _load_vt4font.vfnt+40(%rip)
	movq	-64(%rbp), %rax
	movq	%rax, _load_vt4font.vfnt+8(%rip)
	movl	$8, %esi
	callq	_howmany
	movq	%rax, %rbx
	imulq	_load_vt4font.vfnt+8(%rip), %rbx
	imulq	_load_vt4font.vfnt(%rip), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, _load_vt4font.vfnt+16(%rip)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fread
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.10:
	cmpl	$0, (%r15)
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_load_vt4font.vfnt+32(%rip), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_load_vt4mappingtable
	movq	_load_vt4font.vfnt+24(%rip), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_13:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PIO_VFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_load_vt4font.vfnt(%rip), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	callq	_warn
LBB0_15:
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_load_vt4font.vfnt+24(%rip), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_free
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_17
	jmp	LBB0_18
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
LBB0_18:
	movq	_load_vt4font.vfnt+16(%rip), %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_load_vt4font.vfnt,48,3 ## @load_vt4font.vfnt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read file_header"

L_.str.1:                               ## @.str.1
	.asciz	"VFNT0002"

L_.str.2:                               ## @.str.2
	.asciz	"bad magic in font file\n"

	.comm	_VFNT_MAPS,4,2                  ## @VFNT_MAPS
L_.str.3:                               ## @.str.3
	.asciz	"malloc"

L_.str.4:                               ## @.str.4
	.asciz	"read glyphs"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_PIO_VFONT,4,2                  ## @PIO_VFONT
L_.str.5:                               ## @.str.5
	.asciz	"PIO_VFONT"

	.no_dead_strip	_load_vt4font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_vt4font
_load_vt4font:                          ; @load_vt4font
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	mov	x0, sp
	mov	w1, #32
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [sp, #24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	add	sp, sp, #96
	b	_warnx
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	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
	add	sp, sp, #96
	b	_warn
LBB0_5:
Lloh6:
	adrp	x21, _VFNT_MAPS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VFNT_MAPS@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x20, #0
	ldr	x22, [sp, #16]
	adrp	x23, _load_vt4font.vfnt@PAGE+32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x20, lsl #2]
	bl	_be32toh
	ldr	x8, [x23, _load_vt4font.vfnt@PAGEOFF+32]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	w8, [x21]
	cmp	x20, x8
	b.lo	LBB0_7
LBB0_8:
	ldr	w0, [sp, #12]
	bl	_be32toh
Lloh8:
	adrp	x22, _load_vt4font.vfnt@PAGE
Lloh9:
	add	x22, x22, _load_vt4font.vfnt@PAGEOFF
	ldr	w8, [sp, #8]
	str	w8, [x22, #40]
	ldr	x9, [sp]
	stp	x0, x9, [x22]
	mov	x0, x8
	mov	w1, #8
	bl	_howmany
	ldp	x9, x8, [x22]
	mul	x8, x8, x0
	mul	x20, x8, x9
	mov	x0, x20
	bl	_malloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_18
; %bb.9:
	mov	x1, x20
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.10:
	ldr	w8, [x21]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x20, #0
Lloh10:
	adrp	x22, _load_vt4font.vfnt@PAGE+24
Lloh11:
	add	x22, x22, _load_vt4font.vfnt@PAGEOFF+24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	lsl	x23, x20, #3
	ldr	x0, [x8, x23]
	mov	x1, x19
	bl	_load_vt4mappingtable
	ldr	x8, [x22]
	str	x0, [x8, x23]
	add	x20, x20, #1
	ldr	w8, [x21]
	cmp	x20, x8
	b.lo	LBB0_12
LBB0_13:
Lloh12:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PIO_VFONT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIO_VFONT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, _load_vt4font.vfnt@PAGE
Lloh19:
	add	x2, x2, _load_vt4font.vfnt@PAGEOFF
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.14:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warn
LBB0_15:
	ldr	w8, [x21]
	cbz	w8, LBB0_20
; %bb.16:
	mov	x19, #0
	adrp	x20, _load_vt4font.vfnt@PAGE+24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, _load_vt4font.vfnt@PAGEOFF+24]
	ldr	x0, [x8, x19, lsl #3]
	bl	_free
	add	x19, x19, #1
	ldr	w8, [x21]
	cmp	x19, x8
	b.lo	LBB0_17
	b	LBB0_20
LBB0_18:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_19:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
LBB0_20:
Lloh26:
	adrp	x8, _load_vt4font.vfnt@PAGE+16
Lloh27:
	ldr	x0, [x8, _load_vt4font.vfnt@PAGEOFF+16]
	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
	add	sp, sp, #96
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdr	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_load_vt4font.vfnt,48,3 ; @load_vt4font.vfnt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read file_header"

l_.str.1:                               ; @.str.1
	.asciz	"VFNT0002"

l_.str.2:                               ; @.str.2
	.asciz	"bad magic in font file\n"

	.comm	_VFNT_MAPS,4,2                  ; @VFNT_MAPS
l_.str.3:                               ; @.str.3
	.asciz	"malloc"

l_.str.4:                               ; @.str.4
	.asciz	"read glyphs"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_PIO_VFONT,4,2                  ; @PIO_VFONT
l_.str.5:                               ; @.str.5
	.asciz	"PIO_VFONT"

	.no_dead_strip	_load_vt4font
.subsections_via_symbols
