	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_csmapper_open          ## -- Begin function _citrus_csmapper_open
	.p2align	4, 0x90
__citrus_csmapper_open:                 ## @_citrus_csmapper_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	$0, -80(%rbp)
	movq	__PATH_CSMAPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_maparea@GOTPCREL(%rip), %rdi
	callq	__citrus_mapper_create_area
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_1
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_CS_ALIAS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	__LOOKUP_CASE_IGNORE@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	__lookup_alias
	movl	(%r13), %edi
	movq	%rax, %r13
	movl	(%r12), %r8d
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	__lookup_alias
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_snprintf
	movq	_maparea@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	__mapper_open
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.7:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.8:
	movq	__CSMAPPER_F_PREVENT_PIVOT@GOTPCREL(%rip), %rcx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_14
## %bb.9:
	leaq	-80(%rbp), %r8
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_find_best_pivot
	movq	_maparea@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movl	(%rcx), %edi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_open_serial_mapper
                                        ## kill: def $eax killed $eax def $rax
	testq	%r14, %r14
	je	LBB0_14
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	-80(%rbp), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_maparea@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_none
                                        ## kill: def $eax killed $eax def $rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_14
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_14
LBB0_13:
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_maparea,4,2                    ## @maparea
	.comm	__PATH_CSMAPPER,4,2             ## @_PATH_CSMAPPER
	.comm	_CS_ALIAS,4,2                   ## @CS_ALIAS
	.comm	__LOOKUP_CASE_IGNORE,4,2        ## @_LOOKUP_CASE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	__CSMAPPER_F_PREVENT_PIVOT,4,2  ## @_CSMAPPER_F_PREVENT_PIVOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_csmapper_open          ; -- Begin function _citrus_csmapper_open
	.p2align	2
__citrus_csmapper_open:                 ; @_citrus_csmapper_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x4
	mov	x24, x3
	mov	x27, x2
	mov	x26, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x12, x9, #0x1fffffff0
	sub	x19, x8, x12
	mov	sp, x19
	mov	x9, x21
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x28, x8, x12
	mov	sp, x28
	mov	x9, x21
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	mov	x9, x21
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	stur	xzr, [x29, #-96]
Lloh14:
	adrp	x8, __PATH_CSMAPPER@GOTPAGE
Lloh15:
	ldr	x8, [x8, __PATH_CSMAPPER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x0, _maparea@GOTPAGE
Lloh18:
	ldr	x0, [x0, _maparea@GOTPAGEOFF]
	bl	__citrus_mapper_create_area
	cbz	w0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.2:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	stp	x22, x20, [x29, #-112]          ; 16-byte Folded Spill
Lloh22:
	adrp	x22, _CS_ALIAS@GOTPAGE
Lloh23:
	ldr	x22, [x22, _CS_ALIAS@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh24:
	adrp	x20, __LOOKUP_CASE_IGNORE@GOTPAGE
Lloh25:
	ldr	x20, [x20, __LOOKUP_CASE_IGNORE@GOTPAGEOFF]
	ldr	w4, [x20]
	mov	x1, x26
	mov	x2, x19
	mov	x3, x21
	bl	__lookup_alias
	mov	x26, x0
	ldr	w0, [x22]
	ldr	w4, [x20]
	mov	x1, x27
	mov	x2, x28
	mov	x3, x21
	bl	__lookup_alias
	mov	x27, x0
	mov	x0, x26
	mov	x1, x27
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.4:
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x25
	mov	x1, x21
	mov	x3, x26
	mov	x4, x27
	bl	_snprintf
Lloh28:
	adrp	x22, _maparea@GOTPAGE
Lloh29:
	ldr	x22, [x22, _maparea@GOTPAGEOFF]
	ldr	w0, [x22]
	ldur	x20, [x29, #-112]               ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x25
	bl	__mapper_open
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
	cbz	w0, LBB0_13
; %bb.5:
Lloh30:
	adrp	x8, _ENOENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.6:
Lloh33:
	adrp	x8, __CSMAPPER_F_PREVENT_PIVOT@GOTPAGE
Lloh34:
	ldr	x8, [x8, __CSMAPPER_F_PREVENT_PIVOT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w24
	b.ne	LBB0_1
; %bb.7:
	sub	x4, x29, #96
	mov	x0, x26
	mov	x1, x27
	mov	x2, x23
	mov	x3, x21
	bl	_find_best_pivot
	cbnz	w0, LBB0_1
; %bb.8:
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x23
	mov	x4, x27
	bl	_open_serial_mapper
	cbz	x19, LBB0_1
; %bb.9:
	cbnz	w0, LBB0_1
; %bb.10:
	ldur	x8, [x29, #-96]
	b	LBB0_15
LBB0_11:
Lloh36:
	adrp	x8, _maparea@GOTPAGE
Lloh37:
	ldr	x8, [x8, _maparea@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	bl	_get_none
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
	cbz	x19, LBB0_1
; %bb.12:
	cbz	w0, LBB0_14
	b	LBB0_1
LBB0_13:
	cbz	x19, LBB0_16
LBB0_14:
	mov	x8, #0
LBB0_15:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_1
LBB0_16:
	mov	w0, #0
	b	LBB0_1
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_maparea,4,2                    ; @maparea
	.comm	__PATH_CSMAPPER,4,2             ; @_PATH_CSMAPPER
	.comm	_CS_ALIAS,4,2                   ; @CS_ALIAS
	.comm	__LOOKUP_CASE_IGNORE,4,2        ; @_LOOKUP_CASE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	__CSMAPPER_F_PREVENT_PIVOT,4,2  ; @_CSMAPPER_F_PREVENT_PIVOT
.subsections_via_symbols
