	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_isr_byte_done
_i801_isr_byte_done:                    ## @i801_isr_byte_done
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	$0, 32(%rdi)
	je	LBB0_13
## %bb.1:
	movl	(%r15), %eax
	andl	$28, %eax
	movq	_I801_BLOCK_DATA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.2:
	cmpl	$0, 4(%r15)
	jne	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	_SMBHSTDAT0
	movl	%eax, %edi
	callq	_inb_p
	movl	%eax, 8(%r15)
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rbx
	movq	24(%r15), %rdi
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	cmpl	(%rbx), %eax
	jg	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %eax
	jmp	LBB0_7
LBB0_13:
	movslq	4(%r15), %rax
	movl	8(%r15), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_16
## %bb.14:
	movq	16(%r15), %rcx
	leaq	1(%rax), %rdx
	movl	%edx, 4(%r15)
	movl	4(%rcx,%rax,4), %r14d
	movq	%r15, %rdi
	callq	_SMBBLKDAT
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%rbx), %eax
	movl	%eax, 8(%r15)
LBB0_7:
	movq	16(%r15), %rcx
	movl	%eax, -4(%rcx)
LBB0_8:
	movl	4(%r15), %eax
	cmpl	8(%r15), %eax
	jge	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_SMBBLKDAT
	movl	%eax, %edi
	callq	_inb
	movq	16(%r15), %rcx
	movslq	4(%r15), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%r15)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_11
LBB0_10:
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_11:
	movl	8(%r15), %eax
	decl	%eax
	cmpl	%eax, 4(%r15)
	jne	LBB0_16
## %bb.12:
	movq	_SMBHSTCNT_LAST_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%r15), %r14d
	movq	%r15, %rdi
	callq	_SMBHSTCNT
LBB0_15:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
LBB0_16:
	movq	_SMBHSTSTS_BYTE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb_p                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I801_BLOCK_DATA,4,2            ## @I801_BLOCK_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal SMBus block read size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SMBus block read size is %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Discarding extra byte on block read\n"

	.comm	_SMBHSTCNT_LAST_BYTE,4,2        ## @SMBHSTCNT_LAST_BYTE
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ## @SMBHSTSTS_BYTE_DONE
	.no_dead_strip	_i801_isr_byte_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i801_isr_byte_done
_i801_isr_byte_done:                    ; @i801_isr_byte_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	and	w8, w8, #0x1c
Lloh0:
	adrp	x9, _I801_BLOCK_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I801_BLOCK_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.2:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_SMBHSTDAT0
	bl	_inb_p
	mov	x2, x0
	str	w0, [x19, #8]
Lloh3:
	adrp	x20, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
	ldr	x0, [x19, #24]
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	cmp	w2, w8
	b.gt	LBB0_8
; %bb.5:
	str	x2, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	b	LBB0_9
LBB0_6:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.7:
	ldr	x9, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w20, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_SMBBLKDAT
	b	LBB0_15
LBB0_8:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
	ldr	w8, [x20]
	str	w8, [x19, #8]
LBB0_9:
	ldr	x9, [x19, #16]
	stur	w8, [x9, #-4]
LBB0_10:
	ldp	w8, w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_SMBBLKDAT
	bl	_inb
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	add	w10, w9, #1
	str	w10, [x19, #4]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_13
LBB0_12:
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_13:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.14:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _SMBHSTCNT_LAST_BYTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMBHSTCNT_LAST_BYTE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_SMBHSTCNT
LBB0_15:
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
LBB0_16:
Lloh14:
	adrp	x8, _SMBHSTSTS_BYTE_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMBHSTSTS_BYTE_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_outb_p
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I801_BLOCK_DATA,4,2            ; @I801_BLOCK_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal SMBus block read size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SMBus block read size is %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Discarding extra byte on block read\n"

	.comm	_SMBHSTCNT_LAST_BYTE,4,2        ; @SMBHSTCNT_LAST_BYTE
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ; @SMBHSTSTS_BYTE_DONE
	.no_dead_strip	_i801_isr_byte_done
.subsections_via_symbols
