	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali1535_access
_ali1535_access:                        ## @ali1535_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_SMBHSTSTS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inb_p
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%r12d, %r12d
	movq	_ALI1535_STS_IDLE@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%r13)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r14), %edi
	callq	_inb_p
	incl	%r12d
	cmpl	(%r15), %r12d
	jl	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_warn
LBB0_6:
	movl	(%r14), %esi
	movl	$255, %edi
	callq	_outb_p
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_10
## %bb.7:
	movq	16(%rbp), %r13
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	andl	$127, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rcx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTTYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$133, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$133, %edi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_29
## %bb.9:
	movzbl	(%r13), %edi
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movzbl	1(%r13), %edi
	movl	$133, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SMBHSTDAT1@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_41
LBB0_11:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	andl	$127, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rcx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_ALI1535_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMBHSTTYP@GOTPCREL(%rip), %rax
	movl	%edi, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_12:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	andl	$127, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rcx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTTYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$134, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$134, %edi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_29
## %bb.13:
	movl	(%r13), %edi
	movl	$134, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	andl	$127, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rcx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTTYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$135, %edi
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	jne	LBB0_20
## %bb.15:
	movl	$135, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-68(%rbp), %edi                 ## 4-byte Reload
LBB0_16:
	movl	(%rax), %esi
	callq	_outb_p
	jmp	LBB0_29
LBB0_17:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	andl	$127, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rcx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTTYP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$136, %edi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	jne	LBB0_21
## %bb.18:
	movq	(%r13), %rax
	movl	(%rax), %r15d
	movl	$136, %ecx
	testl	%r15d, %r15d
	js	LBB0_23
## %bb.19:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$32, %ecx
	cmpl	$33, %r15d
	jae	LBB0_24
	jmp	LBB0_25
LBB0_20:
	movl	$135, %eax
	jmp	LBB0_22
LBB0_21:
	movl	$136, %eax
LBB0_22:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_23:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
LBB0_24:
	movl	%ecx, (%rax)
	movl	%ecx, %r15d
LBB0_25:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_outb_p
	movl	(%r14), %edi
	callq	_inb_p
	movq	_ALI1535_BLOCK_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_outb_p
	testl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_29
## %bb.26:
	incl	%r15d
	movl	$1, %ebx
	movq	_SMBBLKDAT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %esi
	callq	_outb_p
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_27
## %bb.28:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_29:
	movq	%r12, %rdi
	callq	_ali1535_transaction
	movq	%r12, %r14
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_41
## %bb.30:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpb	%bl, (%rax)
	je	LBB0_41
## %bb.31:
	movq	_ALI1535_QUICK@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_41
## %bb.32:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	$-133, %ecx
	cmpl	$3, %ecx
	ja	LBB0_40
## %bb.33:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_34:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	jmp	LBB0_36
LBB0_35:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	movl	%eax, %ebx
	movq	_SMBHSTDAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	shll	$8, %eax
	addl	%ebx, %eax
LBB0_36:
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_40:
	xorl	%r12d, %r12d
LBB0_41:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	cmpl	$32, %eax
	movl	$32, %r15d
	cmovll	%eax, %r15d
	movq	16(%rbp), %rbx
	movq	(%rbx), %rax
	movl	%r15d, (%rax)
	movq	_SMBHSTTYP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_inb_p
	movq	_ALI1535_BLOCK_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_40
## %bb.38:
	movl	$1, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	_SMBBLKDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	movq	16(%rbp), %r13
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %r8d
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	leaq	1(%rbx), %rax
	movq	(%r13), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_39
	jmp	LBB0_41
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_17
.set L0_1_set_35, LBB0_35-LJTI0_1
.set L0_1_set_34, LBB0_34-LJTI0_1
.set L0_1_set_37, LBB0_37-LJTI0_1
LJTI0_1:
	.long	L0_1_set_35
	.long	L0_1_set_34
	.long	L0_1_set_34
	.long	L0_1_set_37
	.end_data_region
                                        ## -- End function
	.comm	_SMBHSTSTS,4,2                  ## @SMBHSTSTS
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
	.comm	_ALI1535_STS_IDLE,4,2           ## @ALI1535_STS_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Idle wait Timeout! STS=0x%02x\n"

	.comm	_SMBHSTADD,4,2                  ## @SMBHSTADD
	.comm	_ALI1535_QUICK,4,2              ## @ALI1535_QUICK
	.comm	_SMBHSTTYP,4,2                  ## @SMBHSTTYP
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_SMBHSTCMD,4,2                  ## @SMBHSTCMD
	.comm	_SMBHSTDAT0,4,2                 ## @SMBHSTDAT0
	.comm	_SMBHSTDAT1,4,2                 ## @SMBHSTDAT1
	.comm	_ALI1535_BLOCK_CLR,4,2          ## @ALI1535_BLOCK_CLR
	.comm	_SMBBLKDAT,4,2                  ## @SMBBLKDAT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"Blk: len=%d, i=%d, data=%02x\n"

	.no_dead_strip	_ali1535_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali1535_access
_ali1535_access:                        ; @ali1535_access
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x6
	mov	x23, x5
	mov	x21, x4
	mov	x24, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _SMBHSTSTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SMBHSTSTS@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_inb_p
	mov	x2, x0
Lloh2:
	adrp	x26, _MAX_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w27, #0
Lloh4:
	adrp	x28, _ALI1535_STS_IDLE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ALI1535_STS_IDLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	tst	w8, w2
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x25]
	bl	_inb_p
	mov	x2, x0
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_2
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_5:
	ldr	w1, [x25]
	mov	w0, #255
	bl	_outb_p
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.6:
	and	w23, w24, #0xff
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	and	w0, w23, #0x1
	bfi	w0, w22, #1, #7
Lloh10:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_outb_p
Lloh13:
	adrp	x8, _SMBHSTTYP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMBHSTTYP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w22, #133
	mov	w0, #133
	bl	_outb_p
Lloh16:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh19:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.8:
	ldrb	w0, [x19]
Lloh21:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_outb_p
	ldrb	w21, [x19, #1]
	mov	w22, #133
Lloh24:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_warn
Lloh28:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_36
LBB0_10:
	and	w0, w23, #0x1
	bfi	w0, w22, #1, #7
Lloh31:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_outb_p
Lloh34:
	adrp	x8, _ALI1535_QUICK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ALI1535_QUICK@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
Lloh37:
	adrp	x8, _SMBHSTTYP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SMBHSTTYP@GOTPAGEOFF]
	mov	x22, x21
	b	LBB0_15
LBB0_11:
	and	w0, w23, #0x1
	bfi	w0, w22, #1, #7
Lloh39:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_outb_p
Lloh42:
	adrp	x8, _SMBHSTTYP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SMBHSTTYP@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	w22, #134
	mov	w0, #134
	bl	_outb_p
Lloh45:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh48:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.12:
	ldr	w21, [x19]
	mov	w22, #134
Lloh50:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	and	w0, w23, #0x1
	bfi	w0, w22, #1, #7
Lloh52:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	bl	_outb_p
Lloh55:
	adrp	x8, _SMBHSTTYP@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SMBHSTTYP@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	w22, #135
	mov	w0, #135
	bl	_outb_p
Lloh58:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.14:
Lloh60:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
LBB0_16:
	mov	x0, x20
	bl	_ali1535_transaction
	cbnz	x0, LBB0_36
; %bb.17:
Lloh62:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh64:
	adrp	x9, _ALI1535_QUICK@GOTPAGE
Lloh65:
	ldr	x9, [x9, _ALI1535_QUICK@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	cmp	w8, w23
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_23
LBB0_18:
	mov	x0, #0
	b	LBB0_36
LBB0_19:
	and	w0, w23, #0x1
	bfi	w0, w22, #1, #7
Lloh67:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	bl	_outb_p
Lloh70:
	adrp	x24, _SMBHSTTYP@GOTPAGE
Lloh71:
	ldr	x24, [x24, _SMBHSTTYP@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w22, #136
	mov	w0, #136
	bl	_outb_p
Lloh72:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh75:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.20:
	ldr	x8, [x19]
	ldr	w21, [x8]
	tbnz	w21, #31, LBB0_26
; %bb.21:
	cmp	w21, #33
	b.lo	LBB0_28
; %bb.22:
	mov	w21, #32
	b	LBB0_27
LBB0_23:
	sub	w8, w22, #133
	cmp	w8, #3
	b.hi	LBB0_18
; %bb.24:
Lloh77:
	adrp	x9, lJTI0_1@PAGE
Lloh78:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_25
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:
Lloh79:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh80:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x8, x0
	mov	x0, #0
	str	w8, [x19]
	b	LBB0_36
LBB0_26:
	mov	w21, #0
LBB0_27:
	str	w21, [x8]
LBB0_28:
Lloh82:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh83:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
	ldr	w0, [x24]
	bl	_inb_p
Lloh85:
	adrp	x8, _ALI1535_BLOCK_CLR@GOTPAGE
Lloh86:
	ldr	x8, [x8, _ALI1535_BLOCK_CLR@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x24]
	bl	_outb_p
	cbz	w21, LBB0_31
; %bb.29:
	add	w21, w21, #1
	mov	w22, #1
Lloh88:
	adrp	x24, _SMBBLKDAT@GOTPAGE
Lloh89:
	ldr	x24, [x24, _SMBBLKDAT@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x24]
	bl	_outb_p
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_30
LBB0_31:
	mov	w22, #136
	b	LBB0_16
LBB0_32:
Lloh90:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh91:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x20, x0
Lloh93:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh94:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x8, x0
	mov	x0, #0
	add	w8, w20, w8, lsl #8
	str	w8, [x19]
	b	LBB0_36
LBB0_33:
Lloh96:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh97:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	bl	_inb_p
	mov	w8, #32
	cmp	w0, #32
	csel	w21, w0, w8, lt
	ldr	x8, [x19]
	str	w21, [x8]
Lloh99:
	adrp	x22, _SMBHSTTYP@GOTPAGE
Lloh100:
	ldr	x22, [x22, _SMBHSTTYP@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_inb_p
Lloh101:
	adrp	x8, _ALI1535_BLOCK_CLR@GOTPAGE
Lloh102:
	ldr	x8, [x8, _ALI1535_BLOCK_CLR@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x22]
	bl	_outb_p
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.34:
	mov	w22, #1
Lloh104:
	adrp	x24, _SMBBLKDAT@GOTPAGE
Lloh105:
	ldr	x24, [x24, _SMBBLKDAT@GOTPAGEOFF]
Lloh106:
	adrp	x23, l_.str.2@PAGE
Lloh107:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_inb_p
	ldr	x8, [x19]
	lsl	x9, x22, #2
	str	w0, [x8, x9]
	ldr	x8, [x19]
	ldr	w4, [x8, x9]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
	mov	x0, #0
	add	x8, x22, #1
	ldr	x9, [x19]
	ldrsw	x9, [x9]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_35
LBB0_36:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh104, Lloh105
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_32-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_33-LBB0_25)>>2
                                        ; -- End function
	.comm	_SMBHSTSTS,4,2                  ; @SMBHSTSTS
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
	.comm	_ALI1535_STS_IDLE,4,2           ; @ALI1535_STS_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Idle wait Timeout! STS=0x%02x\n"

	.comm	_SMBHSTADD,4,2                  ; @SMBHSTADD
	.comm	_ALI1535_QUICK,4,2              ; @ALI1535_QUICK
	.comm	_SMBHSTTYP,4,2                  ; @SMBHSTTYP
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_SMBHSTCMD,4,2                  ; @SMBHSTCMD
	.comm	_SMBHSTDAT0,4,2                 ; @SMBHSTDAT0
	.comm	_SMBHSTDAT1,4,2                 ; @SMBHSTDAT1
	.comm	_ALI1535_BLOCK_CLR,4,2          ; @ALI1535_BLOCK_CLR
	.comm	_SMBBLKDAT,4,2                  ; @SMBBLKDAT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"Blk: len=%d, i=%d, data=%02x\n"

	.no_dead_strip	_ali1535_access
.subsections_via_symbols
