	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_check_configuration ## -- Begin function raspicamcontrol_check_configuration
	.p2align	4, 0x90
_raspicamcontrol_check_configuration:   ## @raspicamcontrol_check_configuration
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_raspicamcontrol_get_mem_gpu
	movl	%eax, %ebx
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	callq	_raspicamcontrol_get_camera
	cmpl	$0, -24(%rbp)
	je	LBB0_1
## %bb.2:
	cmpl	%r14d, %ebx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_vcos_log_error
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, -20(%rbp)
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_vcos_log_error
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Camera is not enabled in this build. Try running \"sudo raspi-config\" and ensure that \"camera\" has been enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"Only %dM of gpu_mem is configured. Try running \"sudo raspi-config\" and ensure that \"memory_split\" has a value of %d or greater\n"

L_.str.2:                               ## @.str.2
	.asciz	"Camera is not detected. Please check carefully the camera module is installed correctly\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to run camera app. Please check for firmware updates\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_check_configuration ; -- Begin function raspicamcontrol_check_configuration
	.p2align	2
_raspicamcontrol_check_configuration:   ; @raspicamcontrol_check_configuration
	.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
	bl	_raspicamcontrol_get_mem_gpu
	mov	x20, x0
	stur	wzr, [x29, #-20]
	str	wzr, [sp, #24]
	sub	x0, x29, #20
	add	x1, sp, #24
	bl	_raspicamcontrol_get_camera
	ldur	w8, [x29, #-20]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w20, w19
	b.ge	LBB0_4
; %bb.2:
	stp	x20, x19, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_vcos_log_error
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Camera is not enabled in this build. Try running \"sudo raspi-config\" and ensure that \"camera\" has been enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"Only %dM of gpu_mem is configured. Try running \"sudo raspi-config\" and ensure that \"memory_split\" has a value of %d or greater\n"

l_.str.2:                               ; @.str.2
	.asciz	"Camera is not detected. Please check carefully the camera module is installed correctly\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to run camera app. Please check for firmware updates\n"

.subsections_via_symbols
