	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepareResizer                 ## -- Begin function prepareResizer
	.p2align	4, 0x90
_prepareResizer:                        ## @prepareResizer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	16(%rbx), %edi
	movq	_ILCLIENT_DISABLE_ALL_PORTS@GOTPCREL(%rip), %rdx
	movq	_ILCLIENT_ENABLE_INPUT_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	addq	$16, %rax
	movq	_ILCLIENT_ENABLE_OUTPUT_BUFFERS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rsi
	callq	_ilclient_create_component
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movl	16(%rax), %edi
	callq	_ILC_GET_HANDLE
	movq	8(%rbx), %rcx
	movl	%eax, 20(%rcx)
	movl	$24, -32(%rbp)
	movq	_OMX_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	16(%rcx), %edi
	callq	_ILC_GET_HANDLE
	movq	_OMX_IndexParamImageInit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	callq	_OMX_GetParameter
	cmpl	$2, -28(%rbp)
	jne	LBB0_5
## %bb.6:
	movq	-24(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	incq	%rax
	movq	%rax, (%rcx)
	movq	$0, (%rbx)
	movq	_OMXJPEG_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_OMXJPEG_ERROR_WRONG_NO_PORTS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movq	_OMXJPEG_ERROR_CREATING_COMP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc image resizer"

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

	.comm	_ILCLIENT_DISABLE_ALL_PORTS,4,2 ## @ILCLIENT_DISABLE_ALL_PORTS
	.comm	_ILCLIENT_ENABLE_INPUT_BUFFERS,4,2 ## @ILCLIENT_ENABLE_INPUT_BUFFERS
	.comm	_ILCLIENT_ENABLE_OUTPUT_BUFFERS,4,2 ## @ILCLIENT_ENABLE_OUTPUT_BUFFERS
L_.str.2:                               ## @.str.2
	.asciz	"image resizer"

	.comm	_OMXJPEG_ERROR_CREATING_COMP,4,2 ## @OMXJPEG_ERROR_CREATING_COMP
	.comm	_OMX_VERSION,4,2                ## @OMX_VERSION
	.comm	_OMX_IndexParamImageInit,4,2    ## @OMX_IndexParamImageInit
	.comm	_OMXJPEG_ERROR_WRONG_NO_PORTS,4,2 ## @OMXJPEG_ERROR_WRONG_NO_PORTS
	.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	_prepareResizer                 ; -- Begin function prepareResizer
	.p2align	2
_prepareResizer:                        ; @prepareResizer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	mov	w0, #4
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19, #16]
	add	x1, x0, #16
Lloh0:
	adrp	x9, _ILCLIENT_DISABLE_ALL_PORTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ILCLIENT_DISABLE_ALL_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ILCLIENT_ENABLE_INPUT_BUFFERS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ILCLIENT_ENABLE_INPUT_BUFFERS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _ILCLIENT_ENABLE_OUTPUT_BUFFERS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ILCLIENT_ENABLE_OUTPUT_BUFFERS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w3, w9, w10
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_ilclient_create_component
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #16]
	bl	_ILC_GET_HANDLE
	ldr	x8, [x19, #8]
	str	w0, [x8, #20]
	mov	w9, #24
Lloh11:
	adrp	x10, _OMX_VERSION@GOTPAGE
Lloh12:
	ldr	x10, [x10, _OMX_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	str	w9, [sp, #8]
	str	w10, [sp, #24]
	ldr	w0, [x8, #16]
	bl	_ILC_GET_HANDLE
Lloh14:
	adrp	x8, _OMX_IndexParamImageInit@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMX_IndexParamImageInit@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_OMX_GetParameter
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #8]
	add	x10, x8, #1
	stp	x10, x8, [x9]
	str	xzr, [x19]
Lloh17:
	adrp	x8, _OMXJPEG_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMXJPEG_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _OMXJPEG_ERROR_WRONG_NO_PORTS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OMXJPEG_ERROR_WRONG_NO_PORTS@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh23:
	adrp	x8, _OMXJPEG_ERROR_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OMXJPEG_ERROR_MEMORY@GOTPAGEOFF]
	b	LBB0_5
LBB0_7:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
Lloh27:
	adrp	x8, _OMXJPEG_ERROR_CREATING_COMP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OMXJPEG_ERROR_CREATING_COMP@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc image resizer"

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

	.comm	_ILCLIENT_DISABLE_ALL_PORTS,4,2 ; @ILCLIENT_DISABLE_ALL_PORTS
	.comm	_ILCLIENT_ENABLE_INPUT_BUFFERS,4,2 ; @ILCLIENT_ENABLE_INPUT_BUFFERS
	.comm	_ILCLIENT_ENABLE_OUTPUT_BUFFERS,4,2 ; @ILCLIENT_ENABLE_OUTPUT_BUFFERS
l_.str.2:                               ; @.str.2
	.asciz	"image resizer"

	.comm	_OMXJPEG_ERROR_CREATING_COMP,4,2 ; @OMXJPEG_ERROR_CREATING_COMP
	.comm	_OMX_VERSION,4,2                ; @OMX_VERSION
	.comm	_OMX_IndexParamImageInit,4,2    ; @OMX_IndexParamImageInit
	.comm	_OMXJPEG_ERROR_WRONG_NO_PORTS,4,2 ; @OMXJPEG_ERROR_WRONG_NO_PORTS
	.comm	_OMXJPEG_OK,4,2                 ; @OMXJPEG_OK
.subsections_via_symbols
