	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_get_connector_state ## -- Begin function drm_atomic_get_connector_state
	.p2align	4, 0x90
_drm_atomic_get_connector_state:        ## @drm_atomic_get_connector_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, %r14
	movq	%rdi, %r13
	movq	24(%rsi), %rbx
	xorl	%edi, %edi
	cmpl	$0, 16(%r13)
	sete	%dil
	callq	_WARN_ON
	leaq	4(%rbx), %rdi
	movl	16(%r13), %esi
	callq	_drm_modeset_lock
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_drm_connector_index
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jl	LBB0_7
## %bb.4:
	leal	1(%r15), %edi
	movl	(%rbx), %esi
	callq	_max
	movl	%eax, %r12d
	movq	8(%r13), %rdi
	movl	%eax, %esi
	shll	$5, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, 8(%r13)
	movslq	(%r13), %rdi
	movl	%r12d, %edx
	subl	%edi, %edx
	shlq	$5, %rdi
	addq	%rax, %rdi
	shll	$5, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r12d, (%r13)
LBB0_7:
	movq	8(%r13), %rax
	movslq	%r15d, %rbx
	shlq	$5, %rbx
	movq	24(%rax,%rbx), %r15
	testq	%r15, %r15
	je	LBB0_8
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_drm_connector_get
	movq	8(%r13), %rax
	movq	%r15, 24(%rax,%rbx)
	movl	8(%r14), %ecx
	movl	%ecx, 16(%rax,%rbx)
	movq	%r15, 8(%rax,%rbx)
	movq	%r14, (%rax,%rbx)
	movq	%r13, 8(%r15)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_DRM_DEBUG_ATOMIC
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
	.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 [CONNECTOR:%d:%s] %p state 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_connector_state ; -- Begin function drm_atomic_get_connector_state
	.p2align	2
_drm_atomic_get_connector_state:        ; @drm_atomic_get_connector_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x1, #24]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x0, x22, #4
	ldr	w1, [x19, #16]
	bl	_drm_modeset_lock
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_2:
	mov	x0, x20
	bl	_drm_connector_index
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.lt	LBB0_5
; %bb.3:
	add	w0, w21, #1
	ldr	w1, [x22]
	bl	_max
	mov	x22, x0
	ldr	x0, [x19, #8]
	lsl	w1, w22, #5
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_11
; %bb.4:
	str	x0, [x19, #8]
	ldrsw	x8, [x19]
	add	x0, x0, x8, lsl #5
	sub	w8, w22, w8
	lsl	w2, w8, #5
	mov	w1, #0
	bl	_memset
	str	w22, [x19]
LBB0_5:
	ldr	x8, [x19, #8]
	sxtw	x22, w21
	add	x8, x8, x22, lsl #5
	ldr	x21, [x8, #24]
	cbz	x21, LBB0_7
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x0
	mov	x0, x20
	bl	_drm_connector_get
	ldr	x8, [x19, #8]
	add	x8, x8, x22, lsl #5
	str	x21, [x8, #24]
	ldr	w9, [x20, #8]
	str	w9, [x8, #16]
	stp	x20, x21, [x8]
	str	x19, [x21, #8]
	ldp	w2, w1, [x20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x19
	bl	_DRM_DEBUG_ATOMIC
	ldr	x1, [x21]
	cbz	x1, LBB0_6
; %bb.9:
	mov	x0, x19
	bl	_drm_atomic_get_crtc_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.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 [CONNECTOR:%d:%s] %p state to %p\n"

.subsections_via_symbols
