	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modeset_init
_modeset_init:                          ## @modeset_init
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	8(%r12), %r14
	leaq	_modeset_init.vg_planes(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	leaq	_modeset_init.vg_planes(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mdp4_plane_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rax
	movslq	16(%r14), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%r14)
	movq	%rbx, (%rax,%rcx,8)
	incq	%r13
	leaq	_modeset_init.vg_planes(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	_modeset_init.mdp4_crtcs(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	_modeset_init.rgb_planes(%rip), %rax
	movl	(%r15,%rax), %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_mdp4_plane_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %edx
	movl	(%r15,%r12), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_mdp4_crtc_init
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r14)
	movq	%r13, (%rax,%rcx,8)
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_12:
	leaq	_modeset_init.mdp4_intfs(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_19
## %bb.13:
	xorl	%r14d, %r14d
	movq	%r15, %rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdp4_modeset_init_intf
	testl	%eax, %eax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_14
LBB0_19:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_3:
	movl	(%r12), %edi
	incl	%r13d
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	jmp	LBB0_4
LBB0_10:
	movl	(%r13), %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%rbx, %rdi
	jmp	LBB0_5
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	_reltable.modeset_init(%rip), %rax
	movslq	(%r15,%rax), %rdx
	addq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r13, %rdi
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_15:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_20:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @modeset_init.rgb_planes
_modeset_init.rgb_planes:
	.long	131                             ## 0x83
	.long	130                             ## 0x82

	.p2align	2                               ## @modeset_init.vg_planes
_modeset_init.vg_planes:
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.p2align	2                               ## @modeset_init.mdp4_crtcs
_modeset_init.mdp4_crtcs:
	.long	135                             ## 0x87
	.long	136                             ## 0x88

	.p2align	2                               ## @reltable.modeset_init
_reltable.modeset_init:
	.long	L_.str-_reltable.modeset_init
	.long	L_.str.1-_reltable.modeset_init

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA_P"

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

	.section	__TEXT,__const
	.p2align	2                               ## @modeset_init.mdp4_intfs
_modeset_init.mdp4_intfs:
	.long	133                             ## 0x85
	.long	134                             ## 0x86
	.long	132                             ## 0x84

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"failed to construct plane for VG%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to construct plane for RGB%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to construct crtc for %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize intf: %d, %d\n"

	.no_dead_strip	_modeset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modeset_init
_modeset_init:                          ; @modeset_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x24, [x19, #8]
Lloh0:
	adrp	x21, _modeset_init.vg_planes@PAGE
Lloh1:
	add	x21, x21, _modeset_init.vg_planes@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x23, lsl #2]
	mov	x0, x19
	mov	w2, #0
	bl	_mdp4_plane_init
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #24]
	ldrsw	x9, [x24, #16]
	add	w10, w9, #1
	str	w10, [x24, #16]
	str	x22, [x8, x9, lsl #3]
	add	x23, x23, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x21, _modeset_init.mdp4_crtcs@PAGE
Lloh3:
	add	x21, x21, _modeset_init.mdp4_crtcs@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
Lloh4:
	adrp	x25, _modeset_init.rgb_planes@PAGE
Lloh5:
	add	x25, x25, _modeset_init.rgb_planes@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25, x22, lsl #2]
	mov	x0, x19
	mov	w2, #1
	bl	_mdp4_plane_init
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x24]
	ldr	w4, [x21, x22, lsl #2]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_mdp4_crtc_init
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #8]
	ldrsw	x9, [x24]
	add	w10, w9, #1
	str	w10, [x24]
	str	x23, [x8, x9, lsl #3]
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_6
LBB0_9:
Lloh6:
	adrp	x21, _modeset_init.mdp4_intfs@PAGE
Lloh7:
	add	x21, x21, _modeset_init.mdp4_intfs@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x23, lsl #2]
	mov	x0, x20
	bl	_mdp4_modeset_init_intf
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_11
LBB0_13:
	mov	w22, #0
	b	LBB0_20
LBB0_14:
	ldr	w0, [x19]
	add	x8, x23, #1
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
	mov	x0, x22
	b	LBB0_18
LBB0_15:
	ldr	w0, [x19]
	add	x8, x22, #1
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _modeset_init.mdp4_crtc_names@PAGE
Lloh13:
	add	x8, x8, _modeset_init.mdp4_crtc_names@PAGEOFF
	ldr	x8, [x8, x22, lsl #3]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	bl	_DRM_DEV_ERROR
	mov	x0, x23
LBB0_18:
	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
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_19:
	mov	x22, x0
	ldr	w0, [x19]
	stp	x23, x22, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DRM_DEV_ERROR
LBB0_20:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @modeset_init.rgb_planes
_modeset_init.rgb_planes:
	.long	131                             ; 0x83
	.long	130                             ; 0x82

	.p2align	2                               ; @modeset_init.vg_planes
_modeset_init.vg_planes:
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.p2align	2                               ; @modeset_init.mdp4_crtcs
_modeset_init.mdp4_crtcs:
	.long	135                             ; 0x87
	.long	136                             ; 0x88

	.section	__DATA,__const
	.p2align	3                               ; @modeset_init.mdp4_crtc_names
_modeset_init.mdp4_crtc_names:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA_P"

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

	.section	__TEXT,__const
	.p2align	2                               ; @modeset_init.mdp4_intfs
_modeset_init.mdp4_intfs:
	.long	133                             ; 0x85
	.long	134                             ; 0x86
	.long	132                             ; 0x84

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"failed to construct plane for VG%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to construct plane for RGB%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to construct crtc for %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize intf: %d, %d\n"

	.no_dead_strip	_modeset_init
.subsections_via_symbols
