	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_csmapper
_open_csmapper:                         ## @open_csmapper
	.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	%rcx, %r8
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	__csmapper_open
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-16(%rbp), %rdi
	callq	__csmapper_get_src_max
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movq	-16(%rbp), %rdi
	callq	__csmapper_get_dst_max
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	-16(%rbp), %rdi
	callq	__csmapper_get_state_size
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	-16(%rbp), %rdi
	callq	__csmapper_close
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	-16(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_open_csmapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_csmapper
_open_csmapper:                         ; @open_csmapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x4, x3
	mov	x19, x0
	add	x0, sp, #8
	mov	w3, #0
	bl	__csmapper_open
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	__csmapper_get_src_max
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	bl	__csmapper_get_dst_max
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	__csmapper_get_state_size
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x0, [sp, #8]
	bl	__csmapper_close
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_open_csmapper
.subsections_via_symbols
