	.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, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_SMB_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sis630_read
	movq	_SMB_PROBE@GOTPCREL(%rip), %r14
	movq	_SMB_HOSTBUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_SMBHOST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMB_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sis630_write
	movq	_SMB_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sis630_read
	movl	(%r13), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	_SMB_CNT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_sis630_read
	movl	%eax, (%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_high_clock@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%r14), %edi
	je	LBB0_6
## %bb.5:
	movq	_SMBCLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_7
LBB0_6:
	movq	_MSTO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%rbx), %esi
LBB0_7:
	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
	movq	_SMB_START@GOTPCREL(%rip), %rax
	andl	$7, %r15d
	orl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_sis630_write
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %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
	.comm	_SMB_PROBE,4,2                  ## @SMB_PROBE
	.comm	_SMB_HOSTBUSY,4,2               ## @SMB_HOSTBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus busy (%02x). Resetting...\n"

	.comm	_SMBHOST_CNT,4,2                ## @SMBHOST_CNT
	.comm	_SMB_KILL,4,2                   ## @SMB_KILL
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	_SMBCLK_SEL,4,2                 ## @SMBCLK_SEL
	.comm	_MSTO_EN,4,2                    ## @MSTO_EN
	.comm	_SMB_STS,4,2                    ## @SMB_STS
	.comm	_SMB_START,4,2                  ## @SMB_START
	.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, #96
	.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
	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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x24, _SMB_PROBE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SMB_PROBE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _SMB_HOSTBUSY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SMB_HOSTBUSY@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _SMBHOST_CNT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SMBHOST_CNT@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _SMB_KILL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMB_KILL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_sis630_write
	ldr	w0, [x23]
	bl	_sis630_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	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]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh22:
	adrp	x8, _high_clock@GOTPAGE
Lloh23:
	ldr	x8, [x8, _high_clock@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w0, [x23]
	cbz	x8, LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _SMBCLK_SEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SMBCLK_SEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
Lloh28:
	adrp	x9, _MSTO_EN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MSTO_EN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	bic	w1, w8, w9
LBB0_7:
	bl	_sis630_write
Lloh31:
	adrp	x20, _SMB_STS@GOTPAGE
Lloh32:
	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]
Lloh33:
	adrp	x8, _SMB_START@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SMB_START@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w9, w19, #0x7
	orr	w1, w8, w9
	bl	_sis630_write
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_CNT,4,2                    ; @SMB_CNT
	.comm	_SMB_PROBE,4,2                  ; @SMB_PROBE
	.comm	_SMB_HOSTBUSY,4,2               ; @SMB_HOSTBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus busy (%02x). Resetting...\n"

	.comm	_SMBHOST_CNT,4,2                ; @SMBHOST_CNT
	.comm	_SMB_KILL,4,2                   ; @SMB_KILL
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	_SMBCLK_SEL,4,2                 ; @SMBCLK_SEL
	.comm	_MSTO_EN,4,2                    ; @MSTO_EN
	.comm	_SMB_STS,4,2                    ; @SMB_STS
	.comm	_SMB_START,4,2                  ; @SMB_START
	.no_dead_strip	_sis630_transaction_start
.subsections_via_symbols
