	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_smbus_cmi_access
_acpi_smbus_cmi_access:                 ## @acpi_smbus_cmi_access
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movl	$0, -144(%rbp)
	testb	%r12b, %r12b
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r9d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	ja	LBB0_20
## %bb.1:
	movq	16(%rbp), %rdx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	jmpq	*%rax
LBB0_10:
	movq	_ACPI_SMBUS_PRTCL_WORD_DATA@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	cmpb	%r12b, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_18
## %bb.11:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
	movl	$2, -72(%rbp)
	jmp	LBB0_9
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_54
LBB0_2:
	movq	_ACPI_SMBUS_PRTCL_QUICK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	cmpb	%r12b, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_4
## %bb.3:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
	movl	$0, -72(%rbp)
	movq	%rcx, -64(%rbp)
	movl	$0, -64(%rbp)
	jmp	LBB0_4
LBB0_7:
	movq	_ACPI_SMBUS_PRTCL_BYTE_DATA@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	cmpb	%r12b, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_18
## %bb.8:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
	movl	$1, -72(%rbp)
LBB0_9:
	movq	%rcx, -64(%rbp)
	movl	(%rdx), %ecx
	movl	%ecx, -64(%rbp)
	jmp	LBB0_18
LBB0_5:
	movq	_ACPI_SMBUS_PRTCL_BYTE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	cmpb	%r12b, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_4
## %bb.6:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
	movl	$0, -72(%rbp)
	movq	%rcx, -64(%rbp)
	movl	$0, -64(%rbp)
	jmp	LBB0_18
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_12:
	movq	_ACPI_SMBUS_PRTCL_BLOCK_DATA@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	cmpb	%r12b, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_18
## %bb.13:
	movq	(%rdx), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jg	LBB0_15
## %bb.17:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -72(%rbp)
	movl	%edx, -72(%rbp)
	movl	%edx, -64(%rbp)
	addl	$4, %ecx
	movl	%ecx, -60(%rbp)
LBB0_18:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpb	%r12b, (%rcx)
	setne	%dl
	movq	8(%r14), %rsi
	leal	3(%rdx,%rdx), %ecx
	movq	(%rsi,%rdx,8), %r13
	movl	%r12d, -124(%rbp)               ## 4-byte Spill
	jne	LBB0_19
## %bb.21:
	movq	_ACPI_SMBUS_PRTCL_READ@GOTPCREL(%rip), %rdx
	jmp	LBB0_22
LBB0_19:
	movq	_ACPI_SMBUS_PRTCL_WRITE@GOTPCREL(%rip), %rdx
LBB0_22:
	movl	-108(%rbp), %esi                ## 4-byte Reload
	movl	%ecx, -176(%rbp)
	orb	(%rdx), %al
	leaq	-96(%rbp), %rcx
	movq	%rcx, -168(%rbp)
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rcx, -96(%rbp)
	movzbl	%al, %eax
	movl	%eax, -96(%rbp)
	movq	%rcx, -88(%rbp)
	movzbl	%sil, %eax
	movl	%eax, -88(%rbp)
	movq	%rcx, -80(%rbp)
	movzbl	%r15b, %eax
	movl	%eax, -80(%rbp)
	movl	(%r14), %edi
	leaq	-176(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	movq	%r13, %rsi
	callq	_acpi_evaluate_object
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_acpi_handle_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_54
LBB0_24:
	movq	-160(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.25:
	movq	(%rbx), %rax
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.26:
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	(%rax), %r14
	cmpq	(%r12), %r14
	jne	LBB0_28
## %bb.31:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_acpi_handle_debug
	addl	$-133, %r14d
	cmpl	$3, %r14d
	ja	LBB0_41
## %bb.32:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jmpq	*%rcx
LBB0_39:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_29:
	movl	(%r14), %edi
	jmp	LBB0_30
LBB0_28:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
LBB0_30:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_acpi_handle_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_42:
	subl	(%rax), %r14d
	movq	-120(%rbp), %r13                ## 8-byte Reload
LBB0_53:
	movq	-160(%rbp), %rdi
	callq	_kfree
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_54:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_56
## %bb.55:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_54
LBB0_33:
	xorl	%r14d, %r14d
	cmpl	$129, -136(%rbp)                ## 4-byte Folded Reload
	je	LBB0_53
## %bb.34:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	cmpb	%cl, (%rax)
	je	LBB0_53
## %bb.35:
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	cmpq	(%r12), %rdx
	jne	LBB0_36
## %bb.43:
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	leal	-130(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_46
## %bb.44:
	cmpl	$132, %esi
	je	LBB0_48
## %bb.45:
	cmpl	$128, %esi
	jne	LBB0_53
LBB0_46:
	movq	16(%rax), %rax
	cmpq	%rdx, %rax
	jne	LBB0_36
## %bb.47:
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_53
LBB0_40:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_37:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_38:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_53
LBB0_41:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_42
LBB0_48:
	movq	16(%rax), %rcx
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_36
## %bb.49:
	testl	%edx, %edx
	je	LBB0_51
## %bb.50:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jl	LBB0_51
## %bb.52:
	movq	16(%rbp), %rsi
	movq	(%rsi), %rcx
	movl	%edx, (%rcx)
	movl	(%rsi), %edi
	addl	$4, %edi
	movl	20(%rax), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	jmp	LBB0_53
LBB0_36:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_acpi_handle_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_53
LBB0_51:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_56:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_12
.set L0_1_set_39, LBB0_39-LJTI0_1
.set L0_1_set_33, LBB0_33-LJTI0_1
.set L0_1_set_40, LBB0_40-LJTI0_1
.set L0_1_set_37, LBB0_37-LJTI0_1
LJTI0_1:
	.long	L0_1_set_39
	.long	L0_1_set_33
	.long	L0_1_set_40
	.long	L0_1_set_37
	.end_data_region
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"access size: %d %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"READ"

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

	.comm	_ACPI_SMBUS_PRTCL_QUICK,1,0     ## @ACPI_SMBUS_PRTCL_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_SMBUS_PRTCL_BYTE,1,0      ## @ACPI_SMBUS_PRTCL_BYTE
	.comm	_ACPI_SMBUS_PRTCL_BYTE_DATA,1,0 ## @ACPI_SMBUS_PRTCL_BYTE_DATA
	.comm	_ACPI_SMBUS_PRTCL_WORD_DATA,1,0 ## @ACPI_SMBUS_PRTCL_WORD_DATA
	.comm	_ACPI_SMBUS_PRTCL_BLOCK_DATA,1,0 ## @ACPI_SMBUS_PRTCL_BLOCK_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_ACPI_SMBUS_PRTCL_READ,1,0      ## @ACPI_SMBUS_PRTCL_READ
	.comm	_ACPI_SMBUS_PRTCL_WRITE,1,0     ## @ACPI_SMBUS_PRTCL_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"Failed to evaluate %s: %i\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
L_.str.5:                               ## @.str.5
	.asciz	"Invalid argument type\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s return status: %i\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.7:                               ## @.str.7
	.asciz	"Transaction status: %i\n"

	.no_dead_strip	_acpi_smbus_cmi_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_smbus_cmi_access
_acpi_smbus_cmi_access:                 ; @acpi_smbus_cmi_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x6
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x25, [x0, #8]
Lloh3:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #24]
	str	wzr, [sp, #40]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w3, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x5
	bl	_dev_dbg
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
	and	w27, w24, #0xff
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
Lloh14:
	adrp	x26, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
	br	x10
LBB0_2:
Lloh16:
	adrp	x8, _ACPI_SMBUS_PRTCL_WORD_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACPI_SMBUS_PRTCL_WORD_DATA@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh18:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w27
	b.ne	LBB0_16
; %bb.3:
	ldr	x9, [x26]
	mov	w10, #2
	b	LBB0_9
LBB0_4:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
Lloh22:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
Lloh24:
	adrp	x8, _ACPI_SMBUS_PRTCL_QUICK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACPI_SMBUS_PRTCL_QUICK@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh26:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w27
	b.ne	LBB0_15
; %bb.6:
	mov	w23, #0
	b	LBB0_11
LBB0_7:
Lloh28:
	adrp	x8, _ACPI_SMBUS_PRTCL_BYTE_DATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACPI_SMBUS_PRTCL_BYTE_DATA@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh30:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w27
	b.ne	LBB0_16
; %bb.8:
	ldr	x9, [x26]
	mov	w10, #1
LBB0_9:
	stp	x9, x9, [sp, #88]
	ldr	w9, [x20]
	str	w10, [sp, #88]
	str	w9, [sp, #96]
	b	LBB0_16
LBB0_10:
Lloh32:
	adrp	x8, _ACPI_SMBUS_PRTCL_BYTE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ACPI_SMBUS_PRTCL_BYTE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh34:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w27
	b.ne	LBB0_15
LBB0_11:
	ldr	x9, [x26]
	stp	x9, x9, [sp, #88]
	str	wzr, [sp, #88]
	str	wzr, [sp, #96]
	b	LBB0_16
LBB0_12:
Lloh36:
	adrp	x8, _ACPI_SMBUS_PRTCL_BLOCK_DATA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ACPI_SMBUS_PRTCL_BLOCK_DATA@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh38:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w27
	b.ne	LBB0_16
; %bb.13:
	ldr	x9, [x20]
	ldr	w10, [x9]
Lloh40:
	adrp	x11, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh41:
	ldr	x11, [x11, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
	cmp	w10, #0
	ccmp	w10, w11, #0, ne
	b.le	LBB0_26
; %bb.14:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	mov	w23, #0
LBB0_16:
Lloh45:
	adrp	x9, _I2C_SMBUS_READ@GOTPAGE
Lloh46:
	ldr	x9, [x9, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w9, [x9]
	mov	w10, #5
	mov	w11, #3
	cmp	w9, w27
	csel	w9, w11, w10, eq
	cset	w10, ne
	ldr	x11, [x25, #8]
	ldr	x24, [x11, w10, uxtw #3]
Lloh47:
	adrp	x10, _ACPI_SMBUS_PRTCL_READ@GOTPAGE
Lloh48:
	ldr	x10, [x10, _ACPI_SMBUS_PRTCL_READ@GOTPAGEOFF]
Lloh49:
	adrp	x11, _ACPI_SMBUS_PRTCL_WRITE@GOTPAGE
Lloh50:
	ldr	x11, [x11, _ACPI_SMBUS_PRTCL_WRITE@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	ldrb	w10, [x10]
	str	w9, [sp, #48]
	orr	w8, w10, w8
	add	x9, sp, #64
	str	x9, [sp, #56]
	ldr	x9, [x26]
	stp	x9, x9, [sp, #64]
	str	w8, [sp, #64]
	str	w22, [sp, #72]
	str	x9, [sp, #80]
	str	w23, [sp, #80]
	ldr	w0, [x25]
	add	x2, sp, #48
	add	x3, sp, #24
	mov	x1, x24
	bl	_acpi_evaluate_object
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w0, [x25]
	stp	x24, x22, [sp]
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_acpi_handle_err
Lloh53:
	adrp	x8, _EIO@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_46
LBB0_19:
	ldr	x23, [sp, #24]
	cbz	x23, LBB0_42
; %bb.20:
	ldr	x8, [x23]
Lloh55:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh56:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.21:
	cbz	x8, LBB0_42
; %bb.22:
	ldr	x22, [x8]
	ldr	x8, [x26]
	cmp	x22, x8
	b.ne	LBB0_42
; %bb.23:
	ldr	w0, [x25]
Lloh58:
	adrp	x1, l_.str.6@PAGE
Lloh59:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x24
	mov	x3, x22
	bl	_acpi_handle_debug
	sub	w8, w22, #133
	cmp	w8, #3
	b.hi	LBB0_43
; %bb.24:
Lloh60:
	adrp	x9, lJTI0_1@PAGE
Lloh61:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_25
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:
Lloh62:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_44
LBB0_26:
	ldr	x11, [x26]
	str	x11, [sp, #88]
	str	w10, [sp, #88]
	add	w9, w9, #4
	stp	w10, w9, [sp, #96]
	b	LBB0_16
LBB0_27:
	mov	w22, #0
	cmp	w21, #129
	b.eq	LBB0_45
; %bb.28:
Lloh64:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w27
	b.eq	LBB0_45
; %bb.29:
	ldr	x8, [x23]
	ldr	x2, [x8, #8]
	ldr	x9, [x26]
	cmp	x2, x9
	b.ne	LBB0_42
; %bb.30:
	sub	w9, w21, #130
	cmp	w9, #2
	b.lo	LBB0_33
; %bb.31:
	cmp	w21, #132
	b.eq	LBB0_37
; %bb.32:
	cmp	w21, #128
	b.ne	LBB0_41
LBB0_33:
	ldr	x8, [x8, #16]
	cmp	x8, x2
	b.ne	LBB0_42
; %bb.34:
	mov	w22, #0
	str	w8, [x20]
	b	LBB0_45
LBB0_35:
Lloh66:
	adrp	x8, _ENXIO@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_44
LBB0_36:
Lloh68:
	adrp	x8, _EBUSY@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_44
LBB0_37:
	ldr	x9, [x8, #16]
Lloh70:
	adrp	x10, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh71:
	ldr	x10, [x10, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh72:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_42
; %bb.38:
	cbz	w2, LBB0_48
; %bb.39:
Lloh73:
	adrp	x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh74:
	ldr	x9, [x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	cmp	w9, w2
	b.lt	LBB0_48
; %bb.40:
	ldr	x9, [x20]
	str	w2, [x9]
	ldr	w9, [x20]
	add	w0, w9, #4
	ldr	w1, [x8, #20]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
LBB0_41:
	mov	w22, #0
	b	LBB0_45
LBB0_42:
	ldr	w0, [x25]
Lloh76:
	adrp	x1, l_.str.5@PAGE
Lloh77:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_acpi_handle_err
LBB0_43:
Lloh78:
	adrp	x8, _EIO@GOTPAGE
Lloh79:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_44:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_45:
	ldr	x0, [sp, #24]
	bl	_kfree
Lloh80:
	adrp	x1, l_.str.7@PAGE
Lloh81:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
LBB0_46:
	ldur	x8, [x29, #-88]
Lloh82:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh83:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.47:
	mov	x0, x22
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_48:
Lloh85:
	adrp	x8, _EPROTO@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_18
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_27-LBB0_25)>>2
	.byte	(LBB0_35-LBB0_25)>>2
	.byte	(LBB0_36-LBB0_25)>>2
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"access size: %d %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"READ"

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

	.comm	_ACPI_SMBUS_PRTCL_QUICK,1,0     ; @ACPI_SMBUS_PRTCL_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_SMBUS_PRTCL_BYTE,1,0      ; @ACPI_SMBUS_PRTCL_BYTE
	.comm	_ACPI_SMBUS_PRTCL_BYTE_DATA,1,0 ; @ACPI_SMBUS_PRTCL_BYTE_DATA
	.comm	_ACPI_SMBUS_PRTCL_WORD_DATA,1,0 ; @ACPI_SMBUS_PRTCL_WORD_DATA
	.comm	_ACPI_SMBUS_PRTCL_BLOCK_DATA,1,0 ; @ACPI_SMBUS_PRTCL_BLOCK_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_ACPI_SMBUS_PRTCL_READ,1,0      ; @ACPI_SMBUS_PRTCL_READ
	.comm	_ACPI_SMBUS_PRTCL_WRITE,1,0     ; @ACPI_SMBUS_PRTCL_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"Failed to evaluate %s: %i\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
l_.str.5:                               ; @.str.5
	.asciz	"Invalid argument type\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s return status: %i\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.7:                               ; @.str.7
	.asciz	"Transaction status: %i\n"

	.no_dead_strip	_acpi_smbus_cmi_access
.subsections_via_symbols
