	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_codec_l
_create_codec_l:                        ## @create_codec_l
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.1:
	movl	48(%rbx), %esi
	callq	_SDL_AMediaCodecJava_createByCodecName
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	32(%rbx), %rdi
	movl	48(%rbx), %esi
	movl	$1, %edx
	callq	_strncpy
	movq	32(%rbx), %rax
	movq	$0, (%rax)
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_SDL_AMediaCodecDummy_create
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movl	$1, (%rbx)
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$15, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	$1, 4(%rbx)
	movl	48(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_ALOGD
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movl	8(%rbx), %eax
	cmpl	$270, %eax                      ## imm = 0x10E
	je	LBB0_10
## %bb.9:
	cmpl	$90, %eax
	jne	LBB0_11
LBB0_10:
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 28(%rbx)
	addq	$4, %rax
	jmp	LBB0_12
LBB0_11:
	movq	16(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 28(%rbx)
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMX.TI.DUCATI1."

L_.str.1:                               ## @.str.1
	.asciz	"using buffered output for %s"

	.no_dead_strip	_create_codec_l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_codec_l
_create_codec_l:                        ; @create_codec_l
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x1]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x20, #48]
	bl	_SDL_AMediaCodecJava_createByCodecName
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20, #32]
	ldr	w1, [x20, #48]
	mov	w2, #1
	bl	_strncpy
	ldr	x8, [x20, #32]
	str	xzr, [x8]
	b	LBB0_4
LBB0_3:
	bl	_SDL_AMediaCodecDummy_create
	mov	x19, x0
	cbz	x0, LBB0_6
LBB0_4:
	mov	w21, #1
	str	w21, [x20]
	ldr	w0, [x20, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #15
	bl	_strncasecmp
	cbnz	x0, LBB0_6
; %bb.5:
	str	w21, [x20, #4]
	ldr	w1, [x20, #48]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ALOGD
LBB0_6:
	ldr	w8, [x20, #8]
	cmp	w8, #270
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #90
	b.ne	LBB0_9
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	w9, [x8], #4
	b	LBB0_10
LBB0_9:
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #4]
LBB0_10:
	str	w9, [x20, #28]
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMX.TI.DUCATI1."

l_.str.1:                               ; @.str.1
	.asciz	"using buffered output for %s"

	.no_dead_strip	_create_codec_l
.subsections_via_symbols
