	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_check_post
_i801_check_post:                       ## @i801_check_post
	.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, %r14d
	movq	%rdi, %r15
	movl	%esi, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_SMBHSTCNT
	movl	%eax, %edi
	callq	_inb_p
	movl	%eax, %ebx
	movq	_SMBHSTCNT_KILL@GOTPCREL(%rip), %r14
	orl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_SMBHSTCNT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_SMBHSTCNT
	movl	%eax, %edi
	callq	_inb_p
	movl	(%r14), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_SMBHSTCNT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%eax, %edi
	callq	_inb_p
	movq	_SMBHSTSTS_HOST_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	_SMBHSTSTS_FAILED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	_SMBHSTSTS_FAILED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_4:
	movq	_STATUS_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_SMBHSTSTS_DEV_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.9:
	movq	_FEATURE_SMBUS_PEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.5(%rip), %r12
	movq	_ENXIO@GOTPCREL(%rip), %r13
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_SMBAUXSTS
	movl	%eax, %edi
	callq	_inb_p
	movq	_SMBAUXSTS_CRCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%eax, %ebx
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_SMBAUXSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	leaq	L_.str.4(%rip), %r12
	movq	_EBADMSG@GOTPCREL(%rip), %r13
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	movq	8(%r15), %rdi
	movq	%r12, %rsi
	callq	_dev_dbg
LBB0_13:
	movq	_SMBHSTSTS_BUS_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
LBB0_15:
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transaction timeout\n"

L_.str.1:                               ## @.str.1
	.asciz	"Terminating the current operation\n"

	.comm	_SMBHSTCNT_KILL,4,2             ## @SMBHSTCNT_KILL
	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ## @SMBHSTSTS_HOST_BUSY
	.comm	_SMBHSTSTS_FAILED,4,2           ## @SMBHSTSTS_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"Failed terminating the transaction\n"

	.comm	_STATUS_FLAGS,4,2               ## @STATUS_FLAGS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"Transaction failed\n"

	.comm	_SMBHSTSTS_DEV_ERR,4,2          ## @SMBHSTSTS_DEV_ERR
	.comm	_FEATURE_SMBUS_PEC,4,2          ## @FEATURE_SMBUS_PEC
	.comm	_SMBAUXSTS_CRCE,4,2             ## @SMBAUXSTS_CRCE
	.comm	_EBADMSG,4,2                    ## @EBADMSG
L_.str.4:                               ## @.str.4
	.asciz	"PEC error\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.5:                               ## @.str.5
	.asciz	"No response\n"

	.comm	_SMBHSTSTS_BUS_ERR,4,2          ## @SMBHSTSTS_BUS_ERR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.6:                               ## @.str.6
	.asciz	"Lost arbitration\n"

	.no_dead_strip	_i801_check_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i801_check_post
_i801_check_post:                       ; @i801_check_post
	.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	x20, x1
	mov	x19, x0
	lsr	w0, w1, #31
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_SMBHSTCNT
	bl	_inb_p
Lloh4:
	adrp	x21, _SMBHSTCNT_KILL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SMBHSTCNT_KILL@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w20, w8, w0
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_SMBHSTCNT
	bl	_inb_p
	ldr	w8, [x21]
	bic	w20, w0, w8
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	mov	x0, x19
	bl	_SMBHSTSTS
	bl	_inb_p
Lloh6:
	adrp	x8, _SMBHSTSTS_HOST_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMBHSTSTS_HOST_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_2:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _SMBHSTSTS_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMBHSTSTS_FAILED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _SMBHSTSTS_FAILED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMBHSTSTS_FAILED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_6:
Lloh22:
	adrp	x8, _STATUS_FLAGS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STATUS_FLAGS@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh28:
	adrp	x8, _SMBHSTSTS_DEV_ERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SMBHSTSTS_DEV_ERR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.9:
	ldr	w8, [x19]
Lloh31:
	adrp	x9, _FEATURE_SMBUS_PEC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FEATURE_SMBUS_PEC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_SMBAUXSTS
	bl	_inb_p
Lloh34:
	adrp	x8, _SMBAUXSTS_CRCE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SMBAUXSTS_CRCE@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	tst	w21, w0
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_SMBAUXSTS
	mov	x1, x0
	mov	x0, x21
	bl	_outb_p
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh39:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh43:
	adrp	x8, _ENXIO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19, #8]
	bl	_dev_dbg
LBB0_14:
Lloh45:
	adrp	x8, _SMBHSTSTS_BUS_ERR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SMBHSTSTS_BUS_ERR@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
Lloh48:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19, #8]
Lloh51:
	adrp	x1, l_.str.6@PAGE
Lloh52:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
LBB0_16:
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
LBB0_17:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transaction timeout\n"

l_.str.1:                               ; @.str.1
	.asciz	"Terminating the current operation\n"

	.comm	_SMBHSTCNT_KILL,4,2             ; @SMBHSTCNT_KILL
	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ; @SMBHSTSTS_HOST_BUSY
	.comm	_SMBHSTSTS_FAILED,4,2           ; @SMBHSTSTS_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"Failed terminating the transaction\n"

	.comm	_STATUS_FLAGS,4,2               ; @STATUS_FLAGS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"Transaction failed\n"

	.comm	_SMBHSTSTS_DEV_ERR,4,2          ; @SMBHSTSTS_DEV_ERR
	.comm	_FEATURE_SMBUS_PEC,4,2          ; @FEATURE_SMBUS_PEC
	.comm	_SMBAUXSTS_CRCE,4,2             ; @SMBAUXSTS_CRCE
	.comm	_EBADMSG,4,2                    ; @EBADMSG
l_.str.4:                               ; @.str.4
	.asciz	"PEC error\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.5:                               ; @.str.5
	.asciz	"No response\n"

	.comm	_SMBHSTSTS_BUS_ERR,4,2          ; @SMBHSTSTS_BUS_ERR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.6:                               ; @.str.6
	.asciz	"Lost arbitration\n"

	.no_dead_strip	_i801_check_post
.subsections_via_symbols
