	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_dm_connector_funcs_reset ## -- Begin function amdgpu_dm_connector_funcs_reset
	.p2align	4, 0x90
_amdgpu_dm_connector_funcs_reset:       ## @amdgpu_dm_connector_funcs_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_to_dm_connector_state
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	___drm_atomic_helper_connector_destroy_state
LBB0_2:
	movq	%r14, %rdi
	callq	_kfree
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_RMX_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movabsq	$34359738368, %rcx              ## imm = 0x800000000
	movq	%rcx, (%rax)
	movq	%rax, %rsi
	addq	$4, %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	(%rbx), %rcx
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_amdgpu_dm_abm_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___drm_atomic_helper_connector_reset ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RMX_OFF,4,2                    ## @RMX_OFF
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_amdgpu_dm_abm_level,4,2        ## @amdgpu_dm_abm_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function amdgpu_dm_connector_funcs_reset
lCPI0_0:
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_amdgpu_dm_connector_funcs_reset
	.p2align	2
_amdgpu_dm_connector_funcs_reset:       ; @amdgpu_dm_connector_funcs_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_to_dm_connector_state
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	___drm_atomic_helper_connector_destroy_state
LBB0_2:
	mov	x0, x20
	bl	_kfree
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _RMX_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RMX_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	add	x1, x0, #4
	stp	xzr, xzr, [x0, #16]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _amdgpu_dm_abm_level@GOTPAGE
Lloh12:
	ldr	x8, [x8, _amdgpu_dm_abm_level@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___drm_atomic_helper_connector_reset
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RMX_OFF,4,2                    ; @RMX_OFF
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_amdgpu_dm_abm_level,4,2        ; @amdgpu_dm_abm_level
.subsections_via_symbols
