	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_block_transaction_by_block
_i801_block_transaction_by_block:       ## @i801_block_transaction_by_block
	.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	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_SMBHSTCNT
	movl	%eax, %edi
	callq	_inb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpb	%bl, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMBHSTDAT0
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	4(%rax,%r12,4), %r15d
	incq	%r12
	movq	%r13, %rdi
	callq	_SMBBLKDAT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb_p
	cmpq	%r12, %rbx
	jne	LBB0_3
LBB0_4:
	movq	_I801_BLOCK_DATA@GOTPCREL(%rip), %rax
	movq	_ENABLE_INT9@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_I801_PEC_EN@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	imull	(%rax), %esi
	orl	%ecx, %esi
	movq	%r13, %rdi
	callq	_i801_transaction
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	jne	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	callq	_SMBHSTDAT0
	movl	%eax, %edi
	callq	_inb_p
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_8
## %bb.9:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_SMBBLKDAT
	movl	%eax, %edi
	callq	_inb_p
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_I801_BLOCK_DATA,4,2            ## @I801_BLOCK_DATA
	.comm	_ENABLE_INT9,4,2                ## @ENABLE_INT9
	.comm	_I801_PEC_EN,4,2                ## @I801_PEC_EN
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_i801_block_transaction_by_block
.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_by_block
_i801_block_transaction_by_block:       ; @i801_block_transaction_by_block
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	and	w23, w2, #0xff
	bl	_SMBHSTCNT
	bl	_inb_p
Lloh0:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w22, [x8]
	mov	x0, x20
	bl	_SMBHSTDAT0
	mov	x1, x0
	mov	x0, x22
	bl	_outb_p
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	lsl	x25, x22, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x24
	ldr	w22, [x8, #4]
	mov	x0, x20
	bl	_SMBBLKDAT
	mov	x1, x0
	mov	x0, x22
	bl	_outb_p
	add	x24, x24, #4
	cmp	x25, x24
	b.ne	LBB0_3
LBB0_4:
Lloh2:
	adrp	x8, _I801_BLOCK_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I801_BLOCK_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ENABLE_INT9@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENABLE_INT9@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _I801_PEC_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I801_PEC_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mul	w9, w9, w21
	orr	w1, w8, w9
	mov	x0, x20
	bl	_i801_transaction
	cbnz	w0, LBB0_12
; %bb.5:
Lloh11:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_SMBHSTDAT0
	bl	_inb_p
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.7:
Lloh13:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_11
; %bb.8:
	mov	x21, #0
	ldr	x8, [x19]
	str	w0, [x8]
	and	x8, x0, #0xffffffff
	lsl	x22, x8, #2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SMBBLKDAT
	bl	_inb_p
	ldr	x8, [x19]
	add	x8, x8, x21
	str	w0, [x8, #4]
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _EPROTO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_I801_BLOCK_DATA,4,2            ; @I801_BLOCK_DATA
	.comm	_ENABLE_INT9,4,2                ; @ENABLE_INT9
	.comm	_I801_PEC_EN,4,2                ; @I801_PEC_EN
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_i801_block_transaction_by_block
.subsections_via_symbols
