	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmjpeg_init_decoder
_brcmjpeg_init_decoder:                 ## @brcmjpeg_init_decoder
	.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
	movq	_MMAL_COMPONENT_IMAGE_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_wrapper_create
	movq	_INIT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	callq	_CHECK_MMAL_STATUS
	movq	(%rbx), %rax
	movq	%rbx, 16(%rax)
	movq	_brcmjpeg_mmal_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_MMAL_ENCODING_JPEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	16(%rdi), %rax
	movl	%ecx, (%rax)
	callq	_mmal_port_format_commit
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	callq	_CHECK_MMAL_STATUS
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	8(%rdi), %eax
	movl	%eax, 4(%rdi)
	movl	$3, (%rdi)
	xorl	%esi, %esi
	callq	_mmal_wrapper_port_enable
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %edi
	callq	_CHECK_MMAL_STATUS
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_LOG_DEBUG
	movq	_BRCMJPEG_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMJPEG_SUCCESS,4,2           ## @BRCMJPEG_SUCCESS
	.comm	_MMAL_COMPONENT_IMAGE_DECODE,4,2 ## @MMAL_COMPONENT_IMAGE_DECODE
	.comm	_INIT,4,2                       ## @INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create decoder"

	.comm	_brcmjpeg_mmal_cb,4,2           ## @brcmjpeg_mmal_cb
	.comm	_MMAL_ENCODING_JPEG,4,2         ## @MMAL_ENCODING_JPEG
L_.str.1:                               ## @.str.1
	.asciz	"failed to commit input port format"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable input port"

L_.str.3:                               ## @.str.3
	.asciz	"decoder initialised (input chunk size %i)"

	.comm	_BRCMJPEG_ERROR_INIT,4,2        ## @BRCMJPEG_ERROR_INIT
	.no_dead_strip	_brcmjpeg_init_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmjpeg_init_decoder
_brcmjpeg_init_decoder:                 ; @brcmjpeg_init_decoder
	.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
Lloh0:
	adrp	x8, _MMAL_COMPONENT_IMAGE_DECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_IMAGE_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mmal_wrapper_create
Lloh3:
	adrp	x20, _INIT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _INIT@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_CHECK_MMAL_STATUS
	ldr	x8, [x19]
	str	x19, [x8, #16]
Lloh7:
	adrp	x9, _brcmjpeg_mmal_cb@GOTPAGE
Lloh8:
	ldr	x9, [x9, _brcmjpeg_mmal_cb@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _MMAL_ENCODING_JPEG@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MMAL_ENCODING_JPEG@GOTPAGEOFF]
	str	w9, [x8, #8]
Lloh12:
	ldr	w9, [x10]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	x8, [x0, #16]
	str	w9, [x8]
	bl	_mmal_port_format_commit
	ldr	w1, [x20]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_CHECK_MMAL_STATUS
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	w8, [x0, #8]
	mov	w9, #3
	stp	w9, w8, [x0]
	mov	w1, #0
	bl	_mmal_wrapper_port_enable
	ldr	w1, [x20]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_CHECK_MMAL_STATUS
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_DEBUG
Lloh19:
	adrp	x8, _BRCMJPEG_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BRCMJPEG_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMJPEG_SUCCESS,4,2           ; @BRCMJPEG_SUCCESS
	.comm	_MMAL_COMPONENT_IMAGE_DECODE,4,2 ; @MMAL_COMPONENT_IMAGE_DECODE
	.comm	_INIT,4,2                       ; @INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create decoder"

	.comm	_brcmjpeg_mmal_cb,4,2           ; @brcmjpeg_mmal_cb
	.comm	_MMAL_ENCODING_JPEG,4,2         ; @MMAL_ENCODING_JPEG
l_.str.1:                               ; @.str.1
	.asciz	"failed to commit input port format"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable input port"

l_.str.3:                               ; @.str.3
	.asciz	"decoder initialised (input chunk size %i)"

	.comm	_BRCMJPEG_ERROR_INIT,4,2        ; @BRCMJPEG_ERROR_INIT
	.no_dead_strip	_brcmjpeg_init_decoder
.subsections_via_symbols
