	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setupOpenMaxJpegDecoder        ## -- Begin function setupOpenMaxJpegDecoder
	.p2align	4, 0x90
_setupOpenMaxJpegDecoder:               ## @setupOpenMaxJpegDecoder
	.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	%rdi, %rbx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_ilclient_init
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_OMX_Init
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	callq	_prepareImageDecoder
	movq	_OMXJPEG_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_10
## %bb.4:
	movq	(%rbx), %rdi
	callq	_prepareResizer
	cmpl	(%r14), %eax
	jne	LBB0_10
## %bb.5:
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_startupImageDecoder            ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_ILCLIENT_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	(%rdi), %rdi
	callq	_ilclient_destroy
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_OMX_INIT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc decoder"

	.comm	_OMXJPEG_ERROR_MEMORY,4,2       ## @OMXJPEG_ERROR_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"ilclient_init"

	.comm	_OMXJPEG_ERROR_ILCLIENT_INIT,4,2 ## @OMXJPEG_ERROR_ILCLIENT_INIT
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
L_.str.2:                               ## @.str.2
	.asciz	"OMX_Init"

	.comm	_OMXJPEG_ERROR_OMX_INIT,4,2     ## @OMXJPEG_ERROR_OMX_INIT
	.comm	_OMXJPEG_OK,4,2                 ## @OMXJPEG_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setupOpenMaxJpegDecoder        ; -- Begin function setupOpenMaxJpegDecoder
	.p2align	2
_setupOpenMaxJpegDecoder:               ; @setupOpenMaxJpegDecoder
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #8
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.1:
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	bl	_ilclient_init
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_OMX_Init
	mov	x8, x0
Lloh0:
	adrp	x9, _OMX_ErrorNone@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMX_ErrorNone@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x19]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	bl	_prepareImageDecoder
Lloh3:
	adrp	x20, _OMXJPEG_OK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _OMXJPEG_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.4:
	ldr	x0, [x19]
	bl	_prepareResizer
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.5:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_startupImageDecoder
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh7:
	adrp	x8, _OMXJPEG_ERROR_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMXJPEG_ERROR_MEMORY@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
Lloh11:
	adrp	x8, _OMXJPEG_ERROR_ILCLIENT_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMXJPEG_ERROR_ILCLIENT_INIT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x0]
	bl	_ilclient_destroy
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
Lloh15:
	adrp	x8, _OMXJPEG_ERROR_OMX_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OMXJPEG_ERROR_OMX_INIT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc decoder"

	.comm	_OMXJPEG_ERROR_MEMORY,4,2       ; @OMXJPEG_ERROR_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"ilclient_init"

	.comm	_OMXJPEG_ERROR_ILCLIENT_INIT,4,2 ; @OMXJPEG_ERROR_ILCLIENT_INIT
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
l_.str.2:                               ; @.str.2
	.asciz	"OMX_Init"

	.comm	_OMXJPEG_ERROR_OMX_INIT,4,2     ; @OMXJPEG_ERROR_OMX_INIT
	.comm	_OMXJPEG_OK,4,2                 ; @OMXJPEG_OK
.subsections_via_symbols
