	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_block_transaction_byte_by_byte
_i801_block_transaction_byte_by_byte:   ## @i801_block_transaction_byte_by_byte
	.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
	movq	_I2C_SMBUS_BLOCK_PROC_CALL@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_4:
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_i801_check_pre
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_SMBHSTDAT0
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	(%r15), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMBBLKDAT
	movl	%ebx, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_outb_p
LBB0_7:
	movq	_I2C_SMBUS_I2C_BLOCK_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I801_BLOCK_DATA@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpb	%r14b, %al
	jne	LBB0_9
## %bb.8:
	movq	_I801_I2C_BLOCK_DATA@GOTPCREL(%rip), %rsi
LBB0_9:
	cmpl	%ebx, %ecx
	cmoveq	%rsi, %rdx
	movl	(%rdx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_FEATURE_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_10
## %bb.25:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movl	$0, %ebx
	cmpb	%r14b, %al
	sete	%dl
	movl	%edx, 4(%r13)
	jne	LBB0_27
## %bb.26:
	movq	_SMBHSTCNT_LAST_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_27:
	cmpl	$1, %r12d
	cmovnel	%ecx, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_SMBHSTCNT_INTREN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, 8(%r13)
	movl	%r12d, 12(%r13)
	movq	$0, 48(%r13)
	movq	(%r15), %rax
	addq	$4, %rax
	movq	%rax, 16(%r13)
	movq	_SMBHSTCNT_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMBHSTCNT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movl	24(%r13), %ebx
	movl	40(%r13), %edi
	movl	56(%r13), %edx
	movl	%ebx, %esi
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	32(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_29:
	movl	$0, 24(%r13)
	movq	%r13, %rdi
	movl	%ebx, %esi
	jmp	LBB0_40
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_38
## %bb.11:
	movl	$1, %ebx
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpb	%r14b, %al
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_SMBHSTCNT_LAST_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r12d, %eax
	cmpq	%rax, %rbx
	cmovel	%edx, %ecx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	orl	%ecx, %r15d
	movq	%r13, %rdi
	callq	_SMBHSTCNT
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	%rbx, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	$1, %rbx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_SMBHSTCNT
	movl	%eax, %edi
	callq	_inb
	movl	%eax, %ebx
	movq	_SMBHSTCNT_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMBHSTCNT
	movl	%ebx, %edi
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %esi
	callq	_outb_p
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_i801_wait_byte_done
	testl	%eax, %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_39
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmpq	$1, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_31
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	%r14b, %al
	jne	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_I2C_SMBUS_I2C_BLOCK_DATA@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	je	LBB0_31
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_SMBHSTDAT0
	movl	%eax, %edi
	callq	_inb_p
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_22
## %bb.30:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rax
	movl	%r12d, (%rax)
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
LBB0_31:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r12d, %r13d
	cmpb	%r14b, %al
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SMBBLKDAT
	movl	%eax, %edi
	callq	_inb_p
	movq	(%rbx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %r12
	movslq	%r13d, %r15
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r15, %rbx
	jge	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r12), %rax
	movl	4(%rax,%rbx,4), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SMBBLKDAT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
LBB0_36:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_SMBHSTSTS_BYTE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SMBHSTSTS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
	cmpq	%r15, %rbx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jge	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %r12d
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	incq	%rbx
	jmp	LBB0_12
LBB0_38:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_i801_wait_intr
LBB0_39:
	movq	%r13, %rdi
	movl	%eax, %esi
LBB0_40:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i801_check_post                ## TAILCALL
LBB0_22:
	movq	32(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_SMBHSTSTS
	movl	%eax, %edi
	callq	_inb_p
	movq	_SMBHSTSTS_HOST_BUSY@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	movq	_SMBHSTSTS_BYTE_DONE@GOTPCREL(%rip), %r15
	je	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	movq	%r13, %rdi
	callq	_SMBHSTSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	%r13, %rdi
	callq	_SMBHSTSTS
	movl	%eax, %edi
	callq	_inb_p
	testl	%eax, (%r14)
	jne	LBB0_23
LBB0_24:
	movq	_SMBHSTSTS_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMBHSTSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_BLOCK_PROC_CALL,4,2  ## @I2C_SMBUS_BLOCK_PROC_CALL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_I2C_BLOCK_DATA,4,2   ## @I2C_SMBUS_I2C_BLOCK_DATA
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_I801_I2C_BLOCK_DATA,4,2        ## @I801_I2C_BLOCK_DATA
	.comm	_I801_BLOCK_DATA,4,2            ## @I801_BLOCK_DATA
	.comm	_FEATURE_IRQ,4,2                ## @FEATURE_IRQ
	.comm	_SMBHSTCNT_LAST_BYTE,4,2        ## @SMBHSTCNT_LAST_BYTE
	.comm	_SMBHSTCNT_INTREN,4,2           ## @SMBHSTCNT_INTREN
	.comm	_SMBHSTCNT_START,4,2            ## @SMBHSTCNT_START
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for interrupt!\n"

	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Illegal SMBus block read size %d\n"

	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ## @SMBHSTSTS_HOST_BUSY
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ## @SMBHSTSTS_BYTE_DONE
	.comm	_SMBHSTSTS_INTR,4,2             ## @SMBHSTSTS_INTR
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_i801_block_transaction_byte_by_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i801_block_transaction_byte_by_byte
_i801_block_transaction_byte_by_byte:   ; @i801_block_transaction_byte_by_byte
	.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
Lloh0:
	adrp	x8, _I2C_SMBUS_BLOCK_PROC_CALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_PROC_CALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_i801_check_pre
	tbnz	w0, #31, LBB0_10
; %bb.4:
	and	w25, w22, #0xff
	ldr	x8, [x20]
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_SMBHSTDAT0
	mov	x1, x0
	mov	x0, x22
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w23, [x8, #4]
	mov	x0, x19
	bl	_SMBBLKDAT
	mov	x1, x0
	mov	x0, x23
	bl	_outb_p
LBB0_6:
Lloh7:
	adrp	x8, _I2C_SMBUS_I2C_BLOCK_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_SMBUS_I2C_BLOCK_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
Lloh10:
	adrp	x27, _I2C_SMBUS_READ@GOTPAGE
Lloh11:
	ldr	x27, [x27, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x27]
	cmp	w8, w25
	ccmp	w9, w21, #0, eq
Lloh12:
	adrp	x9, _I801_I2C_BLOCK_DATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I801_I2C_BLOCK_DATA@GOTPAGEOFF]
Lloh14:
	adrp	x10, _I801_BLOCK_DATA@GOTPAGE
Lloh15:
	ldr	x10, [x10, _I801_BLOCK_DATA@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w23, [x9]
	ldr	w9, [x19]
Lloh16:
	adrp	x10, _FEATURE_IRQ@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FEATURE_IRQ@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, w25
	cset	w8, eq
	ccmp	w22, #1, #0, eq
Lloh19:
	adrp	x9, _SMBHSTCNT_LAST_BYTE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SMBHSTCNT_LAST_BYTE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	csel	w9, wzr, w9, ne
	orr	w9, w9, w23
Lloh22:
	adrp	x10, _SMBHSTCNT_INTREN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SMBHSTCNT_INTREN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w8, w9, [x19, #4]
	str	w22, [x19, #12]
	str	xzr, [x19, #48]
	ldr	x8, [x20]
	add	x8, x8, #4
	str	x8, [x19, #16]
Lloh25:
	adrp	x8, _SMBHSTCNT_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SMBHSTCNT_START@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	ldr	w0, [x19, #40]
	ldr	w20, [x19, #24]
	ldr	w2, [x19, #56]
	mov	x1, x20
	bl	_wait_event_timeout
	cbnz	w0, LBB0_9
; %bb.8:
Lloh28:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #32]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_9:
	str	wzr, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_29
LBB0_10:
	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
LBB0_11:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_27
; %bb.12:
	mov	x26, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x28, x26, #1
	mov	w9, w22
	cmp	w8, w25
	ccmp	x28, x9, #0, eq
Lloh33:
	adrp	x8, _SMBHSTCNT_LAST_BYTE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SMBHSTCNT_LAST_BYTE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w23, w8, w23
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x23
	bl	_outb_p
	cbnz	x26, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_SMBHSTCNT
	bl	_inb
Lloh36:
	adrp	x8, _SMBHSTCNT_START@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SMBHSTCNT_START@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w24, w8, w0
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x24
	bl	_outb_p
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_i801_wait_byte_done
	cbnz	w0, LBB0_28
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x27]
	cbnz	x26, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh39:
	adrp	x9, _I2C_SMBUS_I2C_BLOCK_DATA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _I2C_SMBUS_I2C_BLOCK_DATA@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w8, w25
	ccmp	w9, w21, #4, eq
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_SMBHSTDAT0
	bl	_inb_p
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh42:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh43:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w22, w8
	b.gt	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	w22, [x8]
	ldrb	w8, [x27]
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x27
	cmp	w8, w25
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_SMBBLKDAT
	bl	_inb_p
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x8, x8, x26, lsl #2
	str	w0, [x8, #4]
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh45:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	sxtw	x27, w22
	cmp	w8, w25
	ccmp	x28, x27, #0, eq
	b.ge	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x8, x8, x26, lsl #2
	ldr	w24, [x8, #8]
	mov	x0, x19
	bl	_SMBBLKDAT
	mov	x1, x0
	mov	x0, x24
	bl	_outb_p
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh47:
	adrp	x8, _SMBHSTSTS_BYTE_DONE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SMBHSTSTS_BYTE_DONE@GOTPAGEOFF]
Lloh49:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x24
	bl	_outb_p
	cmp	x28, x27
	b.ge	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x20
	ldrb	w8, [x20]
	add	x26, x26, #1
	b	LBB0_13
LBB0_27:
	mov	x0, x19
	bl	_i801_wait_intr
LBB0_28:
	mov	x1, x0
	mov	x0, x19
LBB0_29:
	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	_i801_check_post
LBB0_30:
	ldr	x0, [x19, #32]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	mov	x0, x19
	bl	_SMBHSTSTS
	bl	_inb_p
Lloh52:
	adrp	x21, _SMBHSTSTS_HOST_BUSY@GOTPAGE
Lloh53:
	ldr	x21, [x21, _SMBHSTSTS_HOST_BUSY@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
Lloh54:
	adrp	x22, _SMBHSTSTS_BYTE_DONE@GOTPAGE
Lloh55:
	ldr	x22, [x22, _SMBHSTSTS_BYTE_DONE@GOTPAGEOFF]
	b.eq	LBB0_32
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x22]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	mov	x0, x19
	bl	_SMBHSTSTS
	bl	_inb_p
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_31
LBB0_32:
Lloh56:
	adrp	x8, _SMBHSTSTS_INTR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SMBHSTSTS_INTR@GOTPAGEOFF]
Lloh58:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
Lloh59:
	adrp	x8, _EPROTO@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_PROC_CALL,4,2  ; @I2C_SMBUS_BLOCK_PROC_CALL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_I2C_BLOCK_DATA,4,2   ; @I2C_SMBUS_I2C_BLOCK_DATA
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_I801_I2C_BLOCK_DATA,4,2        ; @I801_I2C_BLOCK_DATA
	.comm	_I801_BLOCK_DATA,4,2            ; @I801_BLOCK_DATA
	.comm	_FEATURE_IRQ,4,2                ; @FEATURE_IRQ
	.comm	_SMBHSTCNT_LAST_BYTE,4,2        ; @SMBHSTCNT_LAST_BYTE
	.comm	_SMBHSTCNT_INTREN,4,2           ; @SMBHSTCNT_INTREN
	.comm	_SMBHSTCNT_START,4,2            ; @SMBHSTCNT_START
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for interrupt!\n"

	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Illegal SMBus block read size %d\n"

	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ; @SMBHSTSTS_HOST_BUSY
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ; @SMBHSTSTS_BYTE_DONE
	.comm	_SMBHSTSTS_INTR,4,2             ; @SMBHSTSTS_INTR
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_i801_block_transaction_byte_by_byte
.subsections_via_symbols
