	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdc_get_new_events
_mdc_get_new_events:                    ## @mdc_get_new_events
	.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
	movq	%rdi, %rbx
	movq	_MDC_CMDS_PROCESSED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_mdc_chan_readl
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT@GOTPCREL(%rip), %r12
	movq	_MDC_CMDS_PROCESSED_CMDS_DONE_MASK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mdc_chan_readl
	movzbl	(%r12), %ecx
	movl	%eax, %r15d
	sarl	%cl, %r15d
	movq	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edx
	andl	(%r14), %r15d
	movq	_MDC_CMDS_PROCESSED_INT_ACTIVE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%r15d, %esi
	shll	%cl, %esi
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_mdc_chan_writel
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mdc_chan_readl
	movzbl	(%r12), %ecx
	sarl	%cl, %eax
	andl	(%r14), %eax
	cmpl	%eax, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	sarl	%cl, %eax
	movl	%eax, %ecx
	andl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%r15d, %eax
	subl	%ecx, %eax
	jge	LBB0_4
## %bb.3:
	movl	(%rdx), %eax
	subl	%ecx, %r15d
	addl	%r15d, %eax
	incl	%eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDC_CMDS_PROCESSED,4,2         ## @MDC_CMDS_PROCESSED
	.comm	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT,4,2 ## @MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT
	.comm	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK,4,2 ## @MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK
	.comm	_MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT,4,2 ## @MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT
	.comm	_MDC_CMDS_PROCESSED_CMDS_DONE_MASK,4,2 ## @MDC_CMDS_PROCESSED_CMDS_DONE_MASK
	.comm	_MDC_CMDS_PROCESSED_INT_ACTIVE,4,2 ## @MDC_CMDS_PROCESSED_INT_ACTIVE
	.no_dead_strip	_mdc_get_new_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdc_get_new_events
_mdc_get_new_events:                    ; @mdc_get_new_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _MDC_CMDS_PROCESSED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDC_CMDS_PROCESSED@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_mdc_chan_readl
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh2:
	adrp	x24, _MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh4:
	adrp	x22, _MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK@GOTPAGEOFF]
	ldr	w25, [x22]
Lloh6:
	adrp	x26, _MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _MDC_CMDS_PROCESSED_CMDS_DONE_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MDC_CMDS_PROCESSED_CMDS_DONE_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MDC_CMDS_PROCESSED_INT_ACTIVE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MDC_CMDS_PROCESSED_INT_ACTIVE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mdc_chan_readl
	ldr	w8, [x26]
	asr	w8, w0, w8
	ldr	w9, [x27]
	and	w20, w8, w9
	ldr	w8, [x22]
	ldr	w9, [x24]
	lsl	w8, w8, w9
	ldr	w10, [x28]
	orr	w8, w8, w10
	bic	w8, w0, w8
	lsl	w9, w20, w9
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mdc_chan_writel
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mdc_chan_readl
	ldr	w8, [x26]
	asr	w8, w0, w8
	ldr	w9, [x27]
	and	w8, w8, w9
	cmp	w20, w8
	b.ne	LBB0_1
; %bb.2:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	asr	w8, w8, w23
	and	w8, w8, w25
	subs	w0, w20, w8
	b.ge	LBB0_4
; %bb.3:
	ldr	w8, [x22]
	add	w8, w0, w8
	add	w0, w8, #1
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDC_CMDS_PROCESSED,4,2         ; @MDC_CMDS_PROCESSED
	.comm	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT,4,2 ; @MDC_CMDS_PROCESSED_CMDS_PROCESSED_SHIFT
	.comm	_MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK,4,2 ; @MDC_CMDS_PROCESSED_CMDS_PROCESSED_MASK
	.comm	_MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT,4,2 ; @MDC_CMDS_PROCESSED_CMDS_DONE_SHIFT
	.comm	_MDC_CMDS_PROCESSED_CMDS_DONE_MASK,4,2 ; @MDC_CMDS_PROCESSED_CMDS_DONE_MASK
	.comm	_MDC_CMDS_PROCESSED_INT_ACTIVE,4,2 ; @MDC_CMDS_PROCESSED_INT_ACTIVE
	.no_dead_strip	_mdc_get_new_events
.subsections_via_symbols
