	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_primary_helper_update
_drm_primary_helper_update:             ## @drm_primary_helper_update
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	32(%rbp), %eax
	movl	24(%rbp), %esi
	movl	%esi, %edi
	sarl	$16, %edi
	movl	%edi, -128(%rbp)
	movl	%eax, %edi
	sarl	$16, %edi
	movl	%edi, -124(%rbp)
	movl	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	leaq	8(%r12), %rdi
	movq	%rdi, -104(%rbp)
	movq	%rdx, -96(%rbp)
	movq	%r12, -88(%rbp)
	movl	%esi, -80(%rbp)
	addl	40(%rbp), %esi
	movl	%eax, -76(%rbp)
	movl	%esi, -72(%rbp)
	addl	48(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	%ecx, -64(%rbp)
	movl	%r8d, -60(%rbp)
	addl	%ecx, %r9d
	movl	%r9d, -56(%rbp)
	addl	16(%rbp), %r8d
	movl	%r8d, -52(%rbp)
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-44(%rbp), %rbx
	leaq	-80(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	pushq	%rbx
	pushq	$0
	pushq	$0
	pushq	%rax
	pushq	%rax
	callq	_drm_plane_helper_check_update
	addq	$48, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	56(%rbp), %r15
	cmpl	$0, -44(%rbp)
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_get_connectors_for_crtc
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_get_connectors_for_crtc
	movq	%r13, -112(%rbp)
	movl	%r14d, -120(%rbp)
	movq	(%r12), %rax
	leaq	-128(%rbp), %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_2:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_drm_primary_helper_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_primary_helper_update
_drm_primary_helper_update:             ; @drm_primary_helper_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	w9, w8, [x29, #20]
	ldr	w10, [x29, #16]
	asr	w11, w7, #16
	asr	w12, w10, #16
	stp	w11, w12, [sp, #64]
	str	wzr, [sp, #72]
	add	x11, x1, #8
	stp	xzr, x11, [sp, #80]
	stp	x2, x1, [sp, #96]
	stp	w7, w10, [sp, #48]
	add	w9, w9, w7
	add	w8, w8, w10
	stp	w9, w8, [sp, #56]
	stp	w3, w4, [sp, #32]
	add	w8, w5, w3
	add	w9, w6, w4
	stp	w8, w9, [sp, #40]
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	add	x8, sp, #28
	stp	xzr, x8, [sp]
	add	x3, sp, #48
	add	x4, sp, #32
	mov	x7, x6
	bl	_drm_plane_helper_check_update
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	ldr	x21, [x29, #32]
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_get_connectors_for_crtc
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_get_connectors_for_crtc
	str	x22, [sp, #80]
	str	w20, [sp, #72]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #64
	mov	x1, x21
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_kfree
	b	LBB0_1
LBB0_5:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x21, x0
	b	LBB0_1
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_drm_primary_helper_update
.subsections_via_symbols
