	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_init                    ## -- Begin function s5k83a_init
	.p2align	4, 0x90
_s5k83a_init:                           ## @s5k83a_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_init_s5k83a@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	$1, %ebx
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_m5602_write_sensor
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	je	LBB0_2
	jmp	LBB0_12
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	_dump_sensor@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_s5k83a_dump_registers
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_s5k83a,8,3                ## @init_s5k83a
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dump_sensor,8,3                ## @dump_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_init                    ; -- Begin function s5k83a_init
	.p2align	2
_s5k83a_init:                           ; @s5k83a_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _init_s5k83a@GOTPAGE
Lloh1:
	ldr	x21, [x21, _init_s5k83a@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	d0, [x8, #8]
	str	d0, [sp, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_m5602_write_sensor
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #129
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #130
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w2, [x8, #4]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w9, [x8, #4]
	str	w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	b	LBB0_3
LBB0_10:
	mov	w20, #0
LBB0_11:
Lloh2:
	adrp	x8, _dump_sensor@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dump_sensor@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_s5k83a_dump_registers
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_init_s5k83a,8,3                ; @init_s5k83a
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dump_sensor,8,3                ; @dump_sensor
.subsections_via_symbols
