	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_smp_fifo_regs
_write_smp_fifo_regs:                   ## @write_smp_fifo_regs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_get_kms
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	%rax, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_0
	movq	16(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%ebx, %edi
	callq	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_1
	movq	8(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%ebx, %edi
	callq	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_2
	movq	(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_smp_fifo_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_smp_fifo_regs
_write_smp_fifo_regs:                   ; @write_smp_fifo_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_get_kms
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w21, [x8]
	mov	x0, x21
	bl	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_0
	mov	x1, x0
	ldr	x8, [x19, #16]
	lsl	x23, x21, #2
	ldr	w2, [x8, x23]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_1
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x23]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_REQPRIO_FIFO_WM_2
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w2, [x8, x23]
	mov	x0, x20
	bl	_mdp5_write
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_smp_fifo_regs
.subsections_via_symbols
