	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocores_process
_ocores_process:                        ## @ocores_process
	.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, %rbx
	movq	24(%rdi), %r14
	movq	_OCI2C_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_oc_getreg
	movq	(%rbx), %rdx
	movq	_STATE_DONE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rdx
	je	LBB0_27
## %bb.1:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_2
LBB0_27:
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_IACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oc_setreg
	addq	$32, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_2:
	movq	_OCI2C_STAT_ARBLOST@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.3:
	movq	%rsi, (%rbx)
LBB0_4:
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_STOP@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_oc_setreg                      ## TAILCALL
LBB0_5:
	movq	_STATE_START@GOTPCREL(%rip), %r12
	movq	_STATE_WRITE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	cmpq	(%r12), %rdx
	je	LBB0_7
## %bb.6:
	cmpq	%rsi, %rdx
	je	LBB0_7
## %bb.12:
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_oc_getreg
	movq	8(%r14), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_13
LBB0_7:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r14), %edx
	je	LBB0_9
## %bb.8:
	movq	_STATE_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
LBB0_9:
	movq	%rsi, (%rbx)
	movq	_OCI2C_STAT_NACK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_13
## %bb.10:
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_13:
	movl	8(%rbx), %eax
	cmpl	16(%r14), %eax
	jne	LBB0_14
## %bb.15:
	movq	24(%rbx), %rax
	decq	16(%rbx)
	leaq	24(%rax), %r14
	movq	%r14, 24(%rbx)
	movl	$0, 8(%rbx)
	je	LBB0_28
## %bb.16:
	movl	(%r14), %ecx
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.18:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_20
## %bb.19:
	movq	_STATE_READ@GOTPCREL(%rip), %r13
LBB0_20:
	movq	(%r13), %rcx
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_14:
	movq	(%rbx), %rcx
LBB0_21:
	movq	_STATE_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.22:
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%r14), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_23
## %bb.24:
	movq	_OCI2C_CMD_READ_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_26:
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r14), %rcx
	leal	1(%rax), %edx
	movl	%edx, 8(%rbx)
	cltq
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_oc_setreg
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_28:
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_23:
	movq	_OCI2C_CMD_READ_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_17:
	movl	44(%rax), %eax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	leal	(%rsi,%rax,2), %edx
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_oc_setreg
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_START@GOTPCREL(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_OCI2C_STATUS,4,2               ## @OCI2C_STATUS
	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_STATE_ERROR,8,3                ## @STATE_ERROR
	.comm	_OCI2C_CMD,4,2                  ## @OCI2C_CMD
	.comm	_OCI2C_CMD_IACK,4,2             ## @OCI2C_CMD_IACK
	.comm	_OCI2C_STAT_ARBLOST,4,2         ## @OCI2C_STAT_ARBLOST
	.comm	_OCI2C_CMD_STOP,4,2             ## @OCI2C_CMD_STOP
	.comm	_STATE_START,8,3                ## @STATE_START
	.comm	_STATE_WRITE,8,3                ## @STATE_WRITE
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_STATE_READ,8,3                 ## @STATE_READ
	.comm	_OCI2C_STAT_NACK,4,2            ## @OCI2C_STAT_NACK
	.comm	_OCI2C_DATA,4,2                 ## @OCI2C_DATA
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_OCI2C_CMD_START,4,2            ## @OCI2C_CMD_START
	.comm	_OCI2C_CMD_READ_NACK,4,2        ## @OCI2C_CMD_READ_NACK
	.comm	_OCI2C_CMD_READ_ACK,4,2         ## @OCI2C_CMD_READ_ACK
	.comm	_OCI2C_CMD_WRITE,4,2            ## @OCI2C_CMD_WRITE
	.no_dead_strip	_ocores_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocores_process
_ocores_process:                        ; @ocores_process
	.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	x20, [x0, #24]
Lloh0:
	adrp	x8, _OCI2C_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCI2C_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_oc_getreg
	ldr	x9, [x19]
Lloh3:
	adrp	x21, _STATE_DONE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STATE_DONE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_ERROR@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _OCI2C_CMD_IACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OCI2C_CMD_IACK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_oc_setreg
	add	x0, x19, #32
	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
	b	_wake_up
LBB0_3:
Lloh13:
	adrp	x11, _OCI2C_STAT_ARBLOST@GOTPAGE
Lloh14:
	ldr	x11, [x11, _OCI2C_STAT_ARBLOST@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w11, w0
	b.eq	LBB0_7
; %bb.4:
	str	x10, [x19]
LBB0_5:
Lloh16:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _OCI2C_CMD_STOP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OCI2C_CMD_STOP@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_oc_setreg
LBB0_7:
Lloh21:
	adrp	x22, _STATE_START@GOTPAGE
Lloh22:
	ldr	x22, [x22, _STATE_START@GOTPAGEOFF]
	ldr	x11, [x22]
Lloh23:
	adrp	x23, _STATE_WRITE@GOTPAGE
Lloh24:
	ldr	x23, [x23, _STATE_WRITE@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_10
; %bb.8:
Lloh25:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldr	w11, [x20]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x12, _STATE_READ@GOTPAGE
Lloh29:
	ldr	x12, [x12, _STATE_READ@GOTPAGEOFF]
Lloh30:
	ldr	x12, [x12]
	tst	w9, w11
	csel	x9, x10, x12, eq
	str	x9, [x19]
Lloh31:
	adrp	x9, _OCI2C_STAT_NACK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _OCI2C_STAT_NACK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_5
LBB0_10:
Lloh34:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_oc_getreg
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19, #8]
	add	w10, w9, #1
	str	w10, [x19, #8]
	str	w0, [x8, x9, lsl #2]
LBB0_11:
	ldr	w8, [x19, #8]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.12:
	ldp	x9, x8, [x19, #16]
	str	wzr, [x19, #8]
	subs	x9, x9, #1
	add	x20, x8, #24
	stp	x9, x20, [x19, #16]
	b.eq	LBB0_19
; %bb.13:
	ldr	w9, [x20]
Lloh37:
	adrp	x10, _I2C_M_NOSTART@GOTPAGE
Lloh38:
	ldr	x10, [x10, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.14:
	mov	w8, #0
Lloh40:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh41:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
Lloh43:
	adrp	x11, _STATE_READ@GOTPAGE
Lloh44:
	ldr	x11, [x11, _STATE_READ@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x23, x11, eq
	ldr	x9, [x9]
	str	x9, [x19]
	b	LBB0_16
LBB0_15:
	ldr	x9, [x19]
LBB0_16:
Lloh45:
	adrp	x10, _STATE_READ@GOTPAGE
Lloh46:
	ldr	x10, [x10, _STATE_READ@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.17:
Lloh48:
	adrp	x9, _OCI2C_CMD@GOTPAGE
Lloh49:
	ldr	x9, [x9, _OCI2C_CMD@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x9]
	ldr	w9, [x20, #16]
	sub	w9, w9, #1
Lloh51:
	adrp	x10, _OCI2C_CMD_READ_NACK@GOTPAGE
Lloh52:
	ldr	x10, [x10, _OCI2C_CMD_READ_NACK@GOTPAGEOFF]
Lloh53:
	adrp	x11, _OCI2C_CMD_READ_ACK@GOTPAGE
Lloh54:
	ldr	x11, [x11, _OCI2C_CMD_READ_ACK@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_6
LBB0_18:
Lloh55:
	adrp	x9, _OCI2C_DATA@GOTPAGE
Lloh56:
	ldr	x9, [x9, _OCI2C_DATA@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x9]
	ldr	x9, [x20, #8]
	add	w10, w8, #1
	str	w10, [x19, #8]
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_oc_setreg
Lloh58:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _OCI2C_CMD_WRITE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _OCI2C_CMD_WRITE@GOTPAGEOFF]
	b	LBB0_6
LBB0_19:
	ldr	x8, [x21]
	str	x8, [x19]
	b	LBB0_5
LBB0_20:
	ldr	w8, [x8, #44]
Lloh63:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh64:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w2, ne
	bfi	w2, w8, #1, #31
	ldr	x8, [x22]
	str	x8, [x19]
Lloh66:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_oc_setreg
Lloh69:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh70:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _OCI2C_CMD_START@GOTPAGE
Lloh73:
	ldr	x8, [x8, _OCI2C_CMD_START@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_OCI2C_STATUS,4,2               ; @OCI2C_STATUS
	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_STATE_ERROR,8,3                ; @STATE_ERROR
	.comm	_OCI2C_CMD,4,2                  ; @OCI2C_CMD
	.comm	_OCI2C_CMD_IACK,4,2             ; @OCI2C_CMD_IACK
	.comm	_OCI2C_STAT_ARBLOST,4,2         ; @OCI2C_STAT_ARBLOST
	.comm	_OCI2C_CMD_STOP,4,2             ; @OCI2C_CMD_STOP
	.comm	_STATE_START,8,3                ; @STATE_START
	.comm	_STATE_WRITE,8,3                ; @STATE_WRITE
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_STATE_READ,8,3                 ; @STATE_READ
	.comm	_OCI2C_STAT_NACK,4,2            ; @OCI2C_STAT_NACK
	.comm	_OCI2C_DATA,4,2                 ; @OCI2C_DATA
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_OCI2C_CMD_START,4,2            ; @OCI2C_CMD_START
	.comm	_OCI2C_CMD_READ_NACK,4,2        ; @OCI2C_CMD_READ_NACK
	.comm	_OCI2C_CMD_READ_ACK,4,2         ; @OCI2C_CMD_READ_ACK
	.comm	_OCI2C_CMD_WRITE,4,2            ; @OCI2C_CMD_WRITE
	.no_dead_strip	_ocores_process
.subsections_via_symbols
