	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_bcm_host_init
	movq	_sem@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_encoder@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mmal_wrapper_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_mmalCallback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_MMAL_ENCODING_PNG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_mmal_encode_test
	movq	_MMAL_ENCODING_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_mmal_encode_test
	movq	_MMAL_ENCODING_GIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_mmal_encode_test
	movq	_MMAL_ENCODING_BMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_mmal_encode_test
	movq	(%rbx), %rdi
	callq	_mmal_wrapper_destroy
	movq	_sem@GOTPCREL(%rip), %rdi
	callq	_vcos_semaphore_delete
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_sem,4,2                        ## @sem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoder sem"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create semaphore\n"

	.comm	_encoder,8,3                    ## @encoder
	.comm	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER,4,2 ## @MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create mmal component\n"

	.comm	_mmalCallback,4,2               ## @mmalCallback
	.comm	_MMAL_ENCODING_PNG,4,2          ## @MMAL_ENCODING_PNG
L_.str.3:                               ## @.str.3
	.asciz	"out.png"

	.comm	_MMAL_ENCODING_JPEG,4,2         ## @MMAL_ENCODING_JPEG
L_.str.4:                               ## @.str.4
	.asciz	"out.jpg"

	.comm	_MMAL_ENCODING_GIF,4,2          ## @MMAL_ENCODING_GIF
L_.str.5:                               ## @.str.5
	.asciz	"out.gif"

	.comm	_MMAL_ENCODING_BMP,4,2          ## @MMAL_ENCODING_BMP
L_.str.6:                               ## @.str.6
	.asciz	"out.bmp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	bl	_bcm_host_init
Lloh0:
	adrp	x0, _sem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sem@GOTPAGEOFF]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_vcos_semaphore_create
Lloh4:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x19, _encoder@GOTPAGE
Lloh11:
	ldr	x19, [x19, _encoder@GOTPAGEOFF]
	mov	x0, x19
	bl	_mmal_wrapper_create
Lloh12:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _mmalCallback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mmalCallback@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
Lloh18:
	adrp	x8, _MMAL_ENCODING_PNG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMAL_ENCODING_PNG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_mmal_encode_test
Lloh23:
	adrp	x8, _MMAL_ENCODING_JPEG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMAL_ENCODING_JPEG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_mmal_encode_test
Lloh28:
	adrp	x8, _MMAL_ENCODING_GIF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMAL_ENCODING_GIF@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_mmal_encode_test
Lloh33:
	adrp	x8, _MMAL_ENCODING_BMP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MMAL_ENCODING_BMP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_mmal_encode_test
	ldr	x0, [x19]
	bl	_mmal_wrapper_destroy
Lloh38:
	adrp	x0, _sem@GOTPAGE
Lloh39:
	ldr	x0, [x0, _sem@GOTPAGEOFF]
	bl	_vcos_semaphore_delete
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.2@PAGE
Lloh49:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_sem,4,2                        ; @sem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoder sem"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create semaphore\n"

	.comm	_encoder,8,3                    ; @encoder
	.comm	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER,4,2 ; @MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create mmal component\n"

	.comm	_mmalCallback,4,2               ; @mmalCallback
	.comm	_MMAL_ENCODING_PNG,4,2          ; @MMAL_ENCODING_PNG
l_.str.3:                               ; @.str.3
	.asciz	"out.png"

	.comm	_MMAL_ENCODING_JPEG,4,2         ; @MMAL_ENCODING_JPEG
l_.str.4:                               ; @.str.4
	.asciz	"out.jpg"

	.comm	_MMAL_ENCODING_GIF,4,2          ; @MMAL_ENCODING_GIF
l_.str.5:                               ; @.str.5
	.asciz	"out.gif"

	.comm	_MMAL_ENCODING_BMP,4,2          ; @MMAL_ENCODING_BMP
l_.str.6:                               ; @.str.6
	.asciz	"out.bmp"

.subsections_via_symbols
