	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc440spe_chan_get_current_descriptor
_ppc440spe_chan_get_current_descriptor: ## @ppc440spe_chan_get_current_descriptor
	.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
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	leal	-129(%rdx), %esi
	cmpl	$2, %esi
	jae	LBB0_2
## %bb.4:
	movq	16(%rcx), %rdi
	callq	_ioread32
	movl	%eax, %ecx
	movq	_DMA_CDB_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	jmp	LBB0_5
LBB0_2:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.3:
	movq	8(%rcx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ioread32be                     ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CDB_MSK,4,2                ## @DMA_CDB_MSK
	.no_dead_strip	_ppc440spe_chan_get_current_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc440spe_chan_get_current_descriptor
_ppc440spe_chan_get_current_descriptor: ; @ppc440spe_chan_get_current_descriptor
	.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	w8, [x0, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w10, w9, #129
	cmp	w10, #2
	b.hs	LBB0_5
; %bb.4:
	ldr	x0, [x8, #16]
	bl	_ioread32
Lloh0:
	adrp	x8, _DMA_CDB_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CDB_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w0, w0, w8
	b	LBB0_2
LBB0_5:
	cmp	w9, #128
	b.ne	LBB0_1
; %bb.6:
	ldr	x0, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ioread32be
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CDB_MSK,4,2                ; @DMA_CDB_MSK
	.no_dead_strip	_ppc440spe_chan_get_current_descriptor
.subsections_via_symbols
