	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_smbus_xfer_emulated
_i2c_smbus_xfer_emulated:               ## @i2c_smbus_xfer_emulated
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -160(%rbp)                 ## 8-byte Spill
	movl	%r8d, -140(%rbp)                ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	3(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	leal	2(%rbx), %eax
	callq	____chkstk_darwin
	movl	-140(%rbp), %edi                ## 4-byte Reload
	movl	%r14d, %r9d
	movq	-160(%rbp), %r8                 ## 8-byte Reload
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	xorl	%r14d, %r14d
	cmpb	%r13b, %bl
	sete	%dl
	movw	%r9w, -96(%rbp)
	movl	$1, -92(%rbp)
	movq	%r12, -88(%rbp)
	movl	%r15d, -80(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ecx
	movl	%r9d, %eax
	orl	%ecx, %eax
	movw	%ax, -72(%rbp)
	movl	$0, -68(%rbp)
	movq	%rsi, -64(%rbp)
	movl	%r15d, -56(%rbp)
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movb	%dil, (%r12)
	leal	-128(%r8), %r12d
	cmpl	$7, %r12d
	ja	LBB0_4
## %bb.1:
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r10
	movb	%dl, %r14b
	incl	%r14d
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r12,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_2:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	cmpb	%r13b, %bl
	jne	LBB0_21
## %bb.3:
	movl	$2, -68(%rbp)
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_69
LBB0_5:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movl	%r13d, -112(%rbp)               ## 4-byte Spill
	cmpb	%r13b, %bl
	cmovnel	%eax, %ecx
	movl	$0, -92(%rbp)
	movl	%r9d, %eax
	orl	%ecx, %eax
	movw	%ax, -96(%rbp)
	movl	$1, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_53
LBB0_6:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	$3, -92(%rbp)
	movl	$2, -68(%rbp)
	movzwl	(%r10), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movw	%ax, 1(%rcx)
	movl	$2, %r14d
	jmp	LBB0_27
LBB0_7:
	movq	(%r10), %rax
	movl	(%rax), %ecx
	cmpl	-112(%rbp), %ecx                ## 4-byte Folded Reload
	jle	LBB0_22
## %bb.8:
	cmpb	%r13b, %bl
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_42
LBB0_9:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	cmpb	%r13b, %bl
	jne	LBB0_24
## %bb.10:
	movl	$1, -68(%rbp)
	jmp	LBB0_20
LBB0_11:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	$1, %r14d
	cmpb	%r13b, %bl
	jne	LBB0_26
## %bb.12:
	movw	%ax, -96(%rbp)
	jmp	LBB0_26
LBB0_13:
	movq	(%r10), %rax
	movl	(%rax), %edx
	cmpl	-112(%rbp), %edx                ## 4-byte Folded Reload
	jg	LBB0_41
## %bb.14:
	movb	%bl, -112(%rbp)                 ## 1-byte Spill
	movl	%r9d, %ebx
	movq	%r8, %r13
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	addl	$2, %edx
	movl	%edx, -92(%rbp)
	movzbl	%dil, %esi
	leaq	-96(%rbp), %rdi
	callq	_i2c_smbus_try_get_dmabuf
	movq	16(%rbp), %rsi
	cmpl	$2, -92(%rbp)
	jl	LBB0_17
## %bb.15:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	movzbl	-4(%rcx,%rax,4), %ecx
	movq	-88(%rbp), %rdx
	movb	%cl, (%rdx,%rax)
	incq	%rax
	movslq	-92(%rbp), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_16
LBB0_17:
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	leaq	-72(%rbp), %rdi
	orw	%ax, -72(%rbp)
	movl	$1, -68(%rbp)
	xorl	%esi, %esi
	callq	_i2c_smbus_try_get_dmabuf
	movl	$2, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r13, %r8
	movl	%ebx, %r9d
	movb	-112(%rbp), %bl                 ## 1-byte Reload
	jmp	LBB0_28
LBB0_18:
	cmpb	%r13b, %bl
	jne	LBB0_39
## %bb.19:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rcx
	leaq	-72(%rbp), %rdi
	orw	(%rcx), %ax
	movw	%ax, -72(%rbp)
	movl	$1, -68(%rbp)
	xorl	%esi, %esi
	movq	%r8, %rbx
	movl	%r9d, %r14d
	callq	_i2c_smbus_try_get_dmabuf
	movl	%r14d, %r9d
	movq	%rbx, %r8
LBB0_20:
	movl	$2, %r14d
	jmp	LBB0_26
LBB0_21:
	movl	$3, -92(%rbp)
	movzwl	(%r10), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movw	%ax, 1(%rcx)
	jmp	LBB0_25
LBB0_22:
	movl	%r13d, %eax
	movl	%r9d, -116(%rbp)                ## 4-byte Spill
	movq	%r8, %r13
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	cmpb	%al, %bl
	jne	LBB0_43
## %bb.23:
	leaq	-72(%rbp), %rdi
	movl	%ecx, -68(%rbp)
	xorl	%esi, %esi
	callq	_i2c_smbus_try_get_dmabuf
	movl	$2, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_52
LBB0_24:
	movl	$2, -92(%rbp)
	movb	(%r10), %al
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movb	%al, 1(%rcx)
LBB0_25:
	movl	$1, %r14d
LBB0_26:
	movl	%r13d, %ebx
LBB0_27:
	movq	-104(%rbp), %r15                ## 8-byte Reload
LBB0_28:
	andl	$-3, %r8d
	xorl	%r13d, %r13d
	cmpl	$129, %r8d
	je	LBB0_32
## %bb.29:
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	andw	%r9w, %ax
	je	LBB0_32
## %bb.30:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	testw	%ax, -96(%rbp)
	je	LBB0_33
## %bb.31:
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_32:
	movl	%ebx, %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	jmp	LBB0_54
LBB0_33:
	cmpl	$1, %r14d
	jne	LBB0_35
## %bb.34:
	leaq	-96(%rbp), %rdi
	callq	_i2c_smbus_add_pec
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_35:
	leaq	-96(%rbp), %rsi
	xorl	%edi, %edi
	callq	_i2c_smbus_msg_pec
	movl	%eax, %r12d
LBB0_36:
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,2), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	movb	$1, %r13b
	testw	%cx, -96(%rbp,%rax,8)
	je	LBB0_38
## %bb.37:
	incl	-92(%rbp,%rax,8)
LBB0_38:
	movl	%ebx, %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	jmp	LBB0_55
LBB0_39:
	movq	(%r10), %rax
	movl	(%rax), %ecx
	leal	2(%rcx), %edx
	movl	%edx, -92(%rbp)
	cmpl	-112(%rbp), %ecx                ## 4-byte Folded Reload
	jle	LBB0_46
## %bb.40:
	movl	(%rax), %edx
LBB0_41:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
LBB0_42:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_69
LBB0_43:
	incl	%ecx
	movl	%ecx, -92(%rbp)
	movzbl	%dil, %esi
	leaq	-96(%rbp), %rdi
	callq	_i2c_smbus_try_get_dmabuf
	movq	16(%rbp), %rsi
	movq	(%rsi), %rax
	cmpl	$0, (%rax)
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jle	LBB0_51
## %bb.44:
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	-116(%rbp), %r9d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movzbl	4(%rax,%rcx,4), %eax
	movq	-88(%rbp), %rdx
	movb	%al, 1(%rdx,%rcx)
	movq	(%rsi), %rax
	movslq	(%rax), %rdx
	incq	%rcx
	cmpq	%rdx, %rcx
	jl	LBB0_45
	jmp	LBB0_49
LBB0_46:
	movl	%r13d, -112(%rbp)               ## 4-byte Spill
	movl	%r9d, -116(%rbp)                ## 4-byte Spill
	movq	%r8, %r13
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movzbl	%dil, %esi
	leaq	-96(%rbp), %rdi
	callq	_i2c_smbus_try_get_dmabuf
	cmpl	$2, -92(%rbp)
	jl	LBB0_50
## %bb.47:
	movl	$1, %eax
	movq	16(%rbp), %rsi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r13, %r8
	movl	-116(%rbp), %r9d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	movzbl	-4(%rcx,%rax,4), %ecx
	movq	-88(%rbp), %rdx
	movb	%cl, (%rdx,%rax)
	incq	%rax
	movslq	-92(%rbp), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_48
LBB0_49:
	movl	-112(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_50:
	movl	-112(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %ebx
	movl	$1, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r13, %r8
	movl	-116(%rbp), %r9d                ## 4-byte Reload
	jmp	LBB0_28
LBB0_51:
	movl	$1, %r14d
LBB0_52:
	movq	%r13, %r8
	movl	-116(%rbp), %r9d                ## 4-byte Reload
LBB0_53:
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rax
	testw	%r9w, (%rax)
	setne	%al
	andl	$-3, %r8d
	cmpl	$129, %r8d
	setne	%r13b
	andb	%al, %r13b
LBB0_54:
	xorl	%r12d, %r12d
LBB0_55:
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	___i2c_transfer
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_65
## %bb.56:
	cmpl	%r14d, %r15d
	movq	16(%rbp), %rdi
	jne	LBB0_64
## %bb.57:
	xorl	%r15d, %r15d
	testb	%r13b, %r13b
	je	LBB0_60
## %bb.58:
	decl	%r14d
	leaq	(%r14,%r14,2), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	testw	%cx, -96(%rbp,%rax,8)
	je	LBB0_60
## %bb.59:
	leaq	-96(,%rax,8), %rsi
	addq	%rbp, %rsi
	movzbl	%r12b, %edi
	callq	_i2c_smbus_check_pec
	movq	16(%rbp), %rdi
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_65
LBB0_60:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movl	-112(%rbp), %ecx                ## 4-byte Reload
	cmpb	(%rax), %cl
	jne	LBB0_65
## %bb.61:
	movq	-128(%rbp), %r12                ## 8-byte Reload
	cmpl	$7, %r12d
	ja	LBB0_65
## %bb.62:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_63:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movzwl	(%rax), %eax
	movl	%eax, (%rdi)
	jmp	LBB0_65
LBB0_64:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_65:
	movzwl	-96(%rbp), %ecx
	movq	_I2C_M_DMA_SAFE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%ecx, %eax
	je	LBB0_67
## %bb.66:
	movq	-88(%rbp), %rdi
	callq	_kfree
	movl	(%rbx), %eax
LBB0_67:
	movzwl	-72(%rbp), %ecx
	testl	%ecx, %eax
	je	LBB0_69
## %bb.68:
	movq	-64(%rbp), %rdi
	callq	_kfree
LBB0_69:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_79
## %bb.70:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_71:
	movq	$-1, %rax
	movq	-64(%rbp), %rcx
	.p2align	4, 0x90
LBB0_72:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rcx,%rax), %edx
	movq	(%rdi), %rsi
	movl	%edx, 4(%rsi,%rax,4)
	movzbl	(%rcx), %edx
	incq	%rax
	cmpq	%rdx, %rax
	jb	LBB0_72
	jmp	LBB0_65
LBB0_73:
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_65
## %bb.74:
	movq	-64(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_75:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx), %esi
	movl	%esi, 4(%rax,%rdx,4)
	incq	%rdx
	movq	(%rdi), %rax
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_75
	jmp	LBB0_65
LBB0_76:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_78
LBB0_77:
	movq	-136(%rbp), %rax                ## 8-byte Reload
LBB0_78:
	movb	(%rax), %al
	movb	%al, (%rdi)
	jmp	LBB0_65
LBB0_79:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_18
.set L0_1_set_63, LBB0_63-LJTI0_1
.set L0_1_set_65, LBB0_65-LJTI0_1
.set L0_1_set_73, LBB0_73-LJTI0_1
.set L0_1_set_76, LBB0_76-LJTI0_1
.set L0_1_set_77, LBB0_77-LJTI0_1
.set L0_1_set_71, LBB0_71-LJTI0_1
LJTI0_1:
	.long	L0_1_set_63
	.long	L0_1_set_65
	.long	L0_1_set_63
	.long	L0_1_set_73
	.long	L0_1_set_76
	.long	L0_1_set_77
	.long	L0_1_set_71
	.long	L0_1_set_71
	.end_data_region
                                        ## -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_I2C_M_RD,2,1                   ## @I2C_M_RD
	.comm	_I2C_M_RECV_LEN,2,1             ## @I2C_M_RECV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid block write size %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid block %s size %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"read"

L_.str.3:                               ## @.str.3
	.asciz	"write"

L_.str.4:                               ## @.str.4
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I2C_CLIENT_PEC,2,1             ## @I2C_CLIENT_PEC
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_M_DMA_SAFE,4,2             ## @I2C_M_DMA_SAFE
	.no_dead_strip	_i2c_smbus_xfer_emulated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_smbus_xfer_emulated
_i2c_smbus_xfer_emulated:               ; @i2c_smbus_xfer_emulated
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #80
	mov	x19, x6
	mov	x21, x5
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	and	w26, w3, #0xff
Lloh3:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	add	w8, w12, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	add	w8, w12, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x10, x9, x8
	mov	sp, x10
Lloh10:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w27, [x8]
	cmp	w27, w26
	mov	w8, #1
	cinc	w23, w8, eq
	sturh	w2, [x29, #-136]
	stur	w8, [x29, #-132]
	stur	x25, [x29, #-128]
	stur	w1, [x29, #-120]
Lloh12:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w9, [x8]
	orr	w8, w9, w2
	sturh	w8, [x29, #-112]
	stur	wzr, [x29, #-108]
	stur	x10, [x29, #-104]
	stur	w1, [x29, #-96]
	strb	w4, [x25]
	sub	w28, w5, #128
	cmp	w28, #7
	b.hi	LBB0_4
; %bb.1:
	stur	x10, [x29, #-144]               ; 8-byte Folded Spill
Lloh14:
	adrp	x10, lJTI0_0@PAGE
Lloh15:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w13, [x10, x28]
	add	x11, x11, x13, lsl #2
	br	x11
LBB0_2:
	cmp	w27, w26
	b.ne	LBB0_23
; %bb.3:
	mov	w23, #2
	stur	w23, [x29, #-108]
	b	LBB0_39
LBB0_4:
	str	x21, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	add	sp, sp, #16
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_31
LBB0_5:
	stur	x28, [x29, #-152]               ; 8-byte Folded Spill
	stur	wzr, [x29, #-132]
	cmp	w27, w26
	csel	w8, w9, wzr, eq
	orr	w8, w8, w22
	sturh	w8, [x29, #-136]
LBB0_6:
	mov	w23, #1
LBB0_7:
	mov	w28, #0
Lloh20:
	adrp	x8, _I2C_CLIENT_PEC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_CLIENT_PEC@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w22
	and	w8, w21, #0xfffffffd
	mov	w9, #129
	ccmp	w8, w9, #4, ne
	cset	w24, ne
	b	LBB0_51
LBB0_8:
	mov	w8, #3
	mov	w23, #2
	stur	w8, [x29, #-132]
	stur	w23, [x29, #-108]
	ldr	w8, [x19]
	sturh	w8, [x25, #1]
	b	LBB0_40
LBB0_9:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, w12
	b.le	LBB0_24
; %bb.10:
Lloh22:
	adrp	x9, l_.str.3@PAGE
Lloh23:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh24:
	adrp	x10, l_.str.2@PAGE
Lloh25:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w27, w26
	csel	x9, x10, x9, eq
	stp	x9, x8, [sp, #-16]!
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_11:
	cmp	w27, w26
	b.ne	LBB0_26
; %bb.12:
	mov	w8, #1
	stur	w8, [x29, #-108]
	b	LBB0_22
LBB0_13:
	cmp	w27, w26
	b.ne	LBB0_38
; %bb.14:
	sturh	w8, [x29, #-136]
	b	LBB0_38
LBB0_15:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, w12
	b.gt	LBB0_29
; %bb.16:
	add	w8, w8, #2
	stur	w8, [x29, #-132]
	sub	x23, x29, #136
	sub	x0, x29, #136
	mov	x1, x4
	bl	_i2c_smbus_try_get_dmabuf
	ldur	w8, [x29, #-132]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.17:
	mov	x8, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	w9, [x9, x8, lsl #2]
	ldur	x10, [x29, #-128]
	add	x10, x10, x8
	strb	w9, [x10, #1]
	ldursw	x9, [x29, #-132]
	add	x10, x8, #2
	add	x8, x8, #1
	cmp	x10, x9
	b.lt	LBB0_18
LBB0_19:
Lloh28:
	adrp	x8, _I2C_M_RECV_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _I2C_M_RECV_LEN@GOTPAGEOFF]
	ldrh	w8, [x8]
	add	x0, x23, #24
	ldurh	w9, [x29, #-112]
	orr	w8, w9, w8
	sturh	w8, [x29, #-112]
	mov	w8, #1
	stur	w8, [x29, #-108]
	mov	w1, #0
	bl	_i2c_smbus_try_get_dmabuf
	mov	w23, #2
	b	LBB0_40
LBB0_20:
	cmp	w27, w26
	b.ne	LBB0_27
; %bb.21:
Lloh30:
	adrp	x9, _I2C_M_RECV_LEN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _I2C_M_RECV_LEN@GOTPAGEOFF]
	ldrh	w9, [x9]
	sub	x10, x29, #136
	add	x0, x10, #24
	orr	w8, w8, w9
	sturh	w8, [x29, #-112]
	mov	w8, #1
	stur	w8, [x29, #-108]
	mov	w1, #0
	bl	_i2c_smbus_try_get_dmabuf
LBB0_22:
	mov	w23, #2
	b	LBB0_39
LBB0_23:
	mov	w8, #3
	stur	w8, [x29, #-132]
	ldr	w8, [x19]
	sturh	w8, [x25, #1]
	b	LBB0_38
LBB0_24:
	cmp	w27, w26
	b.ne	LBB0_32
; %bb.25:
	stur	x28, [x29, #-152]               ; 8-byte Folded Spill
	sub	x9, x29, #136
	add	x0, x9, #24
	stur	w8, [x29, #-108]
	mov	w1, #0
	bl	_i2c_smbus_try_get_dmabuf
	mov	w23, #2
	b	LBB0_7
LBB0_26:
	mov	w8, #2
	stur	w8, [x29, #-132]
	ldrb	w8, [x19]
	strb	w8, [x25, #1]
	b	LBB0_38
LBB0_27:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w10, w9, #2
	stur	w10, [x29, #-132]
	cmp	w9, w12
	b.le	LBB0_35
; %bb.28:
	ldr	w8, [x8]
LBB0_29:
	str	x8, [sp, #-16]!
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
LBB0_30:
	mov	x0, x20
	bl	_dev_err
	add	sp, sp, #16
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_74
LBB0_32:
	add	w8, w8, #1
	stur	w8, [x29, #-132]
	sub	x0, x29, #136
	mov	x1, x4
	bl	_i2c_smbus_try_get_dmabuf
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_76
; %bb.33:
	mov	w9, #1
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8, x9, lsl #2]
	ldur	x10, [x29, #-128]
	strb	w8, [x10, x9]
	add	x10, x9, #1
	ldr	x8, [x19]
	ldrsw	x11, [x8]
	cmp	x9, x11
	mov	x9, x10
	b.lt	LBB0_34
	b	LBB0_39
LBB0_35:
	sub	x0, x29, #136
	mov	x1, x4
	bl	_i2c_smbus_try_get_dmabuf
	ldur	w8, [x29, #-132]
	cmp	w8, #2
	b.lt	LBB0_38
; %bb.36:
	mov	x8, #0
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	w9, [x9, x8, lsl #2]
	ldur	x10, [x29, #-128]
	add	x10, x10, x8
	strb	w9, [x10, #1]
	ldursw	x9, [x29, #-132]
	add	x10, x8, #2
	add	x8, x8, #1
	cmp	x10, x9
	b.lt	LBB0_37
	b	LBB0_39
LBB0_38:
	mov	w23, #1
LBB0_39:
	mov	x27, x26
LBB0_40:
	mov	w24, #0
	and	w8, w21, #0xfffffffd
	cmp	w8, #129
	stur	x28, [x29, #-152]               ; 8-byte Folded Spill
	b.eq	LBB0_44
; %bb.41:
Lloh36:
	adrp	x8, _I2C_CLIENT_PEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I2C_CLIENT_PEC@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w22
	cbz	w8, LBB0_44
; %bb.42:
	ldurh	w8, [x29, #-136]
Lloh38:
	adrp	x21, _I2C_M_RD@GOTPAGE
Lloh39:
	ldr	x21, [x21, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.43:
	mov	w28, #0
	b	LBB0_48
LBB0_44:
	mov	x26, x27
	mov	x28, x24
	b	LBB0_51
LBB0_45:
	cmp	w23, #1
	b.ne	LBB0_47
; %bb.46:
	sub	x0, x29, #136
	bl	_i2c_smbus_add_pec
	mov	w28, #0
	b	LBB0_48
LBB0_47:
	sub	x1, x29, #136
	mov	w0, #0
	bl	_i2c_smbus_msg_pec
	mov	x28, x0
LBB0_48:
	sub	w8, w23, #1
	mov	w9, #24
	umull	x10, w8, w9
	sub	x9, x29, #136
	ldrh	w10, [x9, x10]
	ldrh	w11, [x21]
	tst	w11, w10
	b.eq	LBB0_50
; %bb.49:
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_50:
	mov	w24, #1
	mov	x26, x27
LBB0_51:
	sub	x1, x29, #136
	mov	x0, x20
	mov	x2, x23
	bl	___i2c_transfer
	mov	x20, x0
	tbnz	w0, #31, LBB0_70
; %bb.52:
	cmp	w20, w23
	b.ne	LBB0_56
; %bb.53:
	cbz	w24, LBB0_57
; %bb.54:
	sub	w8, w23, #1
	mov	w9, #24
	sub	x10, x29, #136
	umaddl	x1, w8, w9, x10
	ldrh	w8, [x1]
Lloh40:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh41:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_57
; %bb.55:
	mov	x0, x28
	bl	_i2c_smbus_check_pec
	mov	x20, x0
	tbz	w0, #31, LBB0_58
	b	LBB0_70
LBB0_56:
Lloh42:
	adrp	x8, _EIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_70
LBB0_57:
	mov	w20, #0
LBB0_58:
Lloh45:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_70
; %bb.59:
	ldur	x11, [x29, #-152]               ; 8-byte Folded Reload
	cmp	w11, #7
	b.hi	LBB0_70
; %bb.60:
Lloh47:
	adrp	x8, lJTI0_1@PAGE
Lloh48:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x9, LBB0_61
	ldrb	w10, [x8, x11]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_61:
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldrh	w8, [x8]
	str	w8, [x19]
	b	LBB0_70
LBB0_62:
	mov	x8, #0
	ldur	x9, [x29, #-104]
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x8]
	ldr	x11, [x19]
	str	w10, [x11, x8, lsl #2]
	add	x10, x8, #1
	ldrb	w11, [x9]
	cmp	x8, x11
	mov	x8, x10
	b.lo	LBB0_63
	b	LBB0_70
LBB0_64:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_70
; %bb.65:
	mov	x10, #0
	ldur	x9, [x29, #-104]
LBB0_66:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9, x10]
	add	x8, x8, x10, lsl #2
	add	x12, x10, #1
	str	w11, [x8, #4]
	ldr	x8, [x19]
	ldrsw	x11, [x8]
	mov	x10, x12
	cmp	x12, x11
	b.lt	LBB0_66
	b	LBB0_70
LBB0_67:
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldrb	w8, [x8]
	b	LBB0_69
LBB0_68:
	ldrb	w8, [x25]
LBB0_69:
	strb	w8, [x19]
LBB0_70:
	ldurh	w9, [x29, #-136]
Lloh49:
	adrp	x19, _I2C_M_DMA_SAFE@GOTPAGE
Lloh50:
	ldr	x19, [x19, _I2C_M_DMA_SAFE@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w9
	b.eq	LBB0_72
; %bb.71:
	ldur	x0, [x29, #-128]
	bl	_kfree
	ldr	w8, [x19]
LBB0_72:
	ldurh	w9, [x29, #-112]
	tst	w8, w9
	b.eq	LBB0_74
; %bb.73:
	ldur	x0, [x29, #-104]
	bl	_kfree
LBB0_74:
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_77
; %bb.75:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_76:
	stur	x28, [x29, #-152]               ; 8-byte Folded Spill
	b	LBB0_6
LBB0_77:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_61-LBB0_61)>>2
	.byte	(LBB0_70-LBB0_61)>>2
	.byte	(LBB0_61-LBB0_61)>>2
	.byte	(LBB0_64-LBB0_61)>>2
	.byte	(LBB0_67-LBB0_61)>>2
	.byte	(LBB0_68-LBB0_61)>>2
	.byte	(LBB0_62-LBB0_61)>>2
	.byte	(LBB0_62-LBB0_61)>>2
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_I2C_M_RD,2,1                   ; @I2C_M_RD
	.comm	_I2C_M_RECV_LEN,2,1             ; @I2C_M_RECV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid block write size %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid block %s size %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"read"

l_.str.3:                               ; @.str.3
	.asciz	"write"

l_.str.4:                               ; @.str.4
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I2C_CLIENT_PEC,2,1             ; @I2C_CLIENT_PEC
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_M_DMA_SAFE,4,2             ; @I2C_M_DMA_SAFE
	.no_dead_strip	_i2c_smbus_xfer_emulated
.subsections_via_symbols
