	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_dm_connector_atomic_check
_amdgpu_dm_connector_atomic_check:      ## @amdgpu_dm_connector_atomic_check
	.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, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_get_new_connector_state
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_get_old_connector_state
	movq	8(%r12), %r13
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_is_hdr_metadata_different
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_fill_hdr_info_packet
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_PTR_ERR
LBB0_5:
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	cmpl	$0, (%r12)
	sete	%al
	jmp	LBB0_9
LBB0_7:
	movl	$1, %eax
LBB0_9:
	movl	%eax, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_amdgpu_dm_connector_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_dm_connector_atomic_check
_amdgpu_dm_connector_atomic_check:      ; @amdgpu_dm_connector_atomic_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x20
	bl	_drm_atomic_get_new_connector_state
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_drm_atomic_get_old_connector_state
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_is_hdr_metadata_different
	cbz	x0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fill_hdr_info_packet
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_drm_atomic_get_crtc_state
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_10
LBB0_9:
	mov	w8, #1
LBB0_10:
	mov	w0, #0
	str	w8, [x21]
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_amdgpu_dm_connector_atomic_check
.subsections_via_symbols
