	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %r15d
	orw	(%rax), %r15w
	andl	%edx, %r15d
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	js	LBB0_2
## %bb.3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	movzwl	%r15w, %r13d
	movsbl	%r14b, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	*(%rax)
	movl	%eax, %r15d
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%rbx), %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	cmpl	(%rbx), %r12d
	jl	LBB0_5
	jmp	LBB0_7
LBB0_8:
	movzwl	%r15w, %edx
	movsbl	%r14b, %ecx
	movq	%rbx, %rdi
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_xfer_emulated        ## TAILCALL
LBB0_2:
	xorl	%r15d, %r15d
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$56, %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	_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_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	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _I2C_M_TEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_TEN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I2C_CLIENT_PEC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_CLIENT_PEC@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	and	w26, w8, w2
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	add	x0, x24, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_mutex_lock
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_7
; %bb.2:
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh6:
	ldr	x25, [x8]
	mov	w28, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	blr	x8
	mov	x27, x0
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	ldr	x8, [x24, #8]
	add	x1, x8, x25
	bl	_time_after
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	add	w28, w28, #1
	cmp	w28, w8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_6:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	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
	b	_i2c_smbus_xfer_emulated
LBB0_7:
	mov	w27, #0
LBB0_8:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_mutex_unlock
	mov	x0, x27
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_TEN,2,1                  ; @I2C_M_TEN
	.comm	_I2C_CLIENT_PEC,2,1             ; @I2C_CLIENT_PEC
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
