	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis630_transaction_start
_sis630_transaction_start:              ## @sis630_transaction_start
	.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
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_SMB_CNT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_sis630_read
	andl	$3, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_SMBHOST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_sis630_write
	movl	(%r13), %edi
	callq	_sis630_read
	andl	$3, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_4:
	movl	(%r13), %edi
	callq	_sis630_read
	movl	%eax, (%r15)
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_high_clock@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%r13), %edi
	movl	$32, %esi
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	andl	$-65, %esi
LBB0_6:
	callq	_sis630_write
	movq	_SMB_STS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_sis630_read
	movl	(%rbx), %edi
	andl	$30, %eax
	movl	%eax, %esi
	callq	_sis630_write
	movq	_SMBHOST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$7, %r12d
	orl	$16, %r12d
	movl	%r12d, %esi
	callq	_sis630_write
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_CNT,4,2                    ## @SMB_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus busy (%02x).Resetting...\n"

	.comm	_SMBHOST_CNT,4,2                ## @SMBHOST_CNT
L_.str.1:                               ## @.str.1
	.asciz	"Failed! (%02x)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"Successful!\n"

L_.str.3:                               ## @.str.3
	.asciz	"saved clock 0x%02x\n"

	.comm	_high_clock,8,3                 ## @high_clock
	.comm	_SMB_STS,4,2                    ## @SMB_STS
	.no_dead_strip	_sis630_transaction_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis630_transaction_start
_sis630_transaction_start:              ; @sis630_transaction_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _SMB_CNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SMB_CNT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_sis630_read
Lloh2:
	adrp	x22, _SMBHOST_CNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SMBHOST_CNT@GOTPAGEOFF]
	ands	w8, w0, #0x3
	b.eq	LBB0_4
; %bb.1:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w0, [x22]
	mov	w1, #32
	bl	_sis630_write
	ldr	w0, [x23]
	bl	_sis630_read
	ands	w8, w0, #0x3
	b.eq	LBB0_3
; %bb.2:
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_4:
	ldr	w0, [x23]
	bl	_sis630_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x20]
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh15:
	adrp	x8, _high_clock@GOTPAGE
Lloh16:
	ldr	x8, [x8, _high_clock@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w0, [x23]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w1, #32
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
	and	w1, w8, #0xffffffbf
LBB0_7:
	bl	_sis630_write
Lloh18:
	adrp	x20, _SMB_STS@GOTPAGE
Lloh19:
	ldr	x20, [x20, _SMB_STS@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_sis630_read
	ldr	w8, [x20]
	and	w1, w0, #0x1e
	mov	x0, x8
	bl	_sis630_write
	ldr	w0, [x22]
	mov	w1, #16
	bfxil	w1, w19, #0, #3
	bl	_sis630_write
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_CNT,4,2                    ; @SMB_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus busy (%02x).Resetting...\n"

	.comm	_SMBHOST_CNT,4,2                ; @SMBHOST_CNT
l_.str.1:                               ; @.str.1
	.asciz	"Failed! (%02x)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"Successful!\n"

l_.str.3:                               ; @.str.3
	.asciz	"saved clock 0x%02x\n"

	.comm	_high_clock,8,3                 ; @high_clock
	.comm	_SMB_STS,4,2                    ; @SMB_STS
	.no_dead_strip	_sis630_transaction_start
.subsections_via_symbols
