	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abituguru3_wait_while_busy
_abituguru3_wait_while_busy:            ## @abituguru3_wait_while_busy
	.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
	movq	%rdi, %r14
	movq	_ABIT_UGURU3_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ABIT_UGURU3_DATA@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_inb_p
	movq	_ABIT_UGURU3_STATUS_BUSY@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_inb_p
	decl	%ebx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movq	_ABIT_UGURU3_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABIT_UGURU3_WAIT_TIMEOUT,4,2   ## @ABIT_UGURU3_WAIT_TIMEOUT
	.comm	_ABIT_UGURU3_DATA,8,3           ## @ABIT_UGURU3_DATA
	.comm	_ABIT_UGURU3_STATUS_BUSY,4,2    ## @ABIT_UGURU3_STATUS_BUSY
	.comm	_ABIT_UGURU3_SUCCESS,4,2        ## @ABIT_UGURU3_SUCCESS
	.no_dead_strip	_abituguru3_wait_while_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abituguru3_wait_while_busy
_abituguru3_wait_while_busy:            ; @abituguru3_wait_while_busy
	.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	x19, x0
Lloh0:
	adrp	x8, _ABIT_UGURU3_WAIT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABIT_UGURU3_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _ABIT_UGURU3_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ABIT_UGURU3_DATA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb_p
Lloh5:
	adrp	x22, _ABIT_UGURU3_STATUS_BUSY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ABIT_UGURU3_STATUS_BUSY@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
LBB0_1:
Lloh7:
	adrp	x8, _ABIT_UGURU3_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ABIT_UGURU3_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_msleep
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb_p
	ldr	w8, [x22]
	sub	w20, w20, #1
	and	w8, w8, w0
	cbz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #2
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #1
	b.ne	LBB0_3
LBB0_6:
	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	_ABIT_UGURU3_WAIT_TIMEOUT,4,2   ; @ABIT_UGURU3_WAIT_TIMEOUT
	.comm	_ABIT_UGURU3_DATA,8,3           ; @ABIT_UGURU3_DATA
	.comm	_ABIT_UGURU3_STATUS_BUSY,4,2    ; @ABIT_UGURU3_STATUS_BUSY
	.comm	_ABIT_UGURU3_SUCCESS,4,2        ; @ABIT_UGURU3_SUCCESS
	.no_dead_strip	_abituguru3_wait_while_busy
.subsections_via_symbols
