	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_shm_free                   ## -- Begin function fpm_shm_free
	.p2align	4, 0x90
_fpm_shm_free:                          ## @fpm_shm_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	callq	_munmap
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	_fpm_shm_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%edx, %edx
	subq	%rbx, %rcx
	cmovneq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_zlog
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mem is NULL"

	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to free shm"

	.comm	_fpm_shm_size,8,3               ## @fpm_shm_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_shm_free                   ; -- Begin function fpm_shm_free
	.p2align	2
_fpm_shm_free:                          ; @fpm_shm_free
	.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_3
; %bb.1:
	mov	x19, x1
	bl	_munmap
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _fpm_shm_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpm_shm_size@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, x19
	csel	x9, xzr, x9, eq
	str	x9, [x8]
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_zlog
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mem is NULL"

	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to free shm"

	.comm	_fpm_shm_size,8,3               ; @fpm_shm_size
.subsections_via_symbols
