	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bzf_rewind
_bzf_rewind:                            ## @bzf_rewind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	$8, %edi
	callq	_malloc
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	4(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_BZ2_bzDecompressInit
	movq	_BZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	4(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_BZ2_bzDecompressEnd
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_BZ2_bzDecompressEnd
LBB0_2:
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BZ_OK,8,3                      ## @BZ_OK
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_bzf_rewind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bzf_rewind
_bzf_rewind:                            ; @bzf_rewind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x21, [x0]
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w1, #8
	bl	_bzero
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_BZ2_bzDecompressInit
Lloh0:
	adrp	x8, _BZ_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BZ_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_BZ2_bzDecompressEnd
	mov	x0, x21
	bl	_free
	mov	w0, #0
	str	x19, [x20]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_BZ2_bzDecompressEnd
LBB0_5:
	mov	x0, x19
	bl	_free
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BZ_OK,8,3                      ; @BZ_OK
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_bzf_rewind
.subsections_via_symbols
