	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_create
_lz_create:                             ## @lz_create
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	%r12d, %edi
	callq	_dup
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r15d, %edi
	callq	_dup
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movl	$-1, 32(%rbx)
	movl	%r14d, (%rbx)
	movl	$0, 4(%rbx)
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_lz_rd_create
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_lz_destroy
	movl	$-1, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"w"

	.no_dead_strip	_lz_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_create
_lz_create:                             ; @lz_create
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	x0, x22
	bl	_dup
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdopen
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_dup
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fdopen
	str	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.2:
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #56]
	mov	w8, #-1
	str	w8, [x19, #32]
	stp	w20, wzr, [x19]
	mov	x0, x20
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x19, #16
	ldr	x1, [x19, #8]
	bl	_lz_rd_create
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_lz_destroy
	mov	w0, #-1
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"w"

	.no_dead_strip	_lz_create
.subsections_via_symbols
