	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_get_status0
_pdc_get_status0:                       ## @pdc_get_status0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_pd
	movq	_STS0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_dma_readl
	movq	_DMA_STATUS_SHIFT_BITS@GOTPCREL(%rip), %rdx
	movq	_DMA_STATUS_BITS_PER_CH@GOTPCREL(%rip), %rsi
	movl	(%rbx), %ecx
	imull	(%rsi), %ecx
	addl	(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_DMA_STATUS_MASK_BITS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STS0,4,2                       ## @STS0
	.comm	_DMA_STATUS_MASK_BITS,4,2       ## @DMA_STATUS_MASK_BITS
	.comm	_DMA_STATUS_SHIFT_BITS,4,2      ## @DMA_STATUS_SHIFT_BITS
	.comm	_DMA_STATUS_BITS_PER_CH,4,2     ## @DMA_STATUS_BITS_PER_CH
	.no_dead_strip	_pdc_get_status0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_get_status0
_pdc_get_status0:                       ; @pdc_get_status0
	.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, x0
	ldr	w0, [x0, #4]
	bl	_to_pd
Lloh0:
	adrp	x8, _STS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STS0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dma_readl
Lloh3:
	adrp	x8, _DMA_STATUS_MASK_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_STATUS_MASK_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DMA_STATUS_SHIFT_BITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_STATUS_SHIFT_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _DMA_STATUS_BITS_PER_CH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DMA_STATUS_BITS_PER_CH@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	ldr	w11, [x19]
	madd	w9, w11, w10, w9
	asr	w9, w0, w9
	and	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STS0,4,2                       ; @STS0
	.comm	_DMA_STATUS_MASK_BITS,4,2       ; @DMA_STATUS_MASK_BITS
	.comm	_DMA_STATUS_SHIFT_BITS,4,2      ; @DMA_STATUS_SHIFT_BITS
	.comm	_DMA_STATUS_BITS_PER_CH,4,2     ; @DMA_STATUS_BITS_PER_CH
	.no_dead_strip	_pdc_get_status0
.subsections_via_symbols
