	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_start                   ## -- Begin function s5k83a_start
	.p2align	4, 0x90
_s5k83a_start:                          ## @s5k83a_start
	.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, %r15
	movq	_rotation_thread_function@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rsi
	callq	_kthread_create
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_PTR_ERR
	movq	$0, (%r15)
	jmp	LBB0_12
LBB0_2:
	callq	_wake_up_process
	movq	_start_s5k83a@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	movl	$1, %ebx
	movq	_SENSOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rax
	movdqu	16(%rax), %xmm0
	movdqa	%xmm0, -64(%rbp)
	movq	(%rax), %rcx
	movq	8(%rax), %rsi
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	-64(%rbp), %rdx
	movl	$2, %ecx
	callq	_m5602_write_sensor
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%xmm0, %rdx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	je	LBB0_4
LBB0_9:
	testl	%r13d, %r13d
	js	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_s5k83a_set_led_indication
	movl	%eax, %r13d
LBB0_11:
	movl	%r13d, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rotation_thread_function,4,2   ## @rotation_thread_function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rotation thread"

	.comm	_start_s5k83a,8,3               ## @start_s5k83a
	.comm	_SENSOR,8,3                     ## @SENSOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_start                   ; -- Begin function s5k83a_start
	.p2align	2
_s5k83a_start:                          ; @s5k83a_start
	.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
Lloh0:
	adrp	x8, _rotation_thread_function@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rotation_thread_function@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kthread_create
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_PTR_ERR
	str	xzr, [x19]
	b	LBB0_11
LBB0_2:
	bl	_wake_up_process
Lloh5:
	adrp	x21, _start_s5k83a@GOTPAGE
Lloh6:
	ldr	x21, [x21, _start_s5k83a@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x22, #0
Lloh7:
	adrp	x23, _SENSOR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SENSOR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	fmov	x2, d0
	mov	x0, x19
	bl	_m5602_write_bridge
LBB0_5:                                 ;   in Loop: Header=BB0_6 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_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	q0, [x8, #16]
	str	q0, [sp]
	ldr	x9, [x23]
	ldp	x10, x1, [x8]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, sp
	mov	x0, x19
	mov	w3, #2
	bl	_m5602_write_sensor
	b	LBB0_5
LBB0_8:
	tbnz	w20, #31, LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	bl	_s5k83a_set_led_indication
	mov	x20, x0
LBB0_10:
	mov	x0, x20
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rotation_thread_function,4,2   ; @rotation_thread_function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rotation thread"

	.comm	_start_s5k83a,8,3               ; @start_s5k83a
	.comm	_SENSOR,8,3                     ; @SENSOR
.subsections_via_symbols
