	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function amdgpu_dm_connector_init_helper
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_amdgpu_dm_connector_init_helper
	.p2align	4, 0x90
_amdgpu_dm_connector_init_helper:       ## @amdgpu_dm_connector_init_helper
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %r15
	movq	56(%rsi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	*%rax
LBB0_2:
	movl	%r14d, (%rbx)
	movq	%r13, 72(%rbx)
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_AMDGPU_HPD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967295,0,0,0]
	movups	%xmm0, 4(%rbx)
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	cmpl	$130, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.3:
	cmpl	$129, %r12d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_9
## %bb.5:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	(%r13), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 4(%rax)
	setne	%cl
	movl	%ecx, 20(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	(%r13), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setne	%cl
	movl	%ecx, 20(%rbx)
LBB0_8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	leaq	24(%rbx), %r13
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	_DRM_MODE_SCALE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_drm_object_attach_property
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	12(%r14), %esi
	movq	_UNDERSCAN_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_drm_object_attach_property
	movl	8(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	4(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movl	$16, %edx
	callq	_drm_connector_attach_max_bpc_property
	movq	32(%rbx), %rax
	movabsq	$34359738376, %rcx              ## imm = 0x800000008
	movq	%rcx, (%rax)
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	jne	LBB0_12
## %bb.10:
	movl	16(%r14), %edi
	callq	_dc_is_dmcu_initialized
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_12:
	movl	%r12d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.13:
	cmpl	%r12d, (%rbx)
	je	LBB0_15
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_connector_attach_vrr_capable_property ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_AMDGPU_HPD_NONE,4,2            ## @AMDGPU_HPD_NONE
	.comm	_DRM_CONNECTOR_POLL_HPD,8,3     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_MODE_SCALE_NONE,4,2        ## @DRM_MODE_SCALE_NONE
	.comm	_UNDERSCAN_OFF,4,2              ## @UNDERSCAN_OFF
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ## @DRM_MODE_CONNECTOR_eDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function amdgpu_dm_connector_init_helper
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_amdgpu_dm_connector_init_helper
	.p2align	2
_amdgpu_dm_connector_init_helper:       ; @amdgpu_dm_connector_init_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x24, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x25, [x8, #8]
	add	x19, x1, #8
	ldr	x8, [x1, #56]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
	str	w24, [x22]
	str	x23, [x22, #72]
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #48]
Lloh3:
	adrp	x8, _AMDGPU_HPD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_HPD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #68]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x22, #4]
	add	x0, x22, #64
	bl	_mutex_init
	cmp	w21, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	ldr	x8, [x23]
	ldr	w8, [x8, #4]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	ldr	x8, [x23]
	ldr	w8, [x8]
LBB0_8:
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x22, #20]
LBB0_9:
	add	x23, x22, #24
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
Lloh17:
	adrp	x8, _DRM_MODE_SCALE_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_MODE_SCALE_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_drm_object_attach_property
	ldr	w1, [x25, #12]
Lloh20:
	adrp	x8, _UNDERSCAN_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UNDERSCAN_OFF@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_drm_object_attach_property
	ldr	w1, [x25, #8]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x25, #4]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
	mov	x0, x19
	mov	w1, #8
	mov	w2, #16
	bl	_drm_connector_attach_max_bpc_property
	ldr	x8, [x22, #32]
	movi.2s	v0, #8
	str	d0, [x8]
Lloh23:
	adrp	x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh24:
	ldr	x22, [x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x25, #16]
	bl	_dc_is_dmcu_initialized
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x25]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_12:
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.13:
	ldr	w8, [x22]
	cmp	w8, w21
	b.eq	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_drm_connector_attach_vrr_capable_property
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_AMDGPU_HPD_NONE,4,2            ; @AMDGPU_HPD_NONE
	.comm	_DRM_CONNECTOR_POLL_HPD,8,3     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_MODE_SCALE_NONE,4,2        ; @DRM_MODE_SCALE_NONE
	.comm	_UNDERSCAN_OFF,4,2              ; @UNDERSCAN_OFF
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ; @DRM_MODE_CONNECTOR_eDP
.subsections_via_symbols
