	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_sdma_7220_busy
_qib_sdma_7220_busy:                    ## @qib_sdma_7220_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edi
	movq	_kr_senddmastatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qib_read_kreg64
	movl	%eax, %ebx
	movq	_SendDmaStatus@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_ScoreBoardDrainInProg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	movl	$1, %r14d
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	movq	_AbortInProg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	movq	_InternalSDmaEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	_ScbEmpty@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	xorl	%r14d, %r14d
	testl	%ebx, %eax
	sete	%r14b
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_senddmastatus,4,2           ## @kr_senddmastatus
	.comm	_SendDmaStatus,4,2              ## @SendDmaStatus
	.comm	_ScoreBoardDrainInProg,4,2      ## @ScoreBoardDrainInProg
	.comm	_AbortInProg,4,2                ## @AbortInProg
	.comm	_InternalSDmaEnable,4,2         ## @InternalSDmaEnable
	.comm	_ScbEmpty,4,2                   ## @ScbEmpty
	.no_dead_strip	_qib_sdma_7220_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_sdma_7220_busy
_qib_sdma_7220_busy:                    ; @qib_sdma_7220_busy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _kr_senddmastatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kr_senddmastatus@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_qib_read_kreg64
	mov	x19, x0
Lloh3:
	adrp	x20, _SendDmaStatus@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SendDmaStatus@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _ScoreBoardDrainInProg@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ScoreBoardDrainInProg@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w0, w19
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _AbortInProg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AbortInProg@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w0, w19
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _InternalSDmaEnable@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InternalSDmaEnable@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w0, w19
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _ScbEmpty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ScbEmpty@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w0, w19
	cset	w0, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_senddmastatus,4,2           ; @kr_senddmastatus
	.comm	_SendDmaStatus,4,2              ; @SendDmaStatus
	.comm	_ScoreBoardDrainInProg,4,2      ; @ScoreBoardDrainInProg
	.comm	_AbortInProg,4,2                ; @AbortInProg
	.comm	_InternalSDmaEnable,4,2         ; @InternalSDmaEnable
	.comm	_ScbEmpty,4,2                   ; @ScbEmpty
	.no_dead_strip	_qib_sdma_7220_busy
.subsections_via_symbols
