	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_sensor_defaults            ## -- Begin function get_sensor_defaults
	.p2align	4, 0x90
_get_sensor_defaults:                   ## @get_sensor_defaults
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	_MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strncpy
	movq	_MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_mmal_component_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.1:
	movq	_MMAL_PARAMETER_CAMERA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-56(%rbp), %rsi
	movl	%eax, -52(%rbp)
	movl	$20, -56(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_mmal_port_parameter_get
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.2:
	movl	$24, -56(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_mmal_port_parameter_get
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.3:
	cmpl	%r12d, -72(%rbp)
	jle	LBB0_9
## %bb.4:
	cmpl	$0, (%r15)
	movslq	%r12d, %rax
	jne	LBB0_6
## %bb.5:
	movq	-64(%rbp), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movl	(%rcx,%rdx), %ecx
	movl	%ecx, (%r15)
LBB0_6:
	cmpl	$0, (%r14)
	movq	-64(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	movq	%rax, %rdx
	shlq	$4, %rdx
	movl	4(%rcx,%rdx), %edx
	movl	%edx, (%r14)
LBB0_8:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rsi
	movq	_MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_strncpy
	movslq	(%r12), %rax
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	callq	_vcos_log_error
	cmpl	$0, (%r15)
	jne	LBB0_14
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_vcos_log_error
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_mmal_component_destroy
	cmpl	$0, (%r15)
	jne	LBB0_14
LBB0_13:
	movl	$2592, (%r15)                   ## imm = 0xA20
LBB0_14:
	cmpl	$0, (%r14)
	jne	LBB0_16
## %bb.15:
	movl	$1944, (%r14)                   ## imm = 0x798
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OV5647"

	.comm	_MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN,4,2 ## @MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN
	.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
L_.str.1:                               ## @.str.1
	.asciz	"Cannot read camera info, keeping the defaults for OV5647"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create camera_info component"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_sensor_defaults            ; -- Begin function get_sensor_defaults
	.p2align	2
_get_sensor_defaults:                   ; @get_sensor_defaults
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strncpy
Lloh4:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CAMERA_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_mmal_component_create
Lloh7:
	adrp	x25, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _MMAL_PARAMETER_CAMERA_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMAL_PARAMETER_CAMERA_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x9, sp
	add	x23, x9, #16
	mov	w9, #20
	stp	w9, w8, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_mmal_port_parameter_get
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.2:
	mov	w8, #24
	str	w8, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_mmal_port_parameter_get
	ldr	x8, [x25]
	ldr	w9, [sp]
	cmp	x0, x8
	ccmp	w9, w22, #4, eq
	b.gt	LBB0_5
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_error
	b	LBB0_10
LBB0_4:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_log_error
	ldr	w8, [x20]
	cbnz	w8, LBB0_12
	b	LBB0_11
LBB0_5:
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x8, [sp, #8]
	mov	x9, x22
	sbfiz	x9, x9, #4, #32
	ldr	w8, [x8, x9]
	str	w8, [x20]
LBB0_7:
	ldr	w10, [x19]
	ldr	x8, [sp, #8]
	sxtw	x9, w22
	cbnz	w10, LBB0_9
; %bb.8:
	add	x10, x8, x9, lsl #4
	ldr	w10, [x10, #4]
	str	w10, [x19]
LBB0_9:
	add	x8, x8, x9, lsl #4
	ldr	x1, [x8, #8]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_strncpy
	ldrsw	x8, [x24]
	add	x8, x8, x21
	sturb	wzr, [x8, #-1]
LBB0_10:
	ldr	x0, [sp, #24]
	bl	_mmal_component_destroy
	ldr	w8, [x20]
	cbnz	w8, LBB0_12
LBB0_11:
	mov	w8, #2592
	str	w8, [x20]
LBB0_12:
	ldr	w8, [x19]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	w8, #1944
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OV5647"

	.comm	_MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN,4,2 ; @MMAL_PARAMETER_CAMERA_INFO_MAX_STR_LEN
	.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
l_.str.1:                               ; @.str.1
	.asciz	"Cannot read camera info, keeping the defaults for OV5647"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create camera_info component"

.subsections_via_symbols
