	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_stdenc_open            ## -- Begin function _citrus_stdenc_open
	.p2align	4, 0x90
__citrus_stdenc_open:                   ## @_citrus_stdenc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	__CITRUS_DEFAULT_STDENC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13)
	movups	%xmm0, (%r13)
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	__citrus_load_module
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	-56(%rbp), %rdi
	movq	%rdi, 16(%r13)
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rsi
	callq	__citrus_find_getops
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %rbx
	movl	$64, %edi
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%rax, %rdi
	movl	$64, %esi
	callq	*%rbx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.12:
	cmpq	$0, 56(%rax)
	je	LBB0_6
## %bb.13:
	cmpq	$0, 48(%rax)
	je	LBB0_6
## %bb.14:
	cmpq	$0, 40(%rax)
	je	LBB0_6
## %bb.15:
	cmpq	$0, 32(%rax)
	je	LBB0_6
## %bb.16:
	cmpq	$0, 24(%rax)
	je	LBB0_6
## %bb.17:
	cmpq	$0, 16(%rax)
	je	LBB0_6
## %bb.18:
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.19:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.21:
	movq	%r13, (%r14)
	jmp	LBB0_22
LBB0_1:
	movq	__citrus_stdenc_default@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movq	%r13, %rdi
	callq	__citrus_stdenc_close
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__CITRUS_DEFAULT_STDENC_NAME,4,2 ## @_CITRUS_DEFAULT_STDENC_NAME
	.comm	__citrus_stdenc_default,32,3    ## @_citrus_stdenc_default
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stdenc"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_stdenc_open            ; -- Begin function _citrus_stdenc_open
	.p2align	2
__citrus_stdenc_open:                   ; @_citrus_stdenc_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, __CITRUS_DEFAULT_STDENC_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, __CITRUS_DEFAULT_STDENC_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.1:
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.2:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	add	x0, sp, #8
	mov	x1, x24
	bl	__citrus_load_module
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.3:
	ldr	x0, [sp, #8]
	str	x0, [x19, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x24
	bl	__citrus_find_getops
	cbz	x0, LBB0_19
; %bb.4:
	mov	x23, x0
	mov	w0, #64
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.5:
	mov	w1, #64
	blr	x23
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_19
; %bb.7:
	ldr	x9, [x8, #56]
	cbz	x9, LBB0_19
; %bb.8:
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_19
; %bb.9:
	ldr	x9, [x8, #40]
	cbz	x9, LBB0_19
; %bb.10:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_19
; %bb.11:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_19
; %bb.12:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_19
; %bb.13:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_19
; %bb.14:
	mov	w0, #4
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.15:
	mov	x3, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.16:
	str	x19, [x20]
	b	LBB0_22
LBB0_17:
	mov	w23, #0
Lloh5:
	adrp	x8, __citrus_stdenc_default@GOTPAGE
Lloh6:
	ldr	x8, [x8, __citrus_stdenc_default@GOTPAGEOFF]
	str	x8, [x20]
	b	LBB0_22
LBB0_18:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w23, [x8]
LBB0_21:
	mov	x0, x19
	bl	__citrus_stdenc_close
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__CITRUS_DEFAULT_STDENC_NAME,4,2 ; @_CITRUS_DEFAULT_STDENC_NAME
	.comm	__citrus_stdenc_default,32,3    ; @_citrus_stdenc_default
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stdenc"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
