	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_transaction
_i801_transaction:                      ## @i801_transaction
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_i801_check_pre
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_I801_START@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_SMBHSTCNT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
	xorl	%ebx, %ebx
	movq	_SMBHSTSTS_HOST_BUSY@GOTPCREL(%rip), %r12
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%eax, %edi
	callq	_inb_p
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %esi
	movl	(%r14), %ecx
	cmpl	%ecx, %ebx
	movl	%esi, %ebx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %ecx
	movl	%ebx, %esi
LBB0_5:
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	setg	%dl
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i801_check_post
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_SMBHSTSTS_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_SMBHSTSTS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb_p
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I801_START,4,2                 ## @I801_START
	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ## @SMBHSTSTS_HOST_BUSY
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
	.comm	_SMBHSTSTS_INTR,4,2             ## @SMBHSTSTS_INTR
	.no_dead_strip	_i801_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i801_transaction
_i801_transaction:                      ; @i801_transaction
	.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
	bl	_i801_check_pre
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _I801_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I801_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	x0, x19
	bl	_SMBHSTCNT
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	mov	w20, #0
Lloh3:
	adrp	x22, _SMBHSTSTS_HOST_BUSY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SMBHSTSTS_HOST_BUSY@GOTPAGEOFF]
Lloh5:
	adrp	x21, _MAX_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MAX_TIMEOUT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	bl	_SMBHSTSTS
	bl	_inb_p
	mov	x1, x0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	mov	x20, x9
	b.lt	LBB0_2
; %bb.4:
	mov	x20, x9
	b	LBB0_6
LBB0_5:
	ldr	w8, [x21]
LBB0_6:
	cmp	w20, w8
	cset	w2, gt
	mov	x0, x19
	bl	_i801_check_post
	tbnz	w0, #31, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _SMBHSTSTS_INTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMBHSTSTS_INTR@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I801_START,4,2                 ; @I801_START
	.comm	_SMBHSTSTS_HOST_BUSY,4,2        ; @SMBHSTSTS_HOST_BUSY
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
	.comm	_SMBHSTSTS_INTR,4,2             ; @SMBHSTSTS_INTR
	.no_dead_strip	_i801_transaction
.subsections_via_symbols
