	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_camera_model
_check_camera_model:                    ## @check_camera_model
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_mmal_component_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_MMAL_PARAMETER_CAMERA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-40(%rbp), %r14
	movl	%eax, -36(%rbp)
	movl	$20, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_get
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.2:
	movl	$24, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_get
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.3:
	cmpl	%r15d, -56(%rbp)
	jle	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_6:
	movq	-32(%rbp), %rdi
	callq	_mmal_component_destroy
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA_INFO,4,2 ## @MMAL_COMPONENT_DEFAULT_CAMERA_INFO
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_PARAMETER_CAMERA_INFO,4,2 ## @MMAL_PARAMETER_CAMERA_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toshh2c"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"The driver for the TC358743 HDMI to CSI2 chip you are using is NOT supported.\n"

L_.str.2:                               ## @.str.2
	.asciz	"They were written for a demo purposes only, and are in the firmware on an as-is\n"

L_.str.3:                               ## @.str.3
	.asciz	"basis and therefore requests for support or changes will not be acted on.\n\n"

	.no_dead_strip	_check_camera_model
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_camera_model
_check_camera_model:                    ; @check_camera_model
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_mmal_component_create
Lloh3:
	adrp	x21, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _MMAL_PARAMETER_CAMERA_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_CAMERA_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x9, sp
	add	x20, x9, #16
	mov	w9, #20
	stp	w9, w8, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_port_parameter_get
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #24
	str	w8, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_port_parameter_get
	ldr	x8, [x21]
	ldr	w9, [sp]
	cmp	x0, x8
	ccmp	w9, w19, #4, eq
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, w19, sxtw #2]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbnz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x19, _stderr@GOTPAGE
Lloh11:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_mmal_component_destroy
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA_INFO,4,2 ; @MMAL_COMPONENT_DEFAULT_CAMERA_INFO
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_PARAMETER_CAMERA_INFO,4,2 ; @MMAL_PARAMETER_CAMERA_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toshh2c"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"The driver for the TC358743 HDMI to CSI2 chip you are using is NOT supported.\n"

l_.str.2:                               ; @.str.2
	.asciz	"They were written for a demo purposes only, and are in the firmware on an as-is\n"

l_.str.3:                               ; @.str.3
	.asciz	"basis and therefore requests for support or changes will not be acted on.\n\n"

	.no_dead_strip	_check_camera_model
.subsections_via_symbols
