	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch_access
_sch_access:                            ## @sch_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
	pushq	%rax
	.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, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_SMBHSTSTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_inb
	testb	$8, %al
	jne	LBB0_5
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testb	%bl, %bl
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_sch_adapter@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leal	-132(%r13), %ecx
	cmpl	$4, %ecx
	ja	LBB0_6
## %bb.2:
	movq	16(%rbp), %r13
	movsbl	%r15b, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jmpq	*%rcx
LBB0_3:
	addl	%r14d, %r14d
	orl	%eax, %r14d
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$128, %r14d
	cmpb	%r15b, (%rax)
	jne	LBB0_20
## %bb.4:
	movzbl	(%r13), %edi
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_outb
	movzbl	1(%r13), %edi
	movq	_SMBHSTDAT1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	andl	$15, %eax
	movq	_sch_adapter@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_38:
	subl	(%rax), %ebx
	jmp	LBB0_39
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_7:
	addl	%r14d, %r14d
	orl	%eax, %r14d
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_SCH_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_8:
	addl	%r14d, %r14d
	orl	%eax, %r14d
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$129, %r14d
	cmpb	%r15b, (%rax)
	jne	LBB0_20
## %bb.9:
	movl	(%r13), %edi
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rsi
	callq	_outb
	jmp	LBB0_20
LBB0_11:
	addl	%r14d, %r14d
	orl	%eax, %r14d
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$130, %r14d
	cmpb	%r15b, (%rax)
	jne	LBB0_20
## %bb.12:
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	jmp	LBB0_20
LBB0_13:
	addl	%r14d, %r14d
	orl	%eax, %r14d
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$131, %r14d
	cmpb	%r15b, (%rax)
	jne	LBB0_20
## %bb.14:
	movq	(%r13), %rax
	movl	(%rax), %r12d
	testq	%r12, %r12
	je	LBB0_32
## %bb.15:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_32
## %bb.16:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_outb
	testl	%r12d, %r12d
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	movq	%r13, %r15
	movq	_SMBBLKDAT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	4(%rax,%rbx,4), %edi
	movl	(%r13), %eax
	addl	%ebx, %eax
	movslq	%eax, %rsi
	callq	_outb
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_18
## %bb.19:
	movq	%r15, %r13
LBB0_20:
	movq	_SMBHSTCNT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_sch_adapter@GOTPCREL(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rdi
	callq	_inb
	andl	$176, %eax
	movl	%r14d, %edi
	andl	$7, %edi
	orl	%eax, %edi
	movq	(%rbx), %rsi
	callq	_outb
	xorl	%eax, %eax
	callq	_sch_transaction
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_39
## %bb.21:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	je	LBB0_35
## %bb.22:
	movq	_SCH_QUICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_35
## %bb.23:
	leal	-129(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_31
## %bb.24:
	cmpl	$128, %r14d
	je	LBB0_33
## %bb.25:
	cmpl	$131, %r14d
	jne	LBB0_35
## %bb.26:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_inb
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_36
## %bb.27:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_36
## %bb.28:
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_39
## %bb.29:
	xorl	%ebx, %ebx
	movq	_SMBBLKDAT@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	addl	%r12d, %eax
	movslq	%eax, %rdi
	callq	_inb
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx,%r12,4)
	movq	(%r13), %rax
	movslq	(%rax), %rax
	incq	%r12
	cmpq	%rax, %r12
	jl	LBB0_30
	jmp	LBB0_39
LBB0_31:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_inb
	jmp	LBB0_34
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_33:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_SMBHSTDAT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_inb
	shll	$8, %eax
	addl	%ebx, %eax
LBB0_34:
	movl	%eax, (%r13)
LBB0_35:
	xorl	%ebx, %ebx
LBB0_39:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_EPROTO@GOTPCREL(%rip), %rax
LBB0_37:
	xorl	%ebx, %ebx
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_SMBHSTSTS,8,3                  ## @SMBHSTSTS
	.comm	_sch_adapter,4,2                ## @sch_adapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus busy (%02x)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"access size: %d %s\n"

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

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

	.comm	_SMBHSTADD,8,3                  ## @SMBHSTADD
	.comm	_SCH_QUICK,4,2                  ## @SCH_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_SMBHSTCMD,8,3                  ## @SMBHSTCMD
	.comm	_SMBHSTDAT0,8,3                 ## @SMBHSTDAT0
	.comm	_SMBHSTDAT1,8,3                 ## @SMBHSTDAT1
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMBBLKDAT,4,2                  ## @SMBBLKDAT
L_.str.4:                               ## @.str.4
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.5:                               ## @.str.5
	.asciz	"write size %d to 0x%04x\n"

	.comm	_SMBHSTCNT,8,3                  ## @SMBHSTCNT
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_sch_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch_access
_sch_access:                            ; @sch_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x6
	mov	x23, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _SMBHSTSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMBHSTSTS@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_inb
	tbnz	w0, #3, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh5:
	adrp	x9, l_.str.3@PAGE
Lloh6:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
Lloh7:
	adrp	x0, _sch_adapter@GOTPAGE
Lloh8:
	ldr	x0, [x0, _sch_adapter@GOTPAGEOFF]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_dbg
	sub	w8, w23, #132
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.2:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	orr	w0, w20, w22, lsl #1
Lloh13:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	bl	_outb
Lloh16:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_outb
Lloh19:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_5
; %bb.4:
	ldrb	w0, [x19]
Lloh21:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	bl	_outb
	ldrb	w0, [x19, #1]
Lloh24:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	bl	_outb
LBB0_5:
	mov	w21, #128
	b	LBB0_23
LBB0_6:
	and	w2, w0, #0xf
Lloh27:
	adrp	x0, _sch_adapter@GOTPAGE
Lloh28:
	ldr	x0, [x0, _sch_adapter@GOTPAGEOFF]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh31:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_8:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_dev_warn
Lloh35:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_9:
	orr	w0, w20, w22, lsl #1
Lloh37:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x8]
	bl	_outb
Lloh40:
	adrp	x8, _SCH_QUICK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SCH_QUICK@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_10:
	orr	w0, w20, w22, lsl #1
Lloh43:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	bl	_outb
Lloh46:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh48:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_outb
Lloh49:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x19]
Lloh51:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh53:
	ldr	x1, [x8]
	bl	_outb
LBB0_12:
	mov	w21, #129
	b	LBB0_23
LBB0_13:
	orr	w0, w20, w22, lsl #1
Lloh54:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh56:
	ldr	x1, [x8]
	bl	_outb
Lloh57:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_15
; %bb.14:
Lloh59:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh60:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh61:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_outb
LBB0_15:
	mov	w21, #130
	b	LBB0_23
LBB0_16:
	orr	w0, w20, w22, lsl #1
Lloh62:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh64:
	ldr	x1, [x8]
	bl	_outb
Lloh65:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh67:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_outb
Lloh68:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_22
; %bb.17:
	ldr	x8, [x19]
	ldr	w21, [x8]
	cbz	w21, LBB0_35
; %bb.18:
Lloh70:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh71:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	cmp	w21, w8
	b.gt	LBB0_35
; %bb.19:
Lloh73:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh74:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh75:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_outb
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.20:
	add	x21, x21, #1
	mov	w22, #1
Lloh76:
	adrp	x23, _SMBBLKDAT@GOTPAGE
Lloh77:
	ldr	x23, [x23, _SMBBLKDAT@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w8, [x23]
	add	w8, w22, w8
	sub	w8, w8, #1
	sxtw	x1, w8
	bl	_outb
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_21
LBB0_22:
	mov	w21, #131
LBB0_23:
Lloh78:
	adrp	x22, _SMBHSTCNT@GOTPAGE
Lloh79:
	ldr	x22, [x22, _SMBHSTCNT@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh80:
	adrp	x0, _sch_adapter@GOTPAGE
Lloh81:
	ldr	x0, [x0, _sch_adapter@GOTPAGEOFF]
	str	x8, [sp]
Lloh82:
	adrp	x1, l_.str.5@PAGE
Lloh83:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	x0, [x22]
	bl	_inb
	mov	w8, #176
	and	w0, w0, w8
	bfxil	w0, w21, #0, #3
	ldr	x1, [x22]
	bl	_outb
	bl	_sch_transaction
	cbnz	w0, LBB0_37
; %bb.24:
Lloh84:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh86:
	adrp	x9, _SCH_QUICK@GOTPAGE
Lloh87:
	ldr	x9, [x9, _SCH_QUICK@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	cmp	w8, w20, uxtb
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_26
LBB0_25:
	mov	w0, #0
	b	LBB0_37
LBB0_26:
	sub	w8, w21, #129
	cmp	w8, #2
	b.lo	LBB0_34
; %bb.27:
	cmp	w21, #128
	b.eq	LBB0_36
; %bb.28:
	cmp	w21, #131
	b.ne	LBB0_25
; %bb.29:
Lloh89:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh91:
	ldr	x0, [x8]
	bl	_inb
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_38
; %bb.30:
Lloh92:
	adrp	x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh93:
	ldr	x9, [x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_38
; %bb.31:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.32:
	mov	x20, #0
Lloh95:
	adrp	x21, _SMBBLKDAT@GOTPAGE
Lloh96:
	ldr	x21, [x21, _SMBBLKDAT@GOTPAGEOFF]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w8, w20, w8
	sxtw	x0, w8
	bl	_inb
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	add	x9, x9, x20, lsl #2
	str	w8, [x9, #4]
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	add	x20, x20, #1
	cmp	x20, x8
	b.lt	LBB0_33
	b	LBB0_37
LBB0_34:
Lloh97:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh98:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh99:
	ldr	x0, [x8]
	bl	_inb
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_37
LBB0_35:
Lloh100:
	adrp	x8, _EINVAL@GOTPAGE
Lloh101:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_36:
Lloh102:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh103:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh104:
	ldr	x0, [x8]
	bl	_inb
	mov	x20, x0
Lloh105:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh106:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
Lloh107:
	ldr	x0, [x8]
	bl	_inb
	mov	x8, x0
	mov	w0, #0
	add	w8, w20, w8, lsl #8
	str	w8, [x19]
LBB0_37:
	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
	add	sp, sp, #80
	ret
LBB0_38:
Lloh108:
	adrp	x8, _EPROTO@GOTPAGE
Lloh109:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh108, Lloh109
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
                                        ; -- End function
	.comm	_SMBHSTSTS,8,3                  ; @SMBHSTSTS
	.comm	_sch_adapter,4,2                ; @sch_adapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus busy (%02x)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"access size: %d %s\n"

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

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

	.comm	_SMBHSTADD,8,3                  ; @SMBHSTADD
	.comm	_SCH_QUICK,4,2                  ; @SCH_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_SMBHSTCMD,8,3                  ; @SMBHSTCMD
	.comm	_SMBHSTDAT0,8,3                 ; @SMBHSTDAT0
	.comm	_SMBHSTDAT1,8,3                 ; @SMBHSTDAT1
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMBBLKDAT,4,2                  ; @SMBBLKDAT
l_.str.4:                               ; @.str.4
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.5:                               ; @.str.5
	.asciz	"write size %d to 0x%04x\n"

	.comm	_SMBHSTCNT,8,3                  ; @SMBHSTCNT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_sch_access
.subsections_via_symbols
