	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2c_smbus_xfer               ## -- Begin function __i2c_smbus_xfer
	.p2align	4, 0x90
___i2c_smbus_xfer:                      ## @__i2c_smbus_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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	___i2c_check_suspended
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movzwl	%bx, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movsbl	-44(%rbp), %ebx                 ## 1-byte Folded Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r12d, %r14d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_trace_smbus_write
	movq	%r13, %rdi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_trace_smbus_read
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	orw	(%rax), %bx
	movq	_I2C_CLIENT_SCCB@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	andl	%r15d, %ebx
	movq	8(%r13), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_i2c_in_atomic_xfer_mode
	movzwl	%bx, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%r13), %rax
	movq	8(%rax), %r15
	testq	%r15, %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_6
## %bb.3:
	cmpq	$0, 24(%rax)
	jne	LBB0_15
## %bb.4:
	movq	%r14, %r15
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_15
LBB0_5:
	movq	%r14, %r15
	testq	%r14, %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_15
LBB0_6:
	cmpl	$0, (%r13)
	js	LBB0_7
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	*%r15
	movl	%eax, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%r12d
	cmpl	(%r13), %r12d
	jl	LBB0_10
	jmp	LBB0_12
LBB0_7:
	xorl	%r14d, %r14d
LBB0_12:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_13
## %bb.14:
	movq	8(%r13), %rax
	cmpl	$0, 16(%rax)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_16
LBB0_15:
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	%ecx, %r15d
	movl	%ecx, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_i2c_smbus_xfer_emulated
	movl	%r15d, %ecx
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_13:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_16:
	movl	%r14d, 8(%rsp)
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	%ecx, %esi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %r9d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_trace_smbus_reply
	movl	%r14d, (%rsp)
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_trace_smbus_result
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_TEN,2,1                  ## @I2C_M_TEN
	.comm	_I2C_CLIENT_PEC,2,1             ## @I2C_CLIENT_PEC
	.comm	_I2C_CLIENT_SCCB,2,1            ## @I2C_CLIENT_SCCB
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i2c_smbus_xfer               ; -- Begin function __i2c_smbus_xfer
	.p2align	2
___i2c_smbus_xfer:                      ; @__i2c_smbus_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	x28, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x24, x0
	bl	___i2c_check_suspended
	mov	x26, x0
	cbnz	w0, LBB0_16
; %bb.1:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x28
	bl	_trace_smbus_write
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_trace_smbus_read
Lloh0:
	adrp	x8, _I2C_M_TEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_TEN@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh2:
	adrp	x9, _I2C_CLIENT_PEC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_CLIENT_PEC@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh4:
	adrp	x10, _I2C_CLIENT_SCCB@GOTPAGE
Lloh5:
	ldr	x10, [x10, _I2C_CLIENT_SCCB@GOTPAGEOFF]
	orr	w8, w9, w8
	ldrh	w9, [x10]
	orr	w8, w8, w9
	and	w8, w8, w25
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x24, #8]
	ldr	x23, [x8]
	bl	_i2c_in_atomic_xfer_mode
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x24, #8]
	ldr	x27, [x8, #8]
	cbnz	x27, LBB0_5
; %bb.3:
	ldr	x8, [x8, #24]
	cmp	x8, #0
	ccmp	x23, #0, #4, eq
	mov	x27, x23
	b.ne	LBB0_5
	b	LBB0_13
LBB0_4:
	mov	x27, x23
	cbz	x23, LBB0_13
LBB0_5:
	mov	x25, x28
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x28, [x8]
	mov	w23, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	blr	x27
	mov	x26, x0
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	ldr	x8, [x24, #16]
	add	x1, x8, x28
	bl	_time_after
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	add	w23, w23, #1
	cmp	w23, w8
	b.lt	LBB0_7
	b	LBB0_11
LBB0_10:
	mov	w26, #0
LBB0_11:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w26, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x24, #8]
	ldr	w8, [x8, #16]
	mov	x28, x25
	cbz	w8, LBB0_15
LBB0_13:
	mov	x0, x24
	mov	x1, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x28
	bl	_i2c_smbus_xfer_emulated
	mov	x26, x0
	b	LBB0_15
LBB0_14:
	mov	x28, x25
LBB0_15:
	mov	x0, x24
	mov	x1, x22
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x28
	mov	x7, x26
	bl	_trace_smbus_reply
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x26
	bl	_trace_smbus_result
LBB0_16:
	mov	x0, x26
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_TEN,2,1                  ; @I2C_M_TEN
	.comm	_I2C_CLIENT_PEC,2,1             ; @I2C_CLIENT_PEC
	.comm	_I2C_CLIENT_SCCB,2,1            ; @I2C_CLIENT_SCCB
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
