	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_sensor_init
_qcm_sensor_init:                       ## @qcm_sensor_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movq	_regval_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r12), %edi
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	20(%r12), %r14d
	movq	_ISOC_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%r14d, %edi
	movl	$5569, %esi                     ## imm = 0x15C1
	movl	%eax, %edx
	callq	_qcm_stv_setw
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	20(%r12), %edi
	movl	$5571, %esi                     ## imm = 0x15C3
	movl	$8, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	20(%r12), %edi
	movl	$5183, %esi                     ## imm = 0x143F
	movl	$1, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	20(%r12), %edi
	movq	_STV_ISO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movq	_camera_sizes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_qcm_sensor_setsize
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	16(%r12), %esi
	movl	12(%r12), %edx
	movl	4(%r12), %r8d
	movl	8(%r12), %ecx
	movq	%r12, %rdi
	callq	_qcm_sensor_setlevels
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_qcm_sensor_set_shutter
	movl	%eax, %esi
	callq	_CHECK_RET
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_qcm_sensor_setsize
	movl	%eax, %esi
	callq	_CHECK_RET
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regval_table,8,3               ## @regval_table
	.comm	_ISOC_PACKET_SIZE,4,2           ## @ISOC_PACKET_SIZE
	.comm	_STV_ISO_ENABLE,4,2             ## @STV_ISO_ENABLE
	.comm	_camera_sizes,8,3               ## @camera_sizes
	.no_dead_strip	_qcm_sensor_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_sensor_init
_qcm_sensor_init:                       ; @qcm_sensor_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x20, _regval_table@GOTPAGE
Lloh1:
	ldr	x20, [x20, _regval_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #20]
	ldr	x8, [x20]
	add	x8, x8, x22
	ldp	w1, w2, [x8]
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	add	x23, x23, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	w20, [x19, #20]
Lloh2:
	adrp	x8, _ISOC_PACKET_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISOC_PACKET_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	x2, x0
	mov	x0, x20
	mov	w1, #5569
	bl	_qcm_stv_setw
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19, #20]
	mov	w1, #5571
	mov	w2, #8
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19, #20]
	mov	w1, #5183
	mov	w2, #1
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19, #20]
Lloh5:
	adrp	x8, _STV_ISO_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STV_ISO_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
Lloh8:
	adrp	x20, _camera_sizes@GOTPAGE
Lloh9:
	ldr	x20, [x20, _camera_sizes@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_qcm_sensor_setsize
	mov	x1, x0
	bl	_CHECK_RET
	ldp	w2, w1, [x19, #12]
	ldp	w4, w3, [x19, #4]
	mov	x0, x19
	bl	_qcm_sensor_setlevels
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w1, [x19]
	mov	x0, x19
	bl	_qcm_sensor_set_shutter
	mov	x1, x0
	bl	_CHECK_RET
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_qcm_sensor_setsize
	mov	x1, x0
	bl	_CHECK_RET
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_regval_table,8,3               ; @regval_table
	.comm	_ISOC_PACKET_SIZE,4,2           ; @ISOC_PACKET_SIZE
	.comm	_STV_ISO_ENABLE,4,2             ; @STV_ISO_ENABLE
	.comm	_camera_sizes,8,3               ; @camera_sizes
	.no_dead_strip	_qcm_sensor_init
.subsections_via_symbols
