	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_GState_New                ## -- Begin function HPDF_GState_New
	.p2align	4, 0x90
_HPDF_GState_New:                       ## @HPDF_GState_New
	.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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	_HPDF_LIMIT_MAX_GSTATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.2:
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	204(%r14), %rax
	movq	%rax, 204(%rbx)
	movups	188(%r14), %xmm0
	movups	%xmm0, 188(%rbx)
	movups	172(%r14), %xmm0
	movups	%xmm0, 172(%rbx)
	movq	164(%r14), %rax
	movq	%rax, 164(%rbx)
	movups	132(%r14), %xmm0
	movups	148(%r14), %xmm1
	movups	%xmm1, 148(%rbx)
	movups	%xmm0, 132(%rbx)
	movl	128(%r14), %eax
	movl	%eax, 128(%rbx)
	movl	124(%r14), %eax
	movl	%eax, 124(%rbx)
	movl	120(%r14), %eax
	movl	%eax, 120(%rbx)
	movups	104(%r14), %xmm0
	movups	%xmm0, 104(%rbx)
	movups	88(%r14), %xmm0
	movups	%xmm0, 88(%rbx)
	movups	72(%r14), %xmm0
	movups	%xmm0, 72(%rbx)
	movups	56(%r14), %xmm0
	movups	%xmm0, 56(%rbx)
	movups	40(%r14), %xmm0
	movups	%xmm0, 40(%rbx)
	movq	32(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_4:
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	l___const.HPDF_GState_New.DEF_MATRIX+16(%rip), %rax
	movq	%rax, 204(%rbx)
	movups	l___const.HPDF_GState_New.DEF_MATRIX(%rip), %xmm0
	movups	%xmm0, 188(%rbx)
	movq	_HPDF_DEF_LINEWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 184(%rbx)
	movq	_HPDF_DEF_LINECAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 180(%rbx)
	movq	_HPDF_DEF_LINEJOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 176(%rbx)
	movq	_HPDF_DEF_MITERLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 172(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 132(%rbx)
	movups	%xmm0, 148(%rbx)
	movq	$0, 164(%rbx)
	movq	_HPDF_DEF_FLATNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movq	_HPDF_DEF_CHARSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movq	_HPDF_DEF_WORDSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movq	_HPDF_DEF_HSCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	movq	_HPDF_DEF_LEADING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	_HPDF_DEF_RENDERING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movq	_HPDF_DEF_RISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	_HPDF_CS_DEVICE_GRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movq	%rax, 88(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movq	_HPDF_WMODE_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	$1, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movl	(%rdi), %edi
	movq	_HPDF_EXCEED_GSTATE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_LIMIT_MAX_GSTATE,8,3      ## @HPDF_LIMIT_MAX_GSTATE
	.comm	_HPDF_EXCEED_GSTATE_LIMIT,4,2   ## @HPDF_EXCEED_GSTATE_LIMIT
	.section	__TEXT,__const
	.p2align	2                               ## @__const.HPDF_GState_New.DEF_MATRIX
l___const.HPDF_GState_New.DEF_MATRIX:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_HPDF_DEF_LINEWIDTH,4,2         ## @HPDF_DEF_LINEWIDTH
	.comm	_HPDF_DEF_LINECAP,4,2           ## @HPDF_DEF_LINECAP
	.comm	_HPDF_DEF_LINEJOIN,4,2          ## @HPDF_DEF_LINEJOIN
	.comm	_HPDF_DEF_MITERLIMIT,4,2        ## @HPDF_DEF_MITERLIMIT
	.comm	_HPDF_DEF_FLATNESS,4,2          ## @HPDF_DEF_FLATNESS
	.comm	_HPDF_DEF_CHARSPACE,4,2         ## @HPDF_DEF_CHARSPACE
	.comm	_HPDF_DEF_WORDSPACE,4,2         ## @HPDF_DEF_WORDSPACE
	.comm	_HPDF_DEF_HSCALING,4,2          ## @HPDF_DEF_HSCALING
	.comm	_HPDF_DEF_LEADING,4,2           ## @HPDF_DEF_LEADING
	.comm	_HPDF_DEF_RENDERING_MODE,4,2    ## @HPDF_DEF_RENDERING_MODE
	.comm	_HPDF_DEF_RISE,4,2              ## @HPDF_DEF_RISE
	.comm	_HPDF_CS_DEVICE_GRAY,8,3        ## @HPDF_CS_DEVICE_GRAY
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ## @HPDF_WMODE_HORIZONTAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_GState_New                ; -- Begin function HPDF_GState_New
	.p2align	2
_HPDF_GState_New:                       ; @HPDF_GState_New
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HPDF_LIMIT_MAX_GSTATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPDF_LIMIT_MAX_GSTATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.2:
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_8
; %bb.3:
	ldur	q0, [x19, #188]
	ldur	x8, [x19, #204]
	stur	x8, [x0, #204]
	stur	q0, [x0, #188]
	ldur	q0, [x19, #172]
	stur	q0, [x0, #172]
	ldur	q0, [x19, #132]
	ldur	q1, [x19, #148]
	ldur	x8, [x19, #164]
	stur	x8, [x0, #164]
	stur	q1, [x0, #148]
	stur	q0, [x0, #132]
	ldr	w8, [x19, #128]
	str	w8, [x0, #128]
	ldr	d0, [x19, #120]
	str	d0, [x0, #120]
	ldur	q0, [x19, #104]
	stur	q0, [x0, #104]
	ldp	x9, x8, [x19, #88]
	stp	x9, x8, [x0, #88]
	ldur	q0, [x19, #72]
	stur	q0, [x0, #72]
	ldp	x9, x8, [x19, #56]
	stp	x9, x8, [x0, #56]
	ldur	q0, [x19, #40]
	stur	q0, [x0, #40]
	ldp	x9, x8, [x19, #24]
	stp	x9, x8, [x0, #24]
	ldr	w8, [x19, #16]
	str	w8, [x0, #16]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x19, [x0, #8]
	b	LBB0_6
LBB0_4:
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, l___const.HPDF_GState_New.DEF_MATRIX@PAGE
Lloh4:
	add	x8, x8, l___const.HPDF_GState_New.DEF_MATRIX@PAGEOFF
	ldr	q0, [x8]
	stur	q0, [x0, #188]
	ldr	x8, [x8, #16]
	stur	x8, [x0, #204]
Lloh5:
	adrp	x8, _HPDF_DEF_LINEWIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_DEF_LINEWIDTH@GOTPAGEOFF]
Lloh7:
	adrp	x9, _HPDF_DEF_LINECAP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HPDF_DEF_LINECAP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #180]
Lloh11:
	adrp	x8, _HPDF_DEF_LINEJOIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_DEF_LINEJOIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _HPDF_DEF_MITERLIMIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HPDF_DEF_MITERLIMIT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #172]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #132]
	stur	q0, [x0, #148]
	stur	xzr, [x0, #164]
Lloh17:
	adrp	x8, _HPDF_DEF_FLATNESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPDF_DEF_FLATNESS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #128]
Lloh20:
	adrp	x8, _HPDF_DEF_CHARSPACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HPDF_DEF_CHARSPACE@GOTPAGEOFF]
Lloh22:
	adrp	x9, _HPDF_DEF_WORDSPACE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HPDF_DEF_WORDSPACE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #120]
Lloh26:
	adrp	x8, _HPDF_DEF_HSCALING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HPDF_DEF_HSCALING@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _HPDF_DEF_LEADING@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HPDF_DEF_LEADING@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #112]
Lloh32:
	adrp	x8, _HPDF_DEF_RENDERING_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HPDF_DEF_RENDERING_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _HPDF_DEF_RISE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HPDF_DEF_RISE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #104]
Lloh38:
	adrp	x8, _HPDF_CS_DEVICE_GRAY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HPDF_CS_DEVICE_GRAY@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #88]
	stur	q0, [x0, #72]
	stur	q0, [x0, #56]
	stur	q0, [x0, #40]
Lloh41:
	adrp	x8, _HPDF_WMODE_HORIZONTAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HPDF_WMODE_HORIZONTAL@GOTPAGEOFF]
	stur	q0, [x0, #24]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	w8, #1
	str	xzr, [x0, #8]
LBB0_6:
	str	x8, [x0]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x0]
Lloh44:
	adrp	x8, _HPDF_EXCEED_GSTATE_LIMIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HPDF_EXCEED_GSTATE_LIMIT@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_LIMIT_MAX_GSTATE,8,3      ; @HPDF_LIMIT_MAX_GSTATE
	.comm	_HPDF_EXCEED_GSTATE_LIMIT,4,2   ; @HPDF_EXCEED_GSTATE_LIMIT
	.section	__TEXT,__const
	.p2align	2                               ; @__const.HPDF_GState_New.DEF_MATRIX
l___const.HPDF_GState_New.DEF_MATRIX:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_HPDF_DEF_LINEWIDTH,4,2         ; @HPDF_DEF_LINEWIDTH
	.comm	_HPDF_DEF_LINECAP,4,2           ; @HPDF_DEF_LINECAP
	.comm	_HPDF_DEF_LINEJOIN,4,2          ; @HPDF_DEF_LINEJOIN
	.comm	_HPDF_DEF_MITERLIMIT,4,2        ; @HPDF_DEF_MITERLIMIT
	.comm	_HPDF_DEF_FLATNESS,4,2          ; @HPDF_DEF_FLATNESS
	.comm	_HPDF_DEF_CHARSPACE,4,2         ; @HPDF_DEF_CHARSPACE
	.comm	_HPDF_DEF_WORDSPACE,4,2         ; @HPDF_DEF_WORDSPACE
	.comm	_HPDF_DEF_HSCALING,4,2          ; @HPDF_DEF_HSCALING
	.comm	_HPDF_DEF_LEADING,4,2           ; @HPDF_DEF_LEADING
	.comm	_HPDF_DEF_RENDERING_MODE,4,2    ; @HPDF_DEF_RENDERING_MODE
	.comm	_HPDF_DEF_RISE,4,2              ; @HPDF_DEF_RISE
	.comm	_HPDF_CS_DEVICE_GRAY,8,3        ; @HPDF_CS_DEVICE_GRAY
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ; @HPDF_WMODE_HORIZONTAL
.subsections_via_symbols
