	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocores_xfer_core
_ocores_xfer_core:                      ## @ocores_xfer_core
	.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	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_OCI2C_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_oc_getreg
	movq	_OCI2C_CTRL_IEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r15d, %r15d
	movl	(%r13), %esi
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	callq	_oc_setreg
	movq	%r12, 24(%rbx)
	movq	$0, 32(%rbx)
	movl	%r14d, (%rbx)
	movq	_STATE_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_i2c_8bit_addr_from_msg
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_oc_setreg
	movq	_OCI2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCI2C_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oc_setreg
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ocores_process_polling
	jmp	LBB0_2
LBB0_3:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movq	_STATE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_STATE_DONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %esi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movq	8(%rbx), %rcx
	movq	_STATE_DONE@GOTPCREL(%rip), %rdx
	movq	_EIO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpq	(%rdx), %rcx
	cmovel	%r14d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_ocores_process_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_OCI2C_CONTROL,4,2              ## @OCI2C_CONTROL
	.comm	_OCI2C_CTRL_IEN,4,2             ## @OCI2C_CTRL_IEN
	.comm	_STATE_START,8,3                ## @STATE_START
	.comm	_OCI2C_DATA,4,2                 ## @OCI2C_DATA
	.comm	_OCI2C_CMD,4,2                  ## @OCI2C_CMD
	.comm	_OCI2C_CMD_START,4,2            ## @OCI2C_CMD_START
	.comm	_STATE_ERROR,8,3                ## @STATE_ERROR
	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ocores_xfer_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocores_xfer_core
_ocores_xfer_core:                      ; @ocores_xfer_core
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _OCI2C_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OCI2C_CONTROL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_oc_getreg
Lloh2:
	adrp	x8, _OCI2C_CTRL_IEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OCI2C_CTRL_IEN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w21, #0
	csel	w2, w9, w8, eq
	mov	x0, x20
	bl	_oc_setreg
	stp	x22, xzr, [x20, #24]
Lloh5:
	adrp	x8, _STATE_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_START@GOTPAGEOFF]
	str	w19, [x20]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #8]
Lloh8:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_i2c_8bit_addr_from_msg
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_oc_setreg
Lloh11:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _OCI2C_CMD_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OCI2C_CMD_START@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_oc_setreg
Lloh17:
	adrp	x22, _STATE_DONE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _STATE_DONE@GOTPAGEOFF]
	cbz	w21, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ocores_process_polling
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
Lloh19:
	adrp	x9, _STATE_ERROR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _STATE_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x9, [x22]
	ccmp	x8, x9, #4, ne
	cset	w1, eq
Lloh22:
	adrp	x8, _HZ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
Lloh25:
	adrp	x10, _EIO@GOTPAGE
Lloh26:
	ldr	x10, [x10, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w0, w19, w10, eq
LBB0_4:
	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
	ret
LBB0_5:
	mov	x0, x20
	bl	_ocores_process_timeout
Lloh28:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_OCI2C_CONTROL,4,2              ; @OCI2C_CONTROL
	.comm	_OCI2C_CTRL_IEN,4,2             ; @OCI2C_CTRL_IEN
	.comm	_STATE_START,8,3                ; @STATE_START
	.comm	_OCI2C_DATA,4,2                 ; @OCI2C_DATA
	.comm	_OCI2C_CMD,4,2                  ; @OCI2C_CMD
	.comm	_OCI2C_CMD_START,4,2            ; @OCI2C_CMD_START
	.comm	_STATE_ERROR,8,3                ; @STATE_ERROR
	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ocores_xfer_core
.subsections_via_symbols
