	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xo_encoder_init                ## -- Begin function xo_encoder_init
	.p2align	4, 0x90
_xo_encoder_init:                       ## @xo_encoder_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_xo_encoder_setup
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r15
	leaq	1(%rax), %rdi
	callq	_alloca
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movb	$0, (%rbx,%r15)
	subq	%r12, %r13
	leaq	(%rbx,%r13), %r15
	incq	%r15
	movb	$0, (%rbx,%r13)
	movq	%rbx, %r12
LBB0_2:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_xo_failure
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_xo_encoder_find
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_xo_encoder_discover
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xo_set_encoder
	movq	_XO_OP_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_xo_encoder_handle
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	testq	%r15, %r15
	je	LBB0_11
## %bb.12:
	movq	_XO_OP_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xo_encoder_handle              ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder name: %s"

L_.str.1:                               ## @.str.1
	.asciz	"encoder not founde: %s"

	.comm	_XO_OP_CREATE,4,2               ## @XO_OP_CREATE
	.comm	_XO_OP_OPTIONS,4,2              ## @XO_OP_OPTIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xo_encoder_init                ; -- Begin function xo_encoder_init
	.p2align	2
_xo_encoder_init:                       ; @xo_encoder_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_xo_encoder_setup
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	add	x0, x0, #1
	bl	_alloca
	mov	x23, x0
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x23, x22]
	sub	x8, x21, x19
	add	x21, x23, x8
	strb	wzr, [x21], #1
	mov	x19, x23
LBB0_2:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_7
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x20
	mov	x2, x19
	bl	_xo_failure
	mov	w0, #-1
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_xo_encoder_find
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_xo_encoder_discover
	cbz	x0, LBB0_11
LBB0_9:
	ldr	w1, [x0]
	mov	x0, x20
	bl	_xo_set_encoder
Lloh2:
	adrp	x8, _XO_OP_CREATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XO_OP_CREATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	mov	w4, #0
	bl	_xo_encoder_handle
	cmp	w0, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_6
; %bb.10:
Lloh5:
	adrp	x8, _XO_OP_OPTIONS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XO_OP_OPTIONS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	mov	w4, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xo_encoder_handle
LBB0_11:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder name: %s"

l_.str.1:                               ; @.str.1
	.asciz	"encoder not founde: %s"

	.comm	_XO_OP_CREATE,4,2               ; @XO_OP_CREATE
	.comm	_XO_OP_OPTIONS,4,2              ; @XO_OP_OPTIONS
.subsections_via_symbols
