	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libpe_release_buffer           ## -- Begin function libpe_release_buffer
	.p2align	4, 0x90
_libpe_release_buffer:                  ## @libpe_release_buffer
	.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
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	16(%rbx), %rdi
	movq	__PE_SecBuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sb_next@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_STAILQ_REMOVE
	movq	_LIBPE_F_BUFFER_MALLOCED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_free
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__PE_SecBuf,4,2                 ## @_PE_SecBuf
	.comm	_sb_next,4,2                    ## @sb_next
	.comm	_LIBPE_F_BUFFER_MALLOCED,4,2    ## @LIBPE_F_BUFFER_MALLOCED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libpe_release_buffer           ; -- Begin function libpe_release_buffer
	.p2align	2
_libpe_release_buffer:                  ; @libpe_release_buffer
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, __PE_SecBuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PE_SecBuf@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _sb_next@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sb_next@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_STAILQ_REMOVE
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _LIBPE_F_BUFFER_MALLOCED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LIBPE_F_BUFFER_MALLOCED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_free
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__PE_SecBuf,4,2                 ; @_PE_SecBuf
	.comm	_sb_next,4,2                    ; @sb_next
	.comm	_LIBPE_F_BUFFER_MALLOCED,4,2    ; @LIBPE_F_BUFFER_MALLOCED
.subsections_via_symbols
