	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_update_port
_drm_dp_update_port:                    ## @drm_dp_update_port
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %esi
	callq	_drm_dp_get_port
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movl	12(%rbx), %ecx
	movl	%ecx, 28(%r15)
	movl	8(%rbx), %ecx
	movl	%ecx, 24(%r15)
	movl	4(%rbx), %ecx
	movl	%ecx, (%r15)
	movb	$1, %bl
	cmpl	%ecx, %edx
	je	LBB0_5
## %bb.2:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
LBB0_5:
	cmpl	%eax, %esi
	je	LBB0_10
LBB0_6:
	cmpl	$0, 8(%r15)
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_drm_dp_port_teardown_pdt
	movq	%r15, %rdi
	callq	_drm_dp_port_setup_pdt
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_drm_dp_mst_topology_put_port
	jmp	LBB0_9
LBB0_4:
	movq	$0, 16(%r15)
	cmpl	%eax, %esi
	jne	LBB0_6
LBB0_10:
	movq	%r15, %rdi
	callq	_drm_dp_mst_topology_put_port
	testb	%bl, %bl
	je	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_system_long_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_system_long_wq,4,2             ## @system_long_wq
	.no_dead_strip	_drm_dp_update_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_update_port
_drm_dp_update_port:                    ; @drm_dp_update_port
	.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	x21, x1
	mov	x19, x0
	ldr	w1, [x1, #16]
	bl	_drm_dp_get_port
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldp	w10, w1, [x0]
	ldr	w8, [x21]
	str	w8, [x0, #4]
	ldr	d0, [x21, #8]
	str	d0, [x0, #24]
	ldr	w9, [x21, #4]
	str	w9, [x0]
	cmp	w10, w9
	b.eq	LBB0_5
; %bb.2:
	cbz	w9, LBB0_4
; %bb.3:
	mov	w21, #0
	cmp	w1, w8
	b.ne	LBB0_6
	b	LBB0_7
LBB0_4:
	str	xzr, [x20, #16]
LBB0_5:
	mov	w21, #1
	cmp	w1, w8
	b.eq	LBB0_7
LBB0_6:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_drm_dp_mst_topology_put_port
	tbz	w21, #0, LBB0_11
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_drm_dp_port_teardown_pdt
	mov	x0, x20
	bl	_drm_dp_port_setup_pdt
	cbz	x0, LBB0_7
; %bb.10:
	mov	x0, x20
	bl	_drm_dp_mst_topology_put_port
LBB0_11:
Lloh0:
	adrp	x8, _system_long_wq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_long_wq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [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	_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_system_long_wq,4,2             ; @system_long_wq
	.no_dead_strip	_drm_dp_update_port
.subsections_via_symbols
