	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_po1030_init                    ## -- Begin function po1030_init
	.p2align	4, 0x90
_po1030_init:                           ## @po1030_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_init_po1030@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	(%r13), %rax
	movq	-8(%rax,%r12,8), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	testl	%ebx, %ebx
	je	LBB0_2
LBB0_9:
	testl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_22
LBB0_10:
	movq	_dump_sensor@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_po1030_dump_registers
LBB0_12:
	movq	_EXPOSURE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_exposure
	testl	%eax, %eax
	js	LBB0_21
## %bb.13:
	movq	_GAIN_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_gain
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:
	movq	_HFLIP_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_hflip
	testl	%eax, %eax
	js	LBB0_21
## %bb.15:
	movq	_VFLIP_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_vflip
	testl	%eax, %eax
	js	LBB0_21
## %bb.16:
	movq	_RED_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_red_balance
	testl	%eax, %eax
	js	LBB0_21
## %bb.17:
	movq	_BLUE_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_blue_balance
	testl	%eax, %eax
	js	LBB0_21
## %bb.18:
	movq	_GREEN_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_green_balance
	testl	%eax, %eax
	js	LBB0_21
## %bb.19:
	movq	_AUTO_WHITE_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_auto_white_balance
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movq	_AUTO_EXPOSURE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %esi
	movq	%r14, %rdi
	callq	_po1030_set_auto_exposure
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_po1030,8,3                ## @init_po1030
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid stream command, exiting init"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dump_sensor,8,3                ## @dump_sensor
	.comm	_EXPOSURE_IDX,8,3               ## @EXPOSURE_IDX
	.comm	_GAIN_IDX,8,3                   ## @GAIN_IDX
	.comm	_HFLIP_IDX,8,3                  ## @HFLIP_IDX
	.comm	_VFLIP_IDX,8,3                  ## @VFLIP_IDX
	.comm	_RED_BALANCE_IDX,8,3            ## @RED_BALANCE_IDX
	.comm	_BLUE_BALANCE_IDX,8,3           ## @BLUE_BALANCE_IDX
	.comm	_GREEN_BALANCE_IDX,8,3          ## @GREEN_BALANCE_IDX
	.comm	_AUTO_WHITE_BALANCE_IDX,8,3     ## @AUTO_WHITE_BALANCE_IDX
	.comm	_AUTO_EXPOSURE_IDX,8,3          ## @AUTO_EXPOSURE_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_po1030_init                    ; -- Begin function po1030_init
	.p2align	2
_po1030_init:                           ; @po1030_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x22, _init_po1030@GOTPAGE
Lloh1:
	ldr	x22, [x22, _init_po1030@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w9, [x8, #4]
	str	w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #129
	b.ne	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w2, [x8, #4]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_3
LBB0_7:
	tbnz	w20, #31, LBB0_21
LBB0_8:
Lloh2:
	adrp	x8, _dump_sensor@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dump_sensor@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_po1030_dump_registers
LBB0_10:
Lloh5:
	adrp	x8, _EXPOSURE_IDX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXPOSURE_IDX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_exposure
	tbnz	w0, #31, LBB0_19
; %bb.11:
Lloh8:
	adrp	x8, _GAIN_IDX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GAIN_IDX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_gain
	tbnz	w0, #31, LBB0_19
; %bb.12:
Lloh11:
	adrp	x8, _HFLIP_IDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HFLIP_IDX@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_hflip
	tbnz	w0, #31, LBB0_19
; %bb.13:
Lloh14:
	adrp	x8, _VFLIP_IDX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VFLIP_IDX@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_vflip
	tbnz	w0, #31, LBB0_19
; %bb.14:
Lloh17:
	adrp	x8, _RED_BALANCE_IDX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RED_BALANCE_IDX@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_red_balance
	tbnz	w0, #31, LBB0_19
; %bb.15:
Lloh20:
	adrp	x8, _BLUE_BALANCE_IDX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BLUE_BALANCE_IDX@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_blue_balance
	tbnz	w0, #31, LBB0_19
; %bb.16:
Lloh23:
	adrp	x8, _GREEN_BALANCE_IDX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GREEN_BALANCE_IDX@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_green_balance
	tbnz	w0, #31, LBB0_19
; %bb.17:
Lloh26:
	adrp	x8, _AUTO_WHITE_BALANCE_IDX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AUTO_WHITE_BALANCE_IDX@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_auto_white_balance
	tbnz	w0, #31, LBB0_19
; %bb.18:
Lloh29:
	adrp	x8, _AUTO_EXPOSURE_IDX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AUTO_EXPOSURE_IDX@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_po1030_set_auto_exposure
LBB0_19:
	mov	x20, x0
	b	LBB0_21
LBB0_20:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_21:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_init_po1030,8,3                ; @init_po1030
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid stream command, exiting init"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dump_sensor,8,3                ; @dump_sensor
	.comm	_EXPOSURE_IDX,8,3               ; @EXPOSURE_IDX
	.comm	_GAIN_IDX,8,3                   ; @GAIN_IDX
	.comm	_HFLIP_IDX,8,3                  ; @HFLIP_IDX
	.comm	_VFLIP_IDX,8,3                  ; @VFLIP_IDX
	.comm	_RED_BALANCE_IDX,8,3            ; @RED_BALANCE_IDX
	.comm	_BLUE_BALANCE_IDX,8,3           ; @BLUE_BALANCE_IDX
	.comm	_GREEN_BALANCE_IDX,8,3          ; @GREEN_BALANCE_IDX
	.comm	_AUTO_WHITE_BALANCE_IDX,8,3     ; @AUTO_WHITE_BALANCE_IDX
	.comm	_AUTO_EXPOSURE_IDX,8,3          ; @AUTO_EXPOSURE_IDX
.subsections_via_symbols
