	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_close                       ## -- Begin function pm_close
	.p2align	4, 0x90
_pm_close:                              ## @pm_close
	.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	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PMT_UNCOMPRESSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	_PMT_ZIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %r14
	movl	16(%rbx), %edi
	callq	_gzclose
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_closezip
	jmp	LBB0_8
LBB0_4:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_PMT_CSO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	16(%rbx), %rdi
	callq	_free
LBB0_7:
	movq	8(%rbx), %rdi
	callq	_fclose
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_PMT_UNCOMPRESSED,8,3           ## @PMT_UNCOMPRESSED
	.comm	_PMT_ZIP,8,3                    ## @PMT_ZIP
	.comm	_PMT_CSO,8,3                    ## @PMT_CSO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_close                       ; -- Begin function pm_close
	.p2align	2
_pm_close:                              ; @pm_close
	.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	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PMT_UNCOMPRESSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMT_UNCOMPRESSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, _PMT_ZIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PMT_ZIP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x20, [x19, #8]
	ldr	w0, [x19, #16]
	bl	_gzclose
	str	xzr, [x20]
	mov	x0, x20
	bl	_closezip
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x9, _PMT_CSO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMT_CSO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_free
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_fclose
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_free
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh12:
	adrp	x8, _EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_PMT_UNCOMPRESSED,8,3           ; @PMT_UNCOMPRESSED
	.comm	_PMT_ZIP,8,3                    ; @PMT_ZIP
	.comm	_PMT_CSO,8,3                    ; @PMT_CSO
.subsections_via_symbols
