	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_read                        ## -- Begin function pm_read
	.p2align	4, 0x90
_pm_read:                               ## @pm_read
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	_PMT_UNCOMPRESSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rdx), %ecx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_fread
	movl	%eax, %r13d
LBB0_29:
	movslq	%r13d, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_PMT_ZIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	16(%rdx), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_gzread
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_gzerror2
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.4:
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
LBB0_6:
	movq	%rbx, %rdi
	callq	_gzrewind
	jmp	LBB0_29
LBB0_7:
	movq	_PMT_CSO@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.8:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_29
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r8
	movq	8(%r8), %rcx
	movl	(%r8), %r15d
	movl	%r15d, %esi
	sarl	$11, %esi
	movslq	%esi, %rdx
	leaq	(%rcx,%rdx,4), %rax
	addq	$4, %rax
	movl	(%rcx,%rdx,4), %ebx
	leaq	8(,%rdx,4), %rdx
	xorl	%r13d, %r13d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$2048, %r14                     ## imm = 0x800
	movl	$2048, %eax                     ## imm = 0x800
	cmovbq	%r14, %rax
	movl	$2048, %ebx                     ## imm = 0x800
	subl	%r15d, %ebx
	cmpl	%eax, %ebx
	cmovael	%eax, %ebx
	movl	%r15d, %eax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	%ebx, %r13d
	movl	%ebx, %ecx
	addq	%rcx, %r12
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addl	(%r8), %ebx
	movl	%ebx, (%r8)
	movq	8(%r8), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	addq	$4, %rdx
	movl	%ebx, %r15d
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	subq	%rcx, %r14
	je	LBB0_29
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	andl	$2047, %r15d                    ## imm = 0x7FF
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	cmpq	$2047, %r14                     ## imm = 0x7FF
	ja	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r8), %rdi
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%ebx, %r12d
	andl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	movl	40(%r8), %ecx
	shll	%cl, %r12d
	testl	%ebx, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	js	LBB0_14
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, %r13d
	subl	%ebx, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	andl	$4095, %r13d                    ## imm = 0xFFF
	cmpl	28(%r8), %esi
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	24(%r8), %r12d
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_fseek
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_fread
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %ecx
	movl	%ecx, 24(%r8)
	cmpl	%r13d, %eax
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 28(%r8)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r8), %rdx
	movl	$2048, %esi                     ## imm = 0x800
	movl	%r13d, %ecx
	callq	_uncompress2
	testl	%eax, %eax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_17
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	24(%r8), %r12d
	movq	%r8, %rbx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_fseek
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	$1, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_fread
	addl	%eax, %r12d
	movl	%r12d, 24(%rbx)
	cmpl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_29
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r15d, %r15d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$2048, %ebx                     ## imm = 0x800
	cmpq	$2047, %r14                     ## imm = 0x7FF
	ja	LBB0_20
	jmp	LBB0_19
LBB0_28:
	movq	_EL_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elprintf
	jmp	LBB0_29
LBB0_25:
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_PMT_UNCOMPRESSED,8,3           ## @PMT_UNCOMPRESSED
	.comm	_PMT_ZIP,8,3                    ## @PMT_ZIP
	.comm	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_PMT_CSO,8,3                    ## @PMT_CSO
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cso: read failed @ %08x"

L_.str.1:                               ## @.str.1
	.asciz	"cso: uncompress failed @ %08x with %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_read                        ; -- Begin function pm_read
	.p2align	2
_pm_read:                               ; @pm_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _PMT_UNCOMPRESSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMT_UNCOMPRESSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w3, [x2, #8]
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	bl	_fread
	mov	x19, x0
LBB0_2:
	sxtw	x0, w19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
Lloh3:
	adrp	x9, _PMT_ZIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PMT_ZIP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x22, [x2, #16]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_gzread
	mov	x19, x0
	mov	x0, x22
	bl	_gzerror2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.5:
Lloh6:
	adrp	x8, _Z_DATA_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_DATA_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _Z_STREAM_END@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Z_STREAM_END@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.6:
	mov	x0, x22
	bl	_gzrewind
	b	LBB0_2
LBB0_7:
Lloh12:
	adrp	x9, _PMT_CSO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PMT_CSO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.8:
	mov	w19, #0
	cbz	x20, LBB0_2
; %bb.9:
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x26, [x2, #16]
	ldr	x8, [x26, #8]
	ldr	w9, [x26]
	asr	w27, w9, #11
	sbfiz	x11, x27, #2, #32
	add	x8, x8, x11
	ldr	w10, [x8], #4
	add	x28, x11, #8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	x20, #2048
	mov	w9, #2048
	csel	x8, x20, x9, lo
	sub	w9, w9, w22
	cmp	w9, w8
	csel	w24, w9, w8, lo
	add	x1, x23, w22, uxtw
	mov	x0, x21
	mov	x2, x24
	bl	_memcpy
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w19, w24, w19
	mov	w11, w24
	add	x21, x21, x11
	ldr	w8, [x26]
	add	w9, w8, w24
	str	w9, [x26]
	ldr	x8, [x26, #8]
	add	x8, x8, x28
	add	w27, w27, #1
	add	x28, x28, #4
	mov	x10, x25
	subs	x20, x20, x11
	b.eq	LBB0_2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ands	w22, w9, #0x7ff
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, x21
	cmp	x20, #2047
	b.hi	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x23, [x26, #16]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w25, [x8]
	and	w9, w10, #0x7fffffff
	ldr	w8, [x26, #40]
	lsl	w24, w9, w8
	tbnz	w10, #31, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	sub	w9, w25, w10
	lsl	w8, w9, w8
	and	w25, w8, #0xfff
	ldr	w8, [x26, #28]
	cmp	w27, w8
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x26, #24]
	cmp	w24, w8
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #8]
Lloh15:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_fseek
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x26, #32]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w3, [x8, #8]
	mov	w1, #1
	mov	x2, x25
	bl	_fread
	add	w8, w0, w24
	str	w8, [x26, #24]
	cmp	w0, w25
	b.ne	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w27, [x26, #28]
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x2, [x26, #32]
	mov	x0, x23
	mov	w1, #2048
	mov	x3, x25
	bl	_uncompress2
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	cbz	w0, LBB0_25
	b	LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x26, #24]
	cmp	w24, w8
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #8]
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_fseek
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w3, [x8, #8]
	mov	x0, x23
	mov	w1, #1
	mov	w2, #2048
	bl	_fread
	add	w8, w0, w24
	str	w8, [x26, #24]
	cmp	w0, #2048
	b.ne	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w22, LBB0_10
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x20, #2047
	b.ls	LBB0_10
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w24, #2048
	b	LBB0_11
LBB0_28:
	mov	w19, #0
	b	LBB0_2
LBB0_29:
Lloh21:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	b	LBB0_31
LBB0_30:
Lloh26:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
LBB0_31:
	mov	x2, x24
	bl	_elprintf
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PMT_UNCOMPRESSED,8,3           ; @PMT_UNCOMPRESSED
	.comm	_PMT_ZIP,8,3                    ; @PMT_ZIP
	.comm	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_PMT_CSO,8,3                    ; @PMT_CSO
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cso: read failed @ %08x"

l_.str.1:                               ; @.str.1
	.asciz	"cso: uncompress failed @ %08x with %i"

.subsections_via_symbols
