	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function riic_xfer
_riic_xfer:                             ## @riic_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_i2c_get_adapdata
	movq	%rax, %r14
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_pm_runtime_get_sync
	movq	_RIIC_ICCR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readb
	movq	_ICCR2_BBSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r12)
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_pm_runtime_put
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_reinit_completion
	movl	$0, (%r12)
	movq	_RIIC_ICSR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	xorl	%edi, %edi
	callq	_writeb
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	decl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_ICCR2_ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_RIIC_INIT_MSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r12)
	movl	(%r13), %ecx
	movl	%ecx, 32(%r12)
	movq	%r13, 24(%r12)
	sete	%al
	movl	%eax, 4(%r12)
	movq	_ICIER_NAKIE@GOTPCREL(%rip), %rax
	movq	_ICIER_TIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_writeb
	movq	_RIIC_ICCR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	%ebx, %edi
	callq	_writeb
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_14
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	%eax, (%r12)
	testl	%eax, %eax
	jne	LBB0_14
LBB0_7:
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$-2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	decq	-56(%rbp)                       ## 8-byte Folded Spill
	addq	$4, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ICCR2_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RIIC_INIT_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movl	(%r13), %eax
	movl	%eax, 32(%r12)
	movq	%r13, 24(%r12)
	xorl	%eax, %eax
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	sete	%al
	movl	%eax, 4(%r12)
	movq	_ICIER_TIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ICIER_NAKIE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_writeb
	movq	_RIIC_ICCR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	%ebx, %edi
	callq	_writeb
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, (%r12)
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%r15), %rax
	addq	$4, %r13
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	movq	%rax, %r15
	jne	LBB0_9
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_RIIC_ICCR2,8,3                 ## @RIIC_ICCR2
	.comm	_ICCR2_BBSY,4,2                 ## @ICCR2_BBSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RIIC_ICSR2,8,3                 ## @RIIC_ICSR2
	.comm	_ICCR2_ST,4,2                   ## @ICCR2_ST
	.comm	_RIIC_INIT_MSG,4,2              ## @RIIC_INIT_MSG
	.comm	_ICIER_NAKIE,4,2                ## @ICIER_NAKIE
	.comm	_ICIER_TIE,4,2                  ## @ICIER_TIE
	.comm	_RIIC_ICIER,8,3                 ## @RIIC_ICIER
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ICCR2_RS,4,2                   ## @ICCR2_RS
	.no_dead_strip	_riic_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function riic_xfer
_riic_xfer:                             ; @riic_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	bl	_i2c_get_adapdata
	mov	x21, x0
	ldr	w0, [x20]
	bl	_pm_runtime_get_sync
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x25, _RIIC_ICCR2@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RIIC_ICCR2@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readb
Lloh2:
	adrp	x8, _ICCR2_BBSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICCR2_BBSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
LBB0_2:
	ldr	w0, [x20]
	bl	_pm_runtime_put
	ldr	w8, [x21]
	cmp	w8, #0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	add	x22, x21, #12
	mov	x0, x22
	bl	_reinit_completion
	str	wzr, [x21]
	ldr	x8, [x21, #16]
Lloh8:
	adrp	x9, _RIIC_ICSR2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RIIC_ICSR2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	subs	w19, w19, #1
	b.lt	LBB0_2
; %bb.4:
Lloh11:
	adrp	x8, _ICCR2_ST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICCR2_ST@GOTPAGEOFF]
Lloh13:
	ldr	w26, [x8]
Lloh14:
	adrp	x8, _RIIC_INIT_MSG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RIIC_INIT_MSG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x23]
	stp	w9, w8, [x21, #32]
	str	x23, [x21, #24]
	cmp	w19, #0
	cset	w8, eq
	str	w8, [x21, #4]
Lloh17:
	adrp	x8, _ICIER_NAKIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICIER_NAKIE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ICIER_TIE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ICIER_TIE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x21, #16]
Lloh23:
	adrp	x24, _RIIC_ICIER@GOTPAGE
Lloh24:
	ldr	x24, [x24, _RIIC_ICIER@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x21, #16]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x26
	bl	_writeb
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
	b	LBB0_2
LBB0_6:
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
	cbnz	w8, LBB0_2
LBB0_7:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.eq	LBB0_2
; %bb.8:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w8, w8
	sub	x8, x8, #2
	sub	x19, x19, #1
	add	x26, x23, #4
Lloh28:
	adrp	x27, _ICCR2_RS@GOTPAGE
Lloh29:
	ldr	x27, [x27, _ICCR2_RS@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	w23, [x27]
Lloh30:
	adrp	x8, _RIIC_INIT_MSG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RIIC_INIT_MSG@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x26]
	stp	w9, w8, [x21, #32]
	str	x26, [x21, #24]
	cmp	x19, #0
Lloh33:
	adrp	x8, _ICIER_NAKIE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ICIER_NAKIE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _ICIER_TIE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ICIER_TIE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x21, #16]
	ldr	x9, [x24]
	add	x1, x9, x8
	cset	w8, eq
	str	w8, [x21, #4]
	bl	_writeb
	ldr	x8, [x21, #16]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writeb
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_12
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh39:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
	cbnz	w8, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	x8, x28, #1
	sub	x19, x19, #1
	add	x26, x26, #4
	cbnz	x28, LBB0_9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_RIIC_ICCR2,8,3                 ; @RIIC_ICCR2
	.comm	_ICCR2_BBSY,4,2                 ; @ICCR2_BBSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RIIC_ICSR2,8,3                 ; @RIIC_ICSR2
	.comm	_ICCR2_ST,4,2                   ; @ICCR2_ST
	.comm	_RIIC_INIT_MSG,4,2              ; @RIIC_INIT_MSG
	.comm	_ICIER_NAKIE,4,2                ; @ICIER_NAKIE
	.comm	_ICIER_TIE,4,2                  ; @ICIER_TIE
	.comm	_RIIC_ICIER,8,3                 ; @RIIC_ICIER
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ICCR2_RS,4,2                   ; @ICCR2_RS
	.no_dead_strip	_riic_xfer
.subsections_via_symbols
