	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rcx
	movq	_STATE_DONE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	je	LBB0_2
## %bb.1:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
LBB0_2:
	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
	callq	_wake_up
	jmp	LBB0_28
LBB0_3:
	movq	_OCI2C_STAT_ARBLOST@GOTPCREL(%rip), %rsi
	testl	%r12d, (%rsi)
	je	LBB0_6
## %bb.4:
	movq	%rdx, (%rbx)
LBB0_5:
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_STOP@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oc_setreg
LBB0_28:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	movq	_STATE_START@GOTPCREL(%rip), %rdi
	movq	_STATE_WRITE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdx
	cmpq	(%rdi), %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rdx, %rcx
	je	LBB0_8
## %bb.13:
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rax
	movq	%rsi, %r12
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_oc_getreg
	movq	8(%r15), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movq	%r12, %rsi
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_14
LBB0_8:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	je	LBB0_10
## %bb.9:
	movq	_STATE_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_10:
	movq	%rdx, (%rbx)
	movq	_OCI2C_STAT_NACK@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_14
## %bb.11:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_14:
	movl	8(%rbx), %eax
	cmpl	16(%r15), %eax
	jne	LBB0_15
## %bb.16:
	movq	24(%rbx), %r15
	addq	$24, %r15
	decq	16(%rbx)
	movq	%r15, 24(%rbx)
	movl	$0, 8(%rbx)
	je	LBB0_29
## %bb.17:
	movl	(%r15), %eax
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.19:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_21
## %bb.20:
	movq	_STATE_READ@GOTPCREL(%rip), %rsi
LBB0_21:
	movq	(%rsi), %rcx
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_15:
	movq	(%rbx), %rcx
LBB0_22:
	movq	_STATE_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.23:
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%r15), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_24
## %bb.25:
	movq	_OCI2C_CMD_READ_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_26:
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r15), %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_27
LBB0_29:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_24:
	movq	_OCI2C_CMD_READ_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_18:
	movq	%r15, %rdi
	callq	_i2c_8bit_addr_from_msg
	movq	_STATE_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_oc_setreg
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_START@GOTPCREL(%rip), %rax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x9, [x20]
Lloh0:
	adrp	x23, _STATE_DONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATE_DONE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _STATE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATE_ERROR@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _OCI2C_CMD_IACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OCI2C_CMD_IACK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_oc_setreg
	add	x0, x20, #32
	bl	_wake_up
	b	LBB0_7
LBB0_3:
Lloh10:
	adrp	x11, _OCI2C_STAT_ARBLOST@GOTPAGE
Lloh11:
	ldr	x11, [x11, _OCI2C_STAT_ARBLOST@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w11, w22
	b.eq	LBB0_8
; %bb.4:
	str	x10, [x20]
LBB0_5:
Lloh13:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _OCI2C_CMD_STOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OCI2C_CMD_STOP@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_oc_setreg
LBB0_7:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_8:
Lloh18:
	adrp	x24, _STATE_START@GOTPAGE
Lloh19:
	ldr	x24, [x24, _STATE_START@GOTPAGEOFF]
	ldr	x11, [x24]
Lloh20:
	adrp	x25, _STATE_WRITE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _STATE_WRITE@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_11
; %bb.9:
Lloh22:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldr	w11, [x21]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x12, _STATE_READ@GOTPAGE
Lloh26:
	ldr	x12, [x12, _STATE_READ@GOTPAGEOFF]
Lloh27:
	ldr	x12, [x12]
	tst	w9, w11
	csel	x9, x10, x12, eq
	str	x9, [x20]
Lloh28:
	adrp	x9, _OCI2C_STAT_NACK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _OCI2C_STAT_NACK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_5
LBB0_11:
Lloh31:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_oc_getreg
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20, #8]
	add	w10, w9, #1
	str	w10, [x20, #8]
	str	w0, [x8, x9, lsl #2]
LBB0_12:
	ldr	w8, [x20, #8]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.13:
	ldp	x8, x9, [x20, #16]
	str	wzr, [x20, #8]
	subs	x8, x8, #1
	add	x21, x9, #24
	stp	x8, x21, [x20, #16]
	b.eq	LBB0_20
; %bb.14:
	ldr	w9, [x21]
Lloh34:
	adrp	x8, _I2C_M_NOSTART@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_21
; %bb.15:
	mov	w8, #0
Lloh37:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh38:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
Lloh40:
	adrp	x11, _STATE_READ@GOTPAGE
Lloh41:
	ldr	x11, [x11, _STATE_READ@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x25, x11, eq
	ldr	x9, [x9]
	str	x9, [x20]
	b	LBB0_17
LBB0_16:
	ldr	x9, [x20]
LBB0_17:
Lloh42:
	adrp	x10, _STATE_READ@GOTPAGE
Lloh43:
	ldr	x10, [x10, _STATE_READ@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.18:
Lloh45:
	adrp	x9, _OCI2C_CMD@GOTPAGE
Lloh46:
	ldr	x9, [x9, _OCI2C_CMD@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x9]
	ldr	w9, [x21, #16]
Lloh48:
	adrp	x10, _OCI2C_CMD_READ_NACK@GOTPAGE
Lloh49:
	ldr	x10, [x10, _OCI2C_CMD_READ_NACK@GOTPAGEOFF]
	sub	w9, w9, #1
Lloh50:
	adrp	x11, _OCI2C_CMD_READ_ACK@GOTPAGE
Lloh51:
	ldr	x11, [x11, _OCI2C_CMD_READ_ACK@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_6
LBB0_19:
Lloh52:
	adrp	x9, _OCI2C_DATA@GOTPAGE
Lloh53:
	ldr	x9, [x9, _OCI2C_DATA@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x9]
	ldr	x9, [x21, #8]
	add	w10, w8, #1
	str	w10, [x20, #8]
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x20
	bl	_oc_setreg
Lloh55:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh56:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, _OCI2C_CMD_WRITE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OCI2C_CMD_WRITE@GOTPAGEOFF]
	b	LBB0_6
LBB0_20:
	ldr	x8, [x23]
	str	x8, [x20]
	b	LBB0_5
LBB0_21:
	mov	x0, x21
	bl	_i2c_8bit_addr_from_msg
	mov	x2, x0
	ldr	x8, [x24]
	str	x8, [x20]
Lloh60:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh61:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_oc_setreg
Lloh63:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh64:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _OCI2C_CMD_START@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OCI2C_CMD_START@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.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
