	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abituguru_wait
_abituguru_wait:                        ## @abituguru_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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_ABIT_UGURU_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ABIT_UGURU_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_inb_p
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	je	LBB0_8
## %bb.1:
	decl	%r15d
	movq	_ABIT_UGURU_WAIT_TIMEOUT_SLEEP@GOTPCREL(%rip), %r12
	movl	%r15d, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ABIT_UGURU_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_inb_p
	movl	%ebx, %r15d
	cmpq	%r14, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	$1, %ebx
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %r15d
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_msleep
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABIT_UGURU_WAIT_TIMEOUT,4,2    ## @ABIT_UGURU_WAIT_TIMEOUT
	.comm	_ABIT_UGURU_DATA,8,3            ## @ABIT_UGURU_DATA
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ABIT_UGURU_WAIT_TIMEOUT_SLEEP,4,2 ## @ABIT_UGURU_WAIT_TIMEOUT_SLEEP
	.no_dead_strip	_abituguru_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abituguru_wait
_abituguru_wait:                        ; @abituguru_wait
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ABIT_UGURU_WAIT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABIT_UGURU_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _ABIT_UGURU_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ABIT_UGURU_DATA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb_p
	cmp	x0, x19
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	sub	w22, w22, #1
Lloh5:
	adrp	x23, _ABIT_UGURU_WAIT_TIMEOUT_SLEEP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ABIT_UGURU_WAIT_TIMEOUT_SLEEP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb_p
	sub	w22, w22, #1
	cmp	x0, x19
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	bl	_msleep
	b	LBB0_3
LBB0_7:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ABIT_UGURU_WAIT_TIMEOUT,4,2    ; @ABIT_UGURU_WAIT_TIMEOUT
	.comm	_ABIT_UGURU_DATA,8,3            ; @ABIT_UGURU_DATA
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ABIT_UGURU_WAIT_TIMEOUT_SLEEP,4,2 ; @ABIT_UGURU_WAIT_TIMEOUT_SLEEP
	.no_dead_strip	_abituguru_wait
.subsections_via_symbols
