	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d40_set_prio_realtime
_d40_set_prio_realtime:                 ## @d40_set_prio_realtime
	.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	16(%rdi), %rax
	cmpl	$3, (%rax)
	jl	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rcx
	movq	_DMA_DEV_TO_DEV@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_3:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	___d40_set_prio_rt
	movq	(%rbx), %rax
	movq	(%r14), %rcx
LBB0_4:
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_7
## %bb.5:
	cmpq	%rcx, %rax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___d40_set_prio_rt              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,8,3             ## @DMA_DEV_TO_DEV
	.comm	_DMA_MEM_TO_DEV,8,3             ## @DMA_MEM_TO_DEV
	.no_dead_strip	_d40_set_prio_realtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d40_set_prio_realtime
_d40_set_prio_realtime:                 ; @d40_set_prio_realtime
	.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	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x20, _DMA_DEV_TO_DEV@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DMA_DEV_TO_DEV@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	bl	___d40_set_prio_rt
	ldr	x8, [x19]
	ldr	x9, [x20]
LBB0_3:
Lloh5:
	adrp	x10, _DMA_MEM_TO_DEV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___d40_set_prio_rt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,8,3             ; @DMA_DEV_TO_DEV
	.comm	_DMA_MEM_TO_DEV,8,3             ; @DMA_MEM_TO_DEV
	.no_dead_strip	_d40_set_prio_realtime
.subsections_via_symbols
