	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_compositor_bind
_sti_compositor_bind:                   ## @sti_compositor_bind
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	8(%rbx), %rcx
	movq	40(%rax), %r12
	movl	32(%rax), %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx)
	movl	$0, %r14d
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	$24, %r14
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %edi
	movl	16(%r12,%rbx), %edx
	movq	8(%r12,%rbx), %rcx
	addq	8(%r13), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_sti_mixer_create
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %ecx
	leal	1(%rdx), %esi
	movq	%r13, %rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx), %rdx
	movl	%ecx, %ecx
	movl	%eax, (%rdx,%rcx,4)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	cmpq	%rbx, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	16(%r12,%rbx), %edx
	movq	8(%r12,%rbx), %rcx
	addq	8(%rax), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_sti_vid_create
	movl	%r15d, %ecx
	leal	1(%r15), %esi
	movq	%r14, %rdx
	movl	%esi, %r15d
	jmp	LBB0_7
LBB0_9:
	movl	$-1, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	notl	%eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%r15d, %r15d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$24, %r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_26
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13), %eax
	leal	-128(%rax), %edx
	cmpl	$3, %edx
	jae	LBB0_11
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%r15, %r15
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r14d, %edx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_sti_crtc_init
	incl	%r14d
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$131, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$132, %eax
	jne	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movl	16(%r12,%r13), %edx
	movq	8(%r12,%r13), %rcx
	addq	8(%rax), %rcx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_sti_cursor_create
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rcx
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rax
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rax
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rax), %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movl	16(%r12,%r13), %edx
	movq	8(%r12,%r13), %rcx
	addq	8(%rax), %rcx
	movq	%rbx, %rdi
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_sti_gdp_create
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_26:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_drm_vblank_init
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_23:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	$1, %eax
LBB0_27:
	addq	$56, %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	"Unknown subdev component type\n"

	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
L_.str.1:                               ## @.str.1
	.asciz	"Can't create CURSOR plane\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can't create GDP plane\n"

	.no_dead_strip	_sti_compositor_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_compositor_bind
_sti_compositor_bind:                   ; @sti_compositor_bind
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	bl	_dev_get_drvdata
	ldr	x8, [x19, #8]
	ldr	x23, [x0, #40]
	ldr	w27, [x0, #32]
	str	x0, [x8]
	cbz	w27, LBB0_21
; %bb.1:
	mov	x20, x0
	mov	w28, #0
	mov	w22, #0
	add	x21, x0, #24
	add	x24, x23, #16
	mov	x25, x27
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #16]
	ldr	w2, [x24]
	ldr	x8, [x20, #8]
	ldur	x9, [x24, #-8]
	add	x3, x9, x8
	mov	x1, x19
	bl	_sti_mixer_create
	mov	x8, x28
	add	w28, w28, #1
	mov	x9, x20
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x9]
	str	w0, [x9, w8, uxtw #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #24
	subs	x25, x25, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x24, #-16]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w8, #131
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #16]
	ldr	w2, [x24]
	ldr	x8, [x20, #8]
	ldur	x9, [x24, #-8]
	add	x3, x9, x8
	mov	x1, x19
	bl	_sti_vid_create
	mov	x8, x22
	add	w22, w22, #1
	mov	x9, x21
	b	LBB0_3
LBB0_9:
	mov	x26, #0
	mov	w21, #0
	mov	w8, #-1
	lsl	w8, w8, w28
	mvn	w22, w8
	add	x23, x23, #16
Lloh0:
	adrp	x24, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #24
	subs	x27, x27, #1
	b.eq	LBB0_22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x23, #-16]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w21, w28
	b.hs	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x26, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, w21, uxtw #2]
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	bl	_sti_crtc_init
	mov	x25, #0
	mov	x26, #0
	add	w21, w21, #1
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #131
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #132
	b.ne	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x20, #16]
	ldr	w2, [x23]
	ldr	x8, [x20, #8]
	ldur	x9, [x23, #-8]
	add	x3, x9, x8
	mov	x0, x19
	mov	w4, #1
	bl	_sti_cursor_create
	mov	x25, x0
	cbnz	x0, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w21, w28
Lloh6:
	adrp	x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
	csel	x8, x8, x24, lo
	ldr	w5, [x8]
	ldr	w1, [x20, #16]
	ldr	w2, [x23]
	ldr	x8, [x20, #8]
	ldur	x9, [x23, #-8]
	add	x3, x9, x8
	mov	x0, x19
	mov	x4, x22
	bl	_sti_gdp_create
	mov	x26, x0
	cbnz	x0, LBB0_13
	b	LBB0_10
LBB0_21:
	mov	w21, #0
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_vblank_init
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_24
LBB0_23:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #1
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown subdev component type\n"

	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
l_.str.1:                               ; @.str.1
	.asciz	"Can't create CURSOR plane\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can't create GDP plane\n"

	.no_dead_strip	_sti_compositor_bind
.subsections_via_symbols
