	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis630_transaction_wait
_sis630_transaction_wait:               ## @sis630_transaction_wait
	.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	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	movq	_SMB_STS@GOTPCREL(%rip), %r14
	movq	_SIS630_BLOCK_DATA@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$14, %r12b
	jne	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r14), %edi
	callq	_sis630_read
	movl	%eax, %r12d
	cmpl	%r15d, (%r13)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_BYTE_DONE_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$14, %eax
	testl	%r12d, %eax
	je	LBB0_4
LBB0_5:
	incl	%ebx
	xorl	%eax, %eax
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	_SMBERR_STS@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movq	_SMBCOL_STS@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_STS,4,2                    ## @SMB_STS
	.comm	_SIS630_BLOCK_DATA,4,2          ## @SIS630_BLOCK_DATA
	.comm	_BYTE_DONE_STS,4,2              ## @BYTE_DONE_STS
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus Timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SMBERR_STS,4,2                 ## @SMBERR_STS
L_.str.1:                               ## @.str.1
	.asciz	"Error: Failed bus transaction\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SMBCOL_STS,4,2                 ## @SMBCOL_STS
L_.str.2:                               ## @.str.2
	.asciz	"Bus collision!\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_sis630_transaction_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis630_transaction_wait
_sis630_transaction_wait:               ; @sis630_transaction_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	mov	w23, #-1
Lloh0:
	adrp	x24, _SMB_STS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SMB_STS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SIS630_BLOCK_DATA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SIS630_BLOCK_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x26, _BYTE_DONE_STS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BYTE_DONE_STS@GOTPAGEOFF]
Lloh6:
	adrp	x22, _MAX_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_TIMEOUT@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	tst	w20, #0xe
	b.ne	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w0, [x24]
	bl	_sis630_read
	mov	x20, x0
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	orr	w8, w8, #0xe
	tst	w8, w20
	b.eq	LBB0_2
LBB0_5:
	add	w8, w23, #1
	ldr	w9, [x22]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
Lloh13:
	adrp	x8, _SMBERR_STS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMBERR_STS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
Lloh21:
	adrp	x8, _SMBCOL_STS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMBCOL_STS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh26:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_STS,4,2                    ; @SMB_STS
	.comm	_SIS630_BLOCK_DATA,4,2          ; @SIS630_BLOCK_DATA
	.comm	_BYTE_DONE_STS,4,2              ; @BYTE_DONE_STS
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus Timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SMBERR_STS,4,2                 ; @SMBERR_STS
l_.str.1:                               ; @.str.1
	.asciz	"Error: Failed bus transaction\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SMBCOL_STS,4,2                 ; @SMBCOL_STS
l_.str.2:                               ; @.str.2
	.asciz	"Bus collision!\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_sis630_transaction_wait
.subsections_via_symbols
