	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocores_xfer
_ocores_xfer:                           ## @ocores_xfer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	callq	_i2c_get_adapdata
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	$0, 32(%rax)
	movl	%r14d, (%rax)
	movq	_STATE_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_OCI2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	4(%r15), %ecx
	setne	%dl
	leal	(%rdx,%rax,2), %edx
	movq	%rbx, %rdi
	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
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movq	_STATE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_STATE_DONE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %esi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	(%r15), %rcx
	cmovel	%r14d, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_START,8,3                ## @STATE_START
	.comm	_OCI2C_DATA,4,2                 ## @OCI2C_DATA
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.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	_EIO,4,2                        ## @EIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ocores_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocores_xfer
_ocores_xfer:                           ; @ocores_xfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	stp	x21, xzr, [x0, #24]
	str	w19, [x0]
Lloh0:
	adrp	x8, _STATE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_START@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #8]
Lloh3:
	adrp	x8, _OCI2C_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCI2C_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w9, [x21]
Lloh6:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w2, ne
	bfi	w2, w8, #1, #31
	bl	_oc_setreg
Lloh9:
	adrp	x8, _OCI2C_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCI2C_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _OCI2C_CMD_START@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OCI2C_CMD_START@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_oc_setreg
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _STATE_ERROR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STATE_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh18:
	adrp	x21, _STATE_DONE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _STATE_DONE@GOTPAGEOFF]
	ldr	x9, [x21]
	ccmp	x8, x9, #4, ne
	cset	w1, eq
Lloh20:
	adrp	x8, _HZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
Lloh23:
	adrp	x10, _EIO@GOTPAGE
Lloh24:
	ldr	x10, [x10, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w0, w19, w10, eq
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_START,8,3                ; @STATE_START
	.comm	_OCI2C_DATA,4,2                 ; @OCI2C_DATA
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.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	_EIO,4,2                        ; @EIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ocores_xfer
.subsections_via_symbols
