	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_zstd_init                 ## -- Begin function mkuz_zstd_init
	.p2align	4, 0x90
_mkuz_zstd_init:                        ## @mkuz_zstd_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	_USE_DEFAULT_LEVEL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movl	$9, (%r15)
	movl	$9, %ebx
LBB0_2:
	xorl	%eax, %eax
	callq	_ZSTD_minCLevel
	cmpl	%eax, %ebx
	jl	LBB0_5
## %bb.3:
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_ZSTD_maxCLevel
	cmpl	%eax, %ebx
	jle	LBB0_6
LBB0_5:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	xorl	%eax, %eax
	callq	_ZSTD_createCCtx
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_8:
	movq	_ZSTD_c_compressionLevel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_ZSTD_CCtx_setParameter
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ZSTD_isError
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	callq	_ZSTD_getErrorName
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	movq	_ZSTD_c_checksumFlag@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ZSTD_CCtx_setParameter
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ZSTD_isError
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_ZSTD_getErrorName
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_DEFAULT_LEVEL,4,2          ## @USE_DEFAULT_LEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"provided compression level %d is invalid"

L_.str.1:                               ## @.str.1
	.asciz	"could not allocate Zstd context"

	.comm	_ZSTD_c_compressionLevel,4,2    ## @ZSTD_c_compressionLevel
L_.str.2:                               ## @.str.2
	.asciz	"Could not set zstd compression level %d: %s"

	.comm	_ZSTD_c_checksumFlag,4,2        ## @ZSTD_c_checksumFlag
L_.str.3:                               ## @.str.3
	.asciz	"Could not enable zstd checksum: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_zstd_init                 ; -- Begin function mkuz_zstd_init
	.p2align	2
_mkuz_zstd_init:                        ; @mkuz_zstd_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w19, [x0]
Lloh0:
	adrp	x8, _USE_DEFAULT_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USE_DEFAULT_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #9
	str	w19, [x20]
LBB0_2:
	bl	_ZSTD_minCLevel
	cmp	w19, w0
	b.lt	LBB0_5
; %bb.3:
	ldr	w19, [x20]
	cbz	w19, LBB0_5
; %bb.4:
	bl	_ZSTD_maxCLevel
	cmp	w19, w0
	b.le	LBB0_6
LBB0_5:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	bl	_ZSTD_createCCtx
	mov	x19, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
Lloh7:
	adrp	x8, _ZSTD_c_compressionLevel@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZSTD_c_compressionLevel@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ZSTD_CCtx_setParameter
	mov	x21, x0
	bl	_ZSTD_isError
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w20, [x20]
	mov	x0, x21
	bl	_ZSTD_getErrorName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_10:
Lloh12:
	adrp	x8, _ZSTD_c_checksumFlag@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZSTD_c_checksumFlag@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_ZSTD_CCtx_setParameter
	mov	x20, x0
	bl	_ZSTD_isError
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_ZSTD_getErrorName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_DEFAULT_LEVEL,4,2          ; @USE_DEFAULT_LEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"provided compression level %d is invalid"

l_.str.1:                               ; @.str.1
	.asciz	"could not allocate Zstd context"

	.comm	_ZSTD_c_compressionLevel,4,2    ; @ZSTD_c_compressionLevel
l_.str.2:                               ; @.str.2
	.asciz	"Could not set zstd compression level %d: %s"

	.comm	_ZSTD_c_checksumFlag,4,2        ; @ZSTD_c_checksumFlag
l_.str.3:                               ; @.str.3
	.asciz	"Could not enable zstd checksum: %s"

.subsections_via_symbols
