	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_get_private_obj_state ## -- Begin function drm_atomic_get_private_obj_state
	.p2align	4, 0x90
_drm_atomic_get_private_obj_state:      ## @drm_atomic_get_private_obj_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rdx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_5:
	leaq	16(%rbx), %rdi
	movl	16(%r14), %esi
	callq	_drm_modeset_lock
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %edi
	jmp	LBB0_7
LBB0_3:
	movq	24(%rcx,%rdx), %r15
	jmp	LBB0_12
LBB0_8:
	movslq	(%r14), %r13
	incq	%r13
	movq	%r13, %rsi
	shlq	$5, %rsi
	movq	8(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, 8(%r14)
	movslq	(%r14), %r12
	shlq	$5, %r12
	addq	%r12, %rax
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	%r15, 24(%rax,%r12)
	movl	(%rbx), %ecx
	movl	%ecx, 16(%rax,%r12)
	movq	%r15, 8(%rax,%r12)
	movq	%rbx, (%rax,%r12)
	movq	%r14, (%r15)
	movl	%r13d, (%r14)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_DRM_DEBUG_ATOMIC
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Added new private object %p state %p to %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_get_private_obj_state ; -- Begin function drm_atomic_get_private_obj_state
	.p2align	2
_drm_atomic_get_private_obj_state:      ; @drm_atomic_get_private_obj_state
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x20
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	add	x0, x20, #16
	ldr	w1, [x19, #16]
	bl	_drm_modeset_lock
	cbnz	w0, LBB0_11
; %bb.5:
	ldrsw	x8, [x19]
	add	x22, x8, #1
	lsl	x1, x22, #5
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_10
; %bb.6:
	str	x0, [x19, #8]
	ldrsw	x23, [x19]
	add	x0, x0, x23, lsl #5
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #5
	str	x0, [x8, #24]
	ldr	w9, [x20]
	str	w9, [x8, #16]
	stp	x20, x0, [x8]
	str	x19, [x0]
	str	w22, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_DRM_DEBUG_ATOMIC
	b	LBB0_9
LBB0_8:
	ldr	x21, [x9, #24]
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Added new private object %p state %p to %p\n"

.subsections_via_symbols
