	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_stream_check_for_ps
_hb_stream_check_for_ps:                ## @hb_stream_check_for_ps
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$32808, %eax                    ## imm = 0x8028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	leaq	-32816(%rbp), %rbx
	movq	%r14, -32840(%rbp)              ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-32840(%rbp), %r14              ## 8-byte Reload
	movl	(%r14), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-27, %esi
	callq	_fseek
	movl	(%r14), %edi
	callq	_ftell
	cmpl	$524288, %eax                   ## imm = 0x80000
	leaq	-32816(%rbp), %rbx
	jge	LBB0_16
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_fread
	cmpl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$-32762, %r12d                  ## imm = 0x8006
	movl	$8165, %r13d                    ## imm = 0x1FE5
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-32844(%rbp), %esi              ## 4-byte Reload
	callq	_fseek
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	incl	%r12d
	addq	$4, %rbx
	decq	%r13
	je	LBB0_15
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_check_ps_sync
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_check_ps_sc
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-32800(%rbp), %eax
	movl	-32764(%rbp), %r14d
	andl	$-16, %eax
	andl	$7, %r14d
	addl	$14, %r14d
	cmpl	$32, %eax
	movl	$12, %eax
	cmovel	%eax, %r14d
	movl	16(%rbx,%r14,4), %r15d
	shll	$8, %r15d
	movl	20(%rbx,%r14,4), %ecx
	movl	%r15d, %eax
	addl	%ecx, %eax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	12(%rbx,%r14,4), %eax
	cmpl	$187, %eax
	jl	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$248, %eax
	jg	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-32840(%rbp), %rax              ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ecx, -32848(%rbp)              ## 4-byte Spill
	callq	_ftell
	movl	%eax, -32844(%rbp)              ## 4-byte Spill
	addl	%eax, %r14d
	addl	-32848(%rbp), %r14d             ## 4-byte Folded Reload
	addl	%r15d, %r14d
	addl	%r12d, %r14d
	movq	-32840(%rbp), %rcx              ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	movq	%rcx, %r14
	callq	_fseek
	movl	(%r14), %ecx
	leaq	-32832(%rbp), %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_fread
	cmpl	$4, %eax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$0, -32832(%rbp)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$0, -32828(%rbp)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$1, -32824(%rbp)
	jne	LBB0_13
## %bb.12:
	movl	$1, %eax
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$32808, %rsp                    ## imm = 0x8028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_hb_stream_check_for_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_stream_check_for_ps
_hb_stream_check_for_ps:                ; @hb_stream_check_for_ps
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #32800
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #32
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w0, [x0]
Lloh5:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_fseek
	mov	w24, #12
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #-27
	bl	_fseek
	ldr	w0, [x19]
	bl	_ftell
	cmp	w0, #128, lsl #12               ; =524288
	b.ge	LBB0_16
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w3, [x19]
	add	x0, sp, #16
	mov	w1, #1
	mov	w2, #32768
	bl	_fread
	cmp	w0, #8, lsl #12                 ; =32768
	b.ne	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #-32762
	add	x20, sp, #16
	mov	w26, #8165
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_fseek
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w25, w25, #1
	add	x20, x20, #4
	subs	x26, x26, #1
	b.eq	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_check_ps_sync
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_check_ps_sc
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp, #32]
	ldr	w9, [sp, #68]
	and	w8, w8, #0xfffffff0
	and	w9, w9, #0x7
	add	w9, w9, #14
	cmp	w8, #32
	csel	w27, w24, w9, eq
	add	x8, x20, w27, uxtw #2
	ldp	w9, w23, [x8, #16]
	lsl	w28, w9, #8
	cmn	w28, w23
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x8, #12]
	cmp	w8, #187
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w8, #248
	b.gt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x19]
	bl	_ftell
	mov	x21, x0
	add	w8, w27, w0
	add	w8, w8, w23
	add	w8, w8, w28
	add	w1, w25, w8
	ldr	w0, [x19]
	ldr	w2, [x22]
	bl	_fseek
	ldr	w3, [x19]
	mov	x0, sp
	mov	w1, #1
	mov	w2, #4
	bl	_fread
	cmp	w0, #4
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp]
	cbnz	w8, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #32
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_hb_stream_check_for_ps
.subsections_via_symbols
