	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_status                ## -- Begin function hidma_ll_status
	.p2align	4, 0x90
_hidma_ll_status:                       ## @hidma_ll_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %ecx
	movq	_HIDMA_EVRE_STATUS_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_HIDMA_EVRE_STATUS_ERROR@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_DMA_IN_PROGRESS@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_DMA_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_ERROR,4,2                  ## @DMA_ERROR
	.comm	_HIDMA_EVRE_STATUS_COMPLETE,4,2 ## @HIDMA_EVRE_STATUS_COMPLETE
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_HIDMA_EVRE_STATUS_ERROR,4,2    ## @HIDMA_EVRE_STATUS_ERROR
	.comm	_DMA_IN_PROGRESS,4,2            ## @DMA_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_status                ; -- Begin function hidma_ll_status
	.p2align	2
_hidma_ll_status:                       ; @hidma_ll_status
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x19, lsl #2]
Lloh0:
	adrp	x9, _HIDMA_EVRE_STATUS_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIDMA_EVRE_STATUS_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HIDMA_EVRE_STATUS_ERROR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HIDMA_EVRE_STATUS_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _DMA_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DMA_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	adrp	x12, _DMA_ERROR@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DMA_ERROR@GOTPAGEOFF]
	tst	w10, w8
	csel	x10, x11, x12, eq
Lloh10:
	adrp	x11, _DMA_COMPLETE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DMA_COMPLETE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w19, [x8]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_ERROR,4,2                  ; @DMA_ERROR
	.comm	_HIDMA_EVRE_STATUS_COMPLETE,4,2 ; @HIDMA_EVRE_STATUS_COMPLETE
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_HIDMA_EVRE_STATUS_ERROR,4,2    ; @HIDMA_EVRE_STATUS_ERROR
	.comm	_DMA_IN_PROGRESS,4,2            ; @DMA_IN_PROGRESS
.subsections_via_symbols
