	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_SMBHSTCNT_PEC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_2:
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_16
## %bb.5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_I801_BLOCK_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_I801_BLOCK_PROC_CALL@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r8d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_SMBHSTCNT
	movl	%eax, %edi
	callq	_inb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	cmpb	%r15b, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	(%rbx), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_SMBHSTDAT0
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb_p
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.8:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	4(%rax,%r13,4), %r12d
	incq	%r13
	movq	%r14, %rdi
	callq	_SMBBLKDAT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_outb_p
	cmpq	%r13, %r15
	jne	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_i801_transaction
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	cmpl	$128, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	jne	LBB0_20
LBB0_13:
	movq	%r14, %rdi
	callq	_SMBHSTDAT0
	movl	%eax, %edi
	callq	_inb_p
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_15
## %bb.18:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_SMBBLKDAT
	movl	%eax, %edi
	callq	_inb_p
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBHSTCNT_PEC_EN,4,2           ## @SMBHSTCNT_PEC_EN
	.comm	_I801_BLOCK_PROC_CALL,4,2       ## @I801_BLOCK_PROC_CALL
	.comm	_I801_BLOCK_DATA,4,2            ## @I801_BLOCK_DATA
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.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
Lloh0:
	adrp	x8, _SMBHSTCNT_PEC_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMBHSTCNT_PEC_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w4, #0
	csel	w8, wzr, w8, eq
	cmp	w3, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_16
; %bb.2:
Lloh3:
	adrp	x9, _I801_BLOCK_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I801_BLOCK_DATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x9, _I801_BLOCK_PROC_CALL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I801_BLOCK_PROC_CALL@GOTPAGEOFF]
LBB0_4:
	and	w24, w2, #0xff
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x20
	bl	_SMBHSTCNT
	bl	_inb_p
Lloh7:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	w23, [x8]
	mov	x0, x20
	bl	_SMBHSTDAT0
	mov	x1, x0
	mov	x0, x23
	bl	_outb_p
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x25, #0
	lsl	x26, x23, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x25
	ldr	w23, [x8, #4]
	mov	x0, x20
	bl	_SMBBLKDAT
	mov	x1, x0
	mov	x0, x23
	bl	_outb_p
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	bl	_i801_transaction
	cbnz	w0, LBB0_18
; %bb.9:
	cmp	w21, #128
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_SMBHSTDAT0
	bl	_inb_p
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.12:
Lloh11:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_19
; %bb.13:
	mov	x21, #0
	ldr	x8, [x19]
	str	w0, [x8]
	and	x8, x0, #0xffffffff
	lsl	x22, x8, #2
LBB0_14:                                ; =>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_14
LBB0_15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
LBB0_19:
Lloh16:
	adrp	x8, _EPROTO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBHSTCNT_PEC_EN,4,2           ; @SMBHSTCNT_PEC_EN
	.comm	_I801_BLOCK_PROC_CALL,4,2       ; @I801_BLOCK_PROC_CALL
	.comm	_I801_BLOCK_DATA,4,2            ; @I801_BLOCK_DATA
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.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
