	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __d40_set_prio_rt
___d40_set_prio_rt:                     ## @__d40_set_prio_rt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	12(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	cmpl	$0, 8(%rdi)
	sete	%r14b
	movl	%esi, %edi
	callq	_D40_TYPE_TO_EVENT
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_D40_TYPE_TO_GROUP
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	(%r13), %r15
	movl	4(%r15,%r14,4), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r15, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_chan_is_logical
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmovnel	%ecx, %edx
	movq	(%r13), %rax
LBB0_3:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	sete	%cl
	movl	%r12d, %ebx
	shll	$16, %ebx
	testl	%r14d, %r14d
	cmovnel	%r12d, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leal	(,%r14,4), %esi
	addl	12(%r15,%rcx,4), %esi
	addl	(%rax), %esi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%r14,4), %esi
	addl	(%rax), %esi
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___d40_set_prio_rt
.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_rt
___d40_set_prio_rt:                     ; @__d40_set_prio_rt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w24, w23, [x0, #8]
	mov	x0, x1
	bl	_D40_TYPE_TO_EVENT
	mov	x22, x0
	mov	x0, x21
	bl	_D40_TYPE_TO_GROUP
	mov	x21, x0
	mov	x0, x22
	bl	_BIT
	mov	x22, x0
	ldr	x25, [x19]
	cmp	w24, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w24, [x25, x8]
	mov	x8, x25
	cbnz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_chan_is_logical
	cmp	x0, #0
	csel	w23, w23, wzr, eq
	ldr	x8, [x19]
LBB0_2:
	cmp	w23, #0
	mov	w9, #12
	mov	w10, #16
	csel	x9, x10, x9, eq
	ldr	w9, [x25, x9]
	lsl	w10, w22, #16
	cmp	w20, #0
	csel	w20, w10, w22, eq
	ldr	w8, [x8]
	lsl	w21, w21, #2
	add	w9, w9, w21
	add	w1, w9, w8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19]
	ldr	w8, [x8]
	add	w9, w24, w21
	add	w1, w9, w8
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___d40_set_prio_rt
.subsections_via_symbols
