	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2c_transfer                 ## -- Begin function __i2c_transfer
	.p2align	4, 0x90
___i2c_transfer:                        ## @__i2c_transfer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rsi, %rsi
	sete	%al
	testl	%edx, %edx
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_3:
	movq	%r15, %rdi
	callq	___i2c_check_suspended
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_32:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_i2c_check_for_quirks
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_i2c_trace_msg_key@GOTPCREL(%rip), %rdi
	callq	_static_branch_unlikely
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.8:
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	xorl	%r13d, %r13d
	movq	%r12, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_trace_i2c_read
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	addq	$4, %rbx
	cmpq	%r13, %r14
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_trace_i2c_write
	jmp	LBB0_13
LBB0_14:
	cmpl	$0, (%r15)
	js	LBB0_33
## %bb.15:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_i2c_in_atomic_xfer_mode
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_21
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r15), %rax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rax), %rcx
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	*%rcx
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%r15), %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r13d
	cmpl	(%r15), %r13d
	jl	LBB0_17
LBB0_23:
	movq	_i2c_trace_msg_key@GOTPCREL(%rip), %rdi
	callq	_static_branch_unlikely
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	movl	%ebx, %r13d
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.26:
	xorl	%ebx, %ebx
	movq	_I2C_M_RD@GOTPCREL(%rip), %r14
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rbx
	addq	$4, %r12
	cmpq	%rbx, %r13
	je	LBB0_30
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_trace_i2c_reply
	jmp	LBB0_29
LBB0_33:
	movq	_i2c_trace_msg_key@GOTPCREL(%rip), %rdi
	callq	_static_branch_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_31
	jmp	LBB0_32
LBB0_30:
	movl	%r13d, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_31
LBB0_25:
	movl	%r13d, %ebx
LBB0_31:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_trace_i2c_result
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_i2c_trace_msg_key,4,2          ## @i2c_trace_msg_key
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2c_transfer                 ; -- Begin function __i2c_transfer
	.p2align	2
___i2c_transfer:                        ; @__i2c_transfer
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	x1, #0
	ccmp	w2, #1, #8, ne
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	___i2c_check_suspended
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x22
	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
	ret
LBB0_5:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_i2c_check_for_quirks
	cbz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh4:
	adrp	x0, _i2c_trace_msg_key@GOTPAGE
Lloh5:
	ldr	x0, [x0, _i2c_trace_msg_key@GOTPAGEOFF]
	bl	_static_branch_unlikely
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.9:
	cbz	x0, LBB0_15
; %bb.10:
	mov	x22, #0
Lloh6:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
	mov	x23, x21
	mov	w25, w19
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_trace_i2c_write
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	add	x23, x23, #4
	cmp	x25, x22
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	tst	w9, w8
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_trace_i2c_read
	b	LBB0_12
LBB0_15:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_30
; %bb.16:
Lloh8:
	adrp	x23, _jiffies@GOTPAGE
Lloh9:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	w25, #-1
Lloh10:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	bl	_i2c_in_atomic_xfer_mode
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	cbnz	x9, LBB0_21
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #16]
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x9, [x8, #8]
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	blr	x9
	mov	x22, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x23]
	ldr	x8, [x20, #8]
	add	x1, x8, x24
	bl	_time_after
	cbnz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x20]
	add	w25, w25, #1
	cmp	w25, w8
	b.lt	LBB0_17
LBB0_24:
Lloh12:
	adrp	x0, _i2c_trace_msg_key@GOTPAGE
Lloh13:
	ldr	x0, [x0, _i2c_trace_msg_key@GOTPAGEOFF]
	bl	_static_branch_unlikely
	cbz	x0, LBB0_4
; %bb.25:
	mov	w23, w22
	cmp	w22, #0
	b.le	LBB0_31
; %bb.26:
	mov	x22, #0
Lloh14:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh15:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x22, x22, #1
	add	x21, x21, #4
	cmp	x23, x22
	b.eq	LBB0_31
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_trace_i2c_reply
	b	LBB0_27
LBB0_30:
Lloh16:
	adrp	x0, _i2c_trace_msg_key@GOTPAGE
Lloh17:
	ldr	x0, [x0, _i2c_trace_msg_key@GOTPAGEOFF]
	bl	_static_branch_unlikely
	mov	w22, #0
	cbnz	x0, LBB0_32
	b	LBB0_4
LBB0_31:
	mov	x22, x23
LBB0_32:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_trace_i2c_result
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_i2c_trace_msg_key,4,2          ; @i2c_trace_msg_key
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
