	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_ctl_commit                ## -- Begin function mdp5_ctl_commit
	.p2align	4, 0x90
_mdp5_ctl_commit:                       ## @mdp5_ctl_commit
	.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	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_VERB
	testl	%ebx, 4(%r13)
	je	LBB0_2
## %bb.1:
	movq	_MDP5_CTL_FLUSH_CTL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$0, 4(%r13)
LBB0_2:
	movq	%r13, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_fix_sw_flush
	movl	%eax, %r15d
	orl	%ebx, %r15d
	andl	(%r14), %r15d
	movl	%r15d, -44(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_fix_for_single_flush
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movl	8(%r13), %eax
	orl	%eax, -44(%rbp)
	movl	$0, 8(%r13)
	je	LBB0_6
## %bb.5:
	leaq	12(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	-48(%rbp), %edi
	callq	_REG_MDP5_CTL_FLUSH
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ctl_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_start_signal_needed
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_send_start_signal
	jmp	LBB0_8
LBB0_3:
	movl	-44(%rbp), %eax
	orl	%eax, 8(%r13)
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flush_mask=%x, trigger=%x"

	.comm	_MDP5_CTL_FLUSH_CTL,4,2         ## @MDP5_CTL_FLUSH_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_ctl_commit                ; -- Begin function mdp5_ctl_commit
	.p2align	2
_mdp5_ctl_commit:                       ; @mdp5_ctl_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldp	w8, w2, [x0]
	str	w8, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_VERB
	ldr	w8, [x19, #4]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MDP5_CTL_FLUSH_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDP5_CTL_FLUSH_CTL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w21, w8, w21
	str	wzr, [x19, #4]
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_fix_sw_flush
	orr	w8, w21, w0
	ldr	w9, [x23]
	and	w21, w9, w8
	str	w21, [sp, #12]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_fix_for_single_flush
	cbz	w22, LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [sp, #12]
	str	wzr, [x19, #8]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.4:
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [sp, #8]
	bl	_REG_MDP5_CTL_FLUSH
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ctl_write
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_start_signal_needed
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_send_start_signal
	b	LBB0_8
LBB0_7:
	ldr	w8, [sp, #12]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flush_mask=%x, trigger=%x"

	.comm	_MDP5_CTL_FLUSH_CTL,4,2         ; @MDP5_CTL_FLUSH_CTL
.subsections_via_symbols
