	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_mstm_service              ## -- Begin function nv50_mstm_service
	.p2align	4, 0x90
_nv50_mstm_service:                     ## @nv50_mstm_service
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	$1, -84(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movq	_DP_SINK_COUNT_ESI@GOTPCREL(%rip), %r15
	leaq	-80(%rbp), %r12
	leaq	-84(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	$8, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_drm_dp_mst_hpd_irq
	cmpl	$0, -84(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	leaq	-76(%rbp), %rdx
	movl	$3, %ecx
	callq	_drm_dp_dpcd_write
	cmpl	$0, -84(%rbp)
	jne	LBB0_3
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dp_mst_topology_mgr_set_mst
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SINK_COUNT_ESI,8,3          ## @DP_SINK_COUNT_ESI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_mstm_service              ; -- Begin function nv50_mstm_service
	.p2align	2
_nv50_mstm_service:                     ; @nv50_mstm_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	mov	w8, #1
	str	w8, [sp, #12]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	cbz	x20, LBB0_7
; %bb.2:
	add	x8, sp, #16
	orr	x21, x8, #0x4
Lloh3:
	adrp	x22, _DP_SINK_COUNT_ESI@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DP_SINK_COUNT_ESI@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	add	x2, sp, #16
	mov	x0, x20
	mov	w3, #8
	bl	_drm_dp_dpcd_read
	cmp	w0, #8
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	bl	_drm_dp_mst_hpd_irq
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x1, x8, #1
	mov	x0, x20
	mov	x2, x21
	mov	w3, #3
	bl	_drm_dp_dpcd_write
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_3
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_drm_dp_mst_topology_mgr_set_mst
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_SINK_COUNT_ESI,8,3          ; @DP_SINK_COUNT_ESI
.subsections_via_symbols
