	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function pspdf_alloc
LCPI0_0:
	.quad	0x4052000000000000              ## double 72
LCPI0_1:
	.quad	0x4039666666666666              ## double 25.399999999999999
LCPI0_2:
	.quad	0x4022000000000000              ## double 9
LCPI0_3:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
LCPI0_4:
	.quad	0x3ff6666666666666              ## double 1.3999999999999999
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pspdf_alloc:                           ## @pspdf_alloc
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$96, %esi
	callq	_mandoc_calloc
	movq	%rax, %r12
	movl	$1, %edi
	movl	$1, %esi
	callq	_mandoc_calloc
	movq	%rax, 80(%r12)
	movq	%rax, 88(%r12)
	movl	$1, (%r12)
	movl	%r14d, 4(%r12)
	movq	_TERMENC_ASCII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movl	$8, 8(%r12)
	xorl	%edi, %edi
	movl	$8, %esi
	movl	$4, %edx
	callq	_mandoc_reallocarray
	movq	%rax, 64(%r12)
	movq	_TERMFONT_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r12)
	movl	%ecx, (%rax)
	movl	$1, %edi
	movl	$80, %esi
	callq	_mandoc_calloc
	movq	%rax, %r14
	movq	%rax, 16(%r12)
	movq	_ps_advance@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_ps_begin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_ps_end@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_ps_endline@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_ps_hspan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_ps_letter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_ps_setwidth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_ps_width@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	movl	$216, -36(%rbp)
	movl	$279, -40(%rbp)                 ## imm = 0x117
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.10(%rip), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.11:
	movq	16(%r12), %r14
	leaq	L_.str.11(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movl	$297, -36(%rbp)                 ## imm = 0x129
	movl	$420, -40(%rbp)                 ## imm = 0x1A4
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r14)
	movl	$210, -36(%rbp)
	movl	$297, -40(%rbp)                 ## imm = 0x129
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.7(%rip), %rax
	movq	%rax, (%r14)
	movl	$148, -36(%rbp)
	movl	$210, -40(%rbp)
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.9(%rip), %rax
	movq	%rax, (%r14)
	movl	$216, -36(%rbp)
	movl	$356, -40(%rbp)                 ## imm = 0x164
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.12(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
	movq	16(%r12), %r14
LBB0_13:
	movl	$11, 8(%r14)
	movl	-36(%rbp), %eax
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	movq	%r12, %rdi
	callq	_PNT2AFM
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	movq	%r12, %rdi
	callq	_PNT2AFM
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rcx
	movq	%rcx, %rdx
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %r14
	sarq	$63, %rdx
	movl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	andq	%rdx, %r14
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	orq	%rcx, %r14
	movq	%rax, %rcx
	subsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %r15
	sarq	$63, %rcx
	andq	%rcx, %r15
	orq	%rax, %r15
	movq	16(%r12), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	8(%rax), %xmm0
	mulsd	LCPI0_4(%rip), %xmm0
	movq	%r12, %rdi
	callq	_PNT2AFM
	movl	-36(%rbp), %r8d
	movq	16(%r12), %rdx
	movq	%r8, 24(%rdx)
	movq	%r8, 16(%rdx)
	movl	-40(%rbp), %esi
	movq	%rsi, 32(%rdx)
	movq	%r15, %rdi
	shrq	%rdi
	movq	%rax, %rcx
	shrq	%rcx
	movl	%esi, %ebx
	subl	%ecx, %ebx
	subl	%edi, %ebx
	movl	%ebx, 40(%rdx)
	subl	%r15d, %esi
	movl	%esi, 44(%rdx)
	subq	%rcx, %rdi
	movq	%rdi, 48(%rdx)
	movq	%r15, 56(%rdx)
	movq	%r14, 64(%rdx)
	movq	%rax, 72(%rdx)
	addl	%r14d, %r14d
	subl	%r14d, %r8d
	movl	%r8d, 12(%r12)
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TERMENC_ASCII,4,2              ## @TERMENC_ASCII
	.comm	_TERMFONT_NONE,4,2              ## @TERMFONT_NONE
	.comm	_ps_advance,4,2                 ## @ps_advance
	.comm	_ps_begin,4,2                   ## @ps_begin
	.comm	_ps_end,4,2                     ## @ps_end
	.comm	_ps_endline,4,2                 ## @ps_endline
	.comm	_ps_hspan,4,2                   ## @ps_hspan
	.comm	_ps_letter,4,2                  ## @ps_letter
	.comm	_ps_setwidth,4,2                ## @ps_setwidth
	.comm	_ps_width,4,2                   ## @ps_width
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Letter"

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

L_.str.2:                               ## @.str.2
	.asciz	"a3"

L_.str.3:                               ## @.str.3
	.asciz	"A3"

L_.str.4:                               ## @.str.4
	.asciz	"a4"

L_.str.5:                               ## @.str.5
	.asciz	"A4"

L_.str.6:                               ## @.str.6
	.asciz	"a5"

L_.str.7:                               ## @.str.7
	.asciz	"A5"

L_.str.8:                               ## @.str.8
	.asciz	"legal"

L_.str.9:                               ## @.str.9
	.asciz	"Legal"

L_.str.10:                              ## @.str.10
	.asciz	"%ux%u"

L_.str.11:                              ## @.str.11
	.asciz	"CustomSize"

L_.str.12:                              ## @.str.12
	.asciz	"%s: Unknown paper"

	.no_dead_strip	_pspdf_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pspdf_alloc
_pspdf_alloc:                           ; @pspdf_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x1
	mov	x21, x0
	mov	w22, #1
	mov	w0, #1
	mov	w1, #96
	bl	_mandoc_calloc
	mov	x19, x0
	mov	w0, #1
	mov	w1, #1
	bl	_mandoc_calloc
	stp	x0, x0, [x19, #80]
	stp	w22, w20, [x19]
Lloh0:
	adrp	x8, _TERMENC_ASCII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TERMENC_ASCII@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	mov	w8, #8
	str	w8, [x19, #8]
	mov	x0, #0
	mov	w1, #8
	mov	w2, #4
	bl	_mandoc_reallocarray
	str	x0, [x19, #64]
Lloh3:
	adrp	x8, _TERMFONT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TERMFONT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	str	w8, [x0]
	mov	w0, #1
	mov	w1, #80
	bl	_mandoc_calloc
	mov	x20, x0
	str	x0, [x19, #16]
Lloh6:
	adrp	x8, _ps_advance@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ps_advance@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ps_begin@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ps_begin@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh12:
	adrp	x8, _ps_end@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ps_end@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ps_endline@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ps_endline@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh18:
	adrp	x8, _ps_hspan@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ps_hspan@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _ps_letter@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ps_letter@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh24:
	adrp	x8, _ps_setwidth@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ps_setwidth@GOTPAGEOFF]
Lloh26:
	adrp	x9, _ps_width@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ps_width@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh30:
	adrp	x8, l_.str@PAGE
Lloh31:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	mov	w10, #216
	mov	w8, #279
	stp	w8, w10, [sp, #8]
	ldr	x21, [x21]
	cbz	x21, LBB0_13
; %bb.1:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.2:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_9
; %bb.4:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_11
; %bb.6:
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.7:
	ldr	x20, [x19, #16]
Lloh44:
	adrp	x8, l_.str.11@PAGE
Lloh45:
	add	x8, x8, l_.str.11@PAGEOFF
	str	x8, [x20]
	b	LBB0_13
LBB0_8:
Lloh46:
	adrp	x8, l_.str.3@PAGE
Lloh47:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x20]
	mov	w9, #297
	mov	w8, #420
	stp	w8, w9, [sp, #8]
	b	LBB0_13
LBB0_9:
Lloh48:
	adrp	x8, l_.str.5@PAGE
Lloh49:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x20]
	mov	w9, #210
	mov	w8, #297
	stp	w8, w9, [sp, #8]
	b	LBB0_13
LBB0_10:
Lloh50:
	adrp	x8, l_.str.7@PAGE
Lloh51:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x20]
	mov	w9, #148
	mov	w8, #210
	stp	w8, w9, [sp, #8]
	b	LBB0_13
LBB0_11:
Lloh52:
	adrp	x8, l_.str.9@PAGE
Lloh53:
	add	x8, x8, l_.str.9@PAGEOFF
	str	x8, [x20]
	mov	w9, #216
	mov	w8, #356
	stp	w8, w9, [sp, #8]
	b	LBB0_13
LBB0_12:
Lloh54:
	adrp	x0, l_.str.12@PAGE
Lloh55:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x21
	bl	_warnx
	ldr	x20, [x19, #16]
LBB0_13:
	mov	w8, #11
	str	w8, [x20, #8]
	ldr	s0, [sp, #12]
	ucvtf	d0, d0
	mov	x8, #4634766966517661696
	fmov	d8, x8
	fmul	d0, d0, d8
	mov	x8, #7378697629483820646
	movk	x8, #16441, lsl #48
	fmov	d9, x8
	fdiv	d0, d0, d9
	mov	x0, x19
	bl	_PNT2AFM
	str	w0, [sp, #12]
	ldr	s0, [sp, #8]
	ucvtf	d0, d0
	fmul	d0, d0, d8
	fdiv	d0, d0, d9
	mov	x0, x19
	bl	_PNT2AFM
	str	w0, [sp, #8]
	ldr	s0, [sp, #12]
	ucvtf	d0, d0
	fmov	d1, #9.00000000
	fdiv	d0, d0, d1
	fcvtzu	x20, d0
	ucvtf	d0, w0
	fdiv	d0, d0, d1
	fcvtzu	x21, d0
	ldr	x8, [x19, #16]
	ldr	s0, [x8, #8]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #7378697629483820646
	movk	x8, #16374, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x0, x19
	bl	_PNT2AFM
	ldp	w10, w8, [sp, #8]
	ldr	x9, [x19, #16]
	stp	x8, x8, [x9, #16]
	str	x10, [x9, #32]
	lsr	x11, x21, #1
	lsr	x12, x0, #1
	add	w13, w12, w11
	sub	w13, w10, w13
	sub	w10, w10, w21
	stp	w13, w10, [x9, #40]
	sub	x10, x11, x12
	stp	x10, x21, [x9, #48]
	stp	x20, x0, [x9, #64]
	sub	w8, w8, w20, lsl #1
	str	w8, [x19, #12]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_TERMENC_ASCII,4,2              ; @TERMENC_ASCII
	.comm	_TERMFONT_NONE,4,2              ; @TERMFONT_NONE
	.comm	_ps_advance,4,2                 ; @ps_advance
	.comm	_ps_begin,4,2                   ; @ps_begin
	.comm	_ps_end,4,2                     ; @ps_end
	.comm	_ps_endline,4,2                 ; @ps_endline
	.comm	_ps_hspan,4,2                   ; @ps_hspan
	.comm	_ps_letter,4,2                  ; @ps_letter
	.comm	_ps_setwidth,4,2                ; @ps_setwidth
	.comm	_ps_width,4,2                   ; @ps_width
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Letter"

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

l_.str.2:                               ; @.str.2
	.asciz	"a3"

l_.str.3:                               ; @.str.3
	.asciz	"A3"

l_.str.4:                               ; @.str.4
	.asciz	"a4"

l_.str.5:                               ; @.str.5
	.asciz	"A4"

l_.str.6:                               ; @.str.6
	.asciz	"a5"

l_.str.7:                               ; @.str.7
	.asciz	"A5"

l_.str.8:                               ; @.str.8
	.asciz	"legal"

l_.str.9:                               ; @.str.9
	.asciz	"Legal"

l_.str.10:                              ; @.str.10
	.asciz	"%ux%u"

l_.str.11:                              ; @.str.11
	.asciz	"CustomSize"

l_.str.12:                              ; @.str.12
	.asciz	"%s: Unknown paper"

	.no_dead_strip	_pspdf_alloc
.subsections_via_symbols
