	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_kms_setup_crtcs         ## -- Begin function komeda_kms_setup_crtcs
	.p2align	4, 0x90
_komeda_kms_setup_crtcs:                ## @komeda_kms_setup_crtcs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, (%rdi)
	cmpl	$0, (%rsi)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	leaq	-64(%rbp), %rbx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, -60(%rbp)
	movl	$1701736270, -64(%rbp)          ## imm = 0x656E6F4E
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rcx
	callq	_DRM_INFO
	movq	(%r14), %r12
	incq	%r12
	movq	%r12, (%r14)
	incq	%r15
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rax
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r14
	movq	8(%rsi), %rax
	movq	(%rax,%r15,8), %r13
	shlq	$4, %r12
	movq	%r13, 8(%r14,%r12)
	movq	%r13, %rdi
	callq	_komeda_pipeline_get_slave
	movq	%rax, (%r14,%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_5
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe-%d"

L_.str.1:                               ## @.str.1
	.asciz	"None"

L_.str.2:                               ## @.str.2
	.asciz	"CRTC-%d: master(pipe-%d) slave(%s).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_kms_setup_crtcs         ; -- Begin function komeda_kms_setup_crtcs
	.p2align	2
_komeda_kms_setup_crtcs:                ; @komeda_kms_setup_crtcs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	xzr, [x0]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x8, #0
	mov	x24, #0
	mov	w25, #28494
	movk	w25, #25966, lsl #16
Lloh3:
	adrp	x21, l_.str.2@PAGE
Lloh4:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [sp, #12]
	str	w25, [sp, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20]
	ldr	w2, [x23]
	add	x3, sp, #8
	mov	x0, x21
	bl	_DRM_INFO
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	add	x24, x24, #1
	ldrsw	x9, [x19]
	cmp	x24, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #8]
	ldr	x23, [x10, x24, lsl #3]
	add	x26, x9, x8, lsl #4
	str	x23, [x26, #8]
	mov	x0, x23
	bl	_komeda_pipeline_get_slave
	str	x0, [x26]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0]
	str	x8, [sp]
	add	x0, sp, #8
	mov	x1, x22
	bl	_sprintf
	b	LBB0_3
LBB0_6:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	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
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe-%d"

l_.str.1:                               ; @.str.1
	.asciz	"None"

l_.str.2:                               ; @.str.2
	.asciz	"CRTC-%d: master(pipe-%d) slave(%s).\n"

.subsections_via_symbols
