	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis96x_access
_sis96x_access:                         ## @sis96x_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	leal	-132(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	16(%rbp), %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_SMB_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$127, %esi
	movl	%r14d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rsi,2), %esi
	callq	_sis96x_write
	movq	_SMB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_sis96x_write
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_SMB_BYTE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movzbl	(%rbx), %esi
	callq	_sis96x_write
	movl	(%r15), %edi
	incl	%edi
	movzbl	1(%rbx), %esi
	callq	_sis96x_write
LBB0_4:
	xorl	%r13d, %r13d
	cmpl	$134, %r12d
	sete	%r13b
	orl	$128, %r13d
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movq	_SMB_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$127, %esi
	movl	%r14d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rsi,2), %esi
	callq	_sis96x_write
	movq	_SIS96x_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_12
LBB0_7:
	movq	_SMB_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$127, %esi
	movl	%r14d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rsi,2), %esi
	callq	_sis96x_write
	movq	_SMB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_sis96x_write
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$130, %r13d
	cmpb	%r14b, (%rax)
	jne	LBB0_12
## %bb.8:
	movq	_SMB_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbp), %rax
	movl	(%rax), %esi
	jmp	LBB0_11
LBB0_9:
	movq	_SMB_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$127, %esi
	movl	%r14d, %eax
	andb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rsi,2), %esi
	callq	_sis96x_write
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$131, %r13d
	cmpb	%r14b, (%rax)
	jne	LBB0_12
## %bb.10:
	movq	_SMB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
LBB0_11:
	callq	_sis96x_write
LBB0_12:
	movl	%r13d, %edi
	callq	_sis96x_transaction
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	cmpl	$129, %r13d
	jne	LBB0_16
LBB0_14:
	movq	_SMB_BYTE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_sis96x_read
	movl	%eax, %ebx
	movl	(%r14), %edi
	incl	%edi
	callq	_sis96x_read
	shll	$8, %eax
	addl	%ebx, %eax
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpb	%r14b, (%rax)
	je	LBB0_15
## %bb.17:
	movq	_SIS96x_QUICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_15
## %bb.18:
	leal	-130(%r13), %eax
	cmpl	$2, %eax
	jae	LBB0_20
## %bb.19:
	movq	_SMB_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sis96x_read
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_20:
	cmpl	$128, %r13d
	je	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_SMB_ADDR,4,2                   ## @SMB_ADDR
	.comm	_SIS96x_QUICK,4,2               ## @SIS96x_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_SMB_CMD,4,2                    ## @SMB_CMD
	.comm	_SMB_BYTE,4,2                   ## @SMB_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_sis96x_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis96x_access
_sis96x_access:                         ; @sis96x_access
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x5
	sub	w8, w5, #132
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x6
	mov	x20, x4
	and	w22, w3, #0xff
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _SMB_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMB_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	and	w8, w22, #0x1
	bfi	w8, w1, #1, #7
	mov	x1, x8
	bl	_sis96x_write
Lloh5:
	adrp	x8, _SMB_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMB_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sis96x_write
Lloh8:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x20, _SMB_BYTE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SMB_BYTE@GOTPAGEOFF]
	ldr	w0, [x20]
	ldrb	w1, [x19]
	bl	_sis96x_write
	ldr	w8, [x20]
	add	w0, w8, #1
	ldrb	w1, [x19, #1]
	bl	_sis96x_write
LBB0_4:
	cmp	w21, #134
	mov	w8, #128
	cinc	w20, w8, eq
	b	LBB0_13
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_6:
Lloh17:
	adrp	x8, _SMB_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMB_ADDR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	and	w8, w22, #0x1
	bfi	w8, w1, #1, #7
	mov	x1, x8
	bl	_sis96x_write
Lloh20:
	adrp	x8, _SIS96x_QUICK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIS96x_QUICK@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_7:
Lloh23:
	adrp	x8, _SMB_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SMB_ADDR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	and	w8, w22, #0x1
	bfi	w8, w1, #1, #7
	mov	x1, x8
	bl	_sis96x_write
Lloh26:
	adrp	x8, _SMB_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SMB_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sis96x_write
Lloh29:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.8:
Lloh31:
	adrp	x8, _SMB_BYTE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SMB_BYTE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_sis96x_write
	mov	w20, #130
	b	LBB0_13
LBB0_9:
Lloh34:
	adrp	x8, _SMB_ADDR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SMB_ADDR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	and	w8, w22, #0x1
	bfi	w8, w1, #1, #7
	mov	x1, x8
	bl	_sis96x_write
Lloh37:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.10:
Lloh39:
	adrp	x8, _SMB_CMD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMB_CMD@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sis96x_write
LBB0_11:
	mov	w20, #131
	b	LBB0_13
LBB0_12:
	mov	w20, #130
LBB0_13:
	mov	x0, x20
	bl	_sis96x_transaction
	cbnz	w0, LBB0_22
; %bb.14:
	cmp	w20, #129
	b.ne	LBB0_17
LBB0_15:
Lloh42:
	adrp	x21, _SMB_BYTE@GOTPAGE
Lloh43:
	ldr	x21, [x21, _SMB_BYTE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_sis96x_read
	mov	x20, x0
	ldr	w8, [x21]
	add	w0, w8, #1
	bl	_sis96x_read
	mov	x8, x0
	mov	w0, #0
	add	w8, w20, w8, lsl #8
LBB0_16:
	str	w8, [x19]
	b	LBB0_22
LBB0_17:
Lloh44:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh46:
	adrp	x9, _SIS96x_QUICK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SIS96x_QUICK@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w22
	ccmp	w20, w9, #4, ne
	b.eq	LBB0_21
; %bb.18:
	sub	w8, w20, #130
	cmp	w8, #2
	b.hs	LBB0_20
; %bb.19:
Lloh49:
	adrp	x8, _SMB_BYTE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SMB_BYTE@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_sis96x_read
	mov	x8, x0
	mov	w0, #0
	b	LBB0_16
LBB0_20:
	cmp	w20, #128
	b.eq	LBB0_15
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_SMB_ADDR,4,2                   ; @SMB_ADDR
	.comm	_SIS96x_QUICK,4,2               ; @SIS96x_QUICK
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_SMB_CMD,4,2                    ; @SMB_CMD
	.comm	_SMB_BYTE,4,2                   ; @SMB_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported transaction %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_sis96x_access
.subsections_via_symbols
