	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_startupImageDecoder            ## -- Begin function startupImageDecoder
	.p2align	4, 0x90
_startupImageDecoder:                   ## @startupImageDecoder
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_OMX_StateIdle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ilclient_change_component_state
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, -88(%rbp)
	movq	_OMX_VERSION@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movq	_OMX_IMAGE_CodingJPEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -84(%rbp)
	movl	4(%rax), %edi
	movq	_OMX_IndexParamImagePortFormat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_OMX_SetParameter
	movl	$24, -64(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rax), %edi
	movq	_OMX_IndexParamPortDefinition@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_OMX_GetParameter
	movq	8(%r14), %rax
	movq	_OMX_CommandPortEnable@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	4(%rax), %edi
	movl	8(%rax), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	movl	-60(%rbp), %edi
	movl	%edi, (%r14)
	callq	_malloc
	movq	%rax, 16(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.1:
	movq	8(%r14), %rcx
	movl	4(%rcx), %edi
	movl	8(%rcx), %edx
	movl	-56(%rbp), %r8d
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_OMX_AllocateBuffer
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.2:
	movl	$8, %r13d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	movq	16(%r14), %rsi
	addq	%r13, %rsi
	movl	4(%rax), %edi
	movl	8(%rax), %edx
	movl	-56(%rbp), %r8d
	movq	%rbx, %rcx
	callq	_OMX_AllocateBuffer
	addq	$8, %r13
	incq	%rbx
	cmpq	(%r12), %rax
	je	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_MEMORY@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_6:
	movq	8(%r14), %rax
	movq	_OMX_EventCmdComplete@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	(%rax), %edi
	movl	8(%rax), %r8d
	movq	_TIMEOUT_MS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMX_StateExecuting@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movl	%eax, %edx
	callq	_fprintf
	movq	_OMXJPEG_ERROR_EXECUTING@GOTPCREL(%rip), %rbx
LBB0_13:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	$0
	callq	_ilclient_wait_for_event
	addq	$16, %rsp
	movq	_OMXJPEG_OK@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_StateIdle,4,2              ## @OMX_StateIdle
	.comm	_OMX_VERSION,8,3                ## @OMX_VERSION
	.comm	_OMX_IMAGE_CodingJPEG,4,2       ## @OMX_IMAGE_CodingJPEG
	.comm	_OMX_IndexParamImagePortFormat,4,2 ## @OMX_IndexParamImagePortFormat
	.comm	_OMX_IndexParamPortDefinition,4,2 ## @OMX_IndexParamPortDefinition
	.comm	_OMX_CommandPortEnable,4,2      ## @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocate decode buffer"

	.comm	_OMXJPEG_ERROR_MEMORY,4,2       ## @OMXJPEG_ERROR_MEMORY
	.comm	_OMX_EventCmdComplete,4,2       ## @OMX_EventCmdComplete
	.comm	_TIMEOUT_MS,4,2                 ## @TIMEOUT_MS
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Did not get port enable %d\n"

	.comm	_OMXJPEG_ERROR_EXECUTING,4,2    ## @OMXJPEG_ERROR_EXECUTING
	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
	.comm	_OMX_StateExecuting,4,2         ## @OMX_StateExecuting
L_.str.2:                               ## @.str.2
	.asciz	"Error starting image decoder %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Did not receive executing stat %d\n"

	.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	_startupImageDecoder            ; -- Begin function startupImageDecoder
	.p2align	2
_startupImageDecoder:                   ; @startupImageDecoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _OMX_StateIdle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMX_StateIdle@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ilclient_change_component_state
	mov	w20, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x21, _OMX_VERSION@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OMX_VERSION@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #40]
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	str	w9, [sp, #32]
Lloh5:
	adrp	x9, _OMX_IMAGE_CodingJPEG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMX_IMAGE_CodingJPEG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w20, w9, [sp, #24]
	ldr	w0, [x8, #4]
Lloh8:
	adrp	x8, _OMX_IndexParamImagePortFormat@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMX_IndexParamImagePortFormat@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_OMX_SetParameter
	ldr	x8, [x21]
	str	x8, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	str	w20, [sp]
	str	w9, [sp, #12]
	ldr	w0, [x8, #4]
Lloh11:
	adrp	x8, _OMX_IndexParamPortDefinition@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMX_IndexParamPortDefinition@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_OMX_GetParameter
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x21, _OMX_CommandPortEnable@GOTPAGE
Lloh15:
	ldr	x21, [x21, _OMX_CommandPortEnable@GOTPAGEOFF]
	ldr	w1, [x21]
	ldp	w0, w2, [x8, #4]
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	w0, [sp, #4]
	str	w0, [x19]
	bl	_malloc
	str	x0, [x19, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldp	w0, w2, [x8, #4]
	ldr	w4, [sp, #8]
	mov	x3, #0
	bl	_OMX_AllocateBuffer
Lloh16:
	adrp	x22, _OMX_ErrorNone@GOTPAGE
Lloh17:
	ldr	x22, [x22, _OMX_ErrorNone@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w23, #8
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19, #8]
	add	x1, x8, x23
	ldp	w0, w2, [x9, #4]
	ldr	w4, [sp, #8]
	mov	x3, x20
	bl	_OMX_AllocateBuffer
	ldr	x8, [x22]
	add	x23, x23, #8
	add	x20, x20, #1
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh20:
	adrp	x8, _OMXJPEG_ERROR_MEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OMXJPEG_ERROR_MEMORY@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh22:
	adrp	x20, _OMX_EventCmdComplete@GOTPAGE
Lloh23:
	ldr	x20, [x20, _OMX_EventCmdComplete@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w4, [x8, #8]
Lloh24:
	adrp	x21, _TIMEOUT_MS@GOTPAGE
Lloh25:
	ldr	x21, [x21, _TIMEOUT_MS@GOTPAGEOFF]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ilclient_wait_for_event
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh31:
	adrp	x8, _OMX_CommandStateSet@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OMX_CommandStateSet@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x22, _OMX_StateExecuting@GOTPAGE
Lloh35:
	ldr	x22, [x22, _OMX_StateExecuting@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, #0
	bl	_OMX_SendCommand
	cbz	w0, LBB0_12
; %bb.9:
	mov	x2, x0
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	bl	_fprintf
Lloh41:
	adrp	x8, _OMXJPEG_ERROR_EXECUTING@GOTPAGE
Lloh42:
	ldr	x8, [x8, _OMXJPEG_ERROR_EXECUTING@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	w7, [x21]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_ilclient_wait_for_event
	cbz	w0, LBB0_14
; %bb.13:
	mov	x2, x0
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_14:
Lloh48:
	adrp	x8, _OMXJPEG_OK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _OMXJPEG_OK@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_StateIdle,4,2              ; @OMX_StateIdle
	.comm	_OMX_VERSION,8,3                ; @OMX_VERSION
	.comm	_OMX_IMAGE_CodingJPEG,4,2       ; @OMX_IMAGE_CodingJPEG
	.comm	_OMX_IndexParamImagePortFormat,4,2 ; @OMX_IndexParamImagePortFormat
	.comm	_OMX_IndexParamPortDefinition,4,2 ; @OMX_IndexParamPortDefinition
	.comm	_OMX_CommandPortEnable,4,2      ; @OMX_CommandPortEnable
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocate decode buffer"

	.comm	_OMXJPEG_ERROR_MEMORY,4,2       ; @OMXJPEG_ERROR_MEMORY
	.comm	_OMX_EventCmdComplete,4,2       ; @OMX_EventCmdComplete
	.comm	_TIMEOUT_MS,4,2                 ; @TIMEOUT_MS
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Did not get port enable %d\n"

	.comm	_OMXJPEG_ERROR_EXECUTING,4,2    ; @OMXJPEG_ERROR_EXECUTING
	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
	.comm	_OMX_StateExecuting,4,2         ; @OMX_StateExecuting
l_.str.2:                               ; @.str.2
	.asciz	"Error starting image decoder %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Did not receive executing stat %d\n"

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