	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali15x3_access
_ali15x3_access:                        ## @ali15x3_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
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_SMBHSTSTS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$255, %edi
	callq	_outb_p
	movl	(%r14), %edi
	callq	_inb_p
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%r12d, %r12d
	movq	_ALI15X3_STS_IDLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r14), %edi
	callq	_inb_p
	incl	%r12d
	cmpl	(%r15), %r12d
	jl	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
LBB0_5:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_24
## %bb.6:
	movq	16(%rbp), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	andl	$127, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rbx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$133, %r13d
	cmpb	%r15b, (%rax)
	jne	LBB0_26
## %bb.14:
	movzbl	(%r12), %edi
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movzbl	1(%r12), %edi
	movq	_SMBHSTDAT1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_24:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_38
LBB0_25:
	andl	$127, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rbx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_ALI15X3_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_26
LBB0_9:
	andl	$127, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rbx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$134, %r13d
	cmpb	%r15b, (%rax)
	jne	LBB0_26
## %bb.10:
	movl	(%r12), %edi
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_outb_p
	jmp	LBB0_26
LBB0_7:
	andl	$127, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rbx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$135, %r13d
	cmpb	%r15b, (%rax)
	jne	LBB0_26
## %bb.8:
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	jmp	LBB0_26
LBB0_15:
	andl	$127, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rbx,2), %edi
	movq	_SMBHSTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_SMBHSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$136, %r13d
	cmpb	%r15b, (%rax)
	jne	LBB0_26
## %bb.16:
	movq	(%r12), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	js	LBB0_17
## %bb.18:
	movl	$32, %ecx
	cmpl	$33, %r14d
	jae	LBB0_19
	jmp	LBB0_20
LBB0_17:
	xorl	%ecx, %ecx
LBB0_19:
	movl	%ecx, (%rax)
	movl	%ecx, %r14d
LBB0_20:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_outb_p
	movq	_SMBHSTCNT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_inb_p
	movq	_ALI15X3_BLOCK_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_outb_p
	testl	%r14d, %r14d
	je	LBB0_26
## %bb.21:
	incl	%r14d
	movl	$1, %ebx
	movq	_SMBBLKDAT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r15), %esi
	callq	_outb_p
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_22
## %bb.23:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_27
LBB0_26:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_27:
	movq	_SMBHSTCNT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r13d, %edi
	callq	_outb_p
	movq	%r14, %rdi
	callq	_ali15x3_transaction
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_28
LBB0_38:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpb	%r15b, (%rax)
	je	LBB0_38
## %bb.29:
	movq	_ALI15X3_QUICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_38
## %bb.30:
	addl	$-133, %r13d
	cmpl	$3, %r13d
	ja	LBB0_38
## %bb.31:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_32:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	jmp	LBB0_33
LBB0_34:
	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_33:
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_38
LBB0_35:
	movq	_SMBHSTDAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	cmpl	$32, %eax
	movl	$32, %r15d
	cmovll	%eax, %r15d
	movq	16(%rbp), %r13
	movq	(%r13), %rax
	movl	%r15d, (%rax)
	movl	(%rbx), %edi
	callq	_inb_p
	movq	_ALI15X3_BLOCK_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_outb_p
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_38
## %bb.36:
	movq	%r13, %rcx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	_SMBBLKDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	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_37
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_25
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_15
.set L0_1_set_34, LBB0_34-LJTI0_1
.set L0_1_set_32, LBB0_32-LJTI0_1
.set L0_1_set_35, LBB0_35-LJTI0_1
LJTI0_1:
	.long	L0_1_set_34
	.long	L0_1_set_32
	.long	L0_1_set_32
	.long	L0_1_set_35
	.end_data_region
                                        ## -- End function
	.comm	_SMBHSTSTS,4,2                  ## @SMBHSTSTS
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
	.comm	_ALI15X3_STS_IDLE,4,2           ## @ALI15X3_STS_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Idle wait Timeout! STS=0x%02x\n"

	.comm	_SMBHSTADD,4,2                  ## @SMBHSTADD
	.comm	_ALI15X3_QUICK,4,2              ## @ALI15X3_QUICK
	.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	_SMBHSTCNT,4,2                  ## @SMBHSTCNT
	.comm	_ALI15X3_BLOCK_CLR,4,2          ## @ALI15X3_BLOCK_CLR
	.comm	_SMBBLKDAT,4,2                  ## @SMBBLKDAT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported transaction %d\n"

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

	.no_dead_strip	_ali15x3_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali15x3_access
_ali15x3_access:                        ; @ali15x3_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	w1, [x25]
	mov	w0, #255
	bl	_outb_p
	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, _ALI15X3_STS_IDLE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ALI15X3_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, #1
	bl	_msleep
	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_err
LBB0_5:
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.6:
	and	w24, 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
Lloh10:
	adrp	x23, _SMBHSTCNT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SMBHSTCNT@GOTPAGEOFF]
	br	x10
LBB0_7:
	and	w0, w24, #0x1
	bfi	w0, w22, #1, #7
Lloh12:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_outb_p
Lloh15:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh18:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_19
; %bb.8:
	ldrb	w0, [x19]
Lloh20:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_outb_p
	ldrb	w0, [x19, #1]
Lloh23:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_outb_p
	mov	w21, #133
	b	LBB0_28
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	w8, [x8]
	neg	w0, w8
	b	LBB0_38
LBB0_10:
	and	w0, w24, #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, _ALI15X3_QUICK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ALI15X3_QUICK@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	b	LBB0_28
LBB0_11:
	and	w0, w24, #0x1
	bfi	w0, w22, #1, #7
Lloh37:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_outb_p
Lloh40:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh43:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_20
; %bb.12:
	ldr	w0, [x19]
Lloh45:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_outb_p
	mov	w21, #134
	b	LBB0_28
LBB0_13:
	and	w0, w24, #0x1
	bfi	w0, w22, #1, #7
Lloh48:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_outb_p
Lloh51:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_21
; %bb.14:
Lloh53:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
	mov	w21, #135
	b	LBB0_28
LBB0_15:
	and	w0, w24, #0x1
	bfi	w0, w22, #1, #7
Lloh56:
	adrp	x8, _SMBHSTADD@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SMBHSTADD@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	bl	_outb_p
Lloh59:
	adrp	x8, _SMBHSTCMD@GOTPAGE
Lloh60:
	ldr	x8, [x8, _SMBHSTCMD@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
Lloh62:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_27
; %bb.16:
	ldr	x8, [x19]
	ldr	w21, [x8]
	tbnz	w21, #31, LBB0_22
; %bb.17:
	cmp	w21, #33
	b.lo	LBB0_24
; %bb.18:
	mov	w21, #32
	b	LBB0_23
LBB0_19:
	mov	w21, #133
	b	LBB0_28
LBB0_20:
	mov	w21, #134
	b	LBB0_28
LBB0_21:
	mov	w21, #135
	b	LBB0_28
LBB0_22:
	mov	w21, #0
LBB0_23:
	str	w21, [x8]
LBB0_24:
Lloh64:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outb_p
	ldr	w0, [x23]
	bl	_inb_p
Lloh67:
	adrp	x8, _ALI15X3_BLOCK_CLR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ALI15X3_BLOCK_CLR@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x23]
	bl	_outb_p
	cbz	w21, LBB0_27
; %bb.25:
	add	w21, w21, #1
	mov	w22, #1
Lloh70:
	adrp	x25, _SMBBLKDAT@GOTPAGE
Lloh71:
	ldr	x25, [x25, _SMBBLKDAT@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x25]
	bl	_outb_p
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_26
LBB0_27:
	mov	w21, #136
LBB0_28:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_outb_p
	mov	x0, x20
	bl	_ali15x3_transaction
	cbnz	w0, LBB0_38
; %bb.29:
Lloh72:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh74:
	adrp	x9, _ALI15X3_QUICK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _ALI15X3_QUICK@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	cmp	w8, w24
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_31
LBB0_30:
	mov	w0, #0
	b	LBB0_38
LBB0_31:
	sub	w8, w21, #133
	cmp	w8, #3
	b.hi	LBB0_30
; %bb.32:
Lloh77:
	adrp	x9, lJTI0_1@PAGE
Lloh78:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_33
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_33:
Lloh79:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh80:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_38
LBB0_34:
Lloh82:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh83:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x20, x0
Lloh85:
	adrp	x8, _SMBHSTDAT1@GOTPAGE
Lloh86:
	ldr	x8, [x8, _SMBHSTDAT1@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	bl	_inb_p
	mov	x8, x0
	mov	w0, #0
	add	w8, w20, w8, lsl #8
	str	w8, [x19]
	b	LBB0_38
LBB0_35:
Lloh88:
	adrp	x8, _SMBHSTDAT0@GOTPAGE
Lloh89:
	ldr	x8, [x8, _SMBHSTDAT0@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x8]
	bl	_inb_p
	mov	w8, #32
	cmp	w0, #32
	csel	w21, w0, w8, lt
	ldr	x8, [x19]
	str	w21, [x8]
	ldr	w0, [x23]
	bl	_inb_p
Lloh91:
	adrp	x8, _ALI15X3_BLOCK_CLR@GOTPAGE
Lloh92:
	ldr	x8, [x8, _ALI15X3_BLOCK_CLR@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x23]
	bl	_outb_p
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.36:
	mov	w22, #1
Lloh94:
	adrp	x24, _SMBBLKDAT@GOTPAGE
Lloh95:
	ldr	x24, [x24, _SMBBLKDAT@GOTPAGEOFF]
Lloh96:
	adrp	x23, l_.str.2@PAGE
Lloh97:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_37:                                ; =>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	w0, #0
	add	x8, x22, #1
	ldr	x9, [x19]
	ldrsw	x9, [x9]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_37
LBB0_38:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.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_15-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_34-LBB0_33)>>2
	.byte	(LBB0_33-LBB0_33)>>2
	.byte	(LBB0_33-LBB0_33)>>2
	.byte	(LBB0_35-LBB0_33)>>2
                                        ; -- End function
	.comm	_SMBHSTSTS,4,2                  ; @SMBHSTSTS
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
	.comm	_ALI15X3_STS_IDLE,4,2           ; @ALI15X3_STS_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Idle wait Timeout! STS=0x%02x\n"

	.comm	_SMBHSTADD,4,2                  ; @SMBHSTADD
	.comm	_ALI15X3_QUICK,4,2              ; @ALI15X3_QUICK
	.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	_SMBHSTCNT,4,2                  ; @SMBHSTCNT
	.comm	_ALI15X3_BLOCK_CLR,4,2          ; @ALI15X3_BLOCK_CLR
	.comm	_SMBBLKDAT,4,2                  ; @SMBBLKDAT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported transaction %d\n"

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

	.no_dead_strip	_ali15x3_access
.subsections_via_symbols
