	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_mstc_new
_nv50_mstc_new:                         ## @nv50_mstc_new
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 24(%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_nv50_mstc@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_nv50_mstc_help@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_connector_helper_add
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	%r12, %rdi
	callq	_nouveau_conn_attach_properties
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_drm_connector_attach_encoder
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_8:
	movq	%r15, %rbx
	movl	4(%r15), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_drm_connector_set_path_property
	movq	%r14, %rdi
	callq	_drm_dp_mst_get_port_malloc
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv50_mstc,4,2                  ## @nv50_mstc
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_nv50_mstc_help,4,2             ## @nv50_mstc_help
	.no_dead_strip	_nv50_mstc_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_mstc_new
_nv50_mstc_new:                         ; @nv50_mstc_new
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	str	x0, [x24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	stp	x19, x23, [x0, #16]
Lloh3:
	adrp	x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _nv50_mstc@GOTPAGE
Lloh7:
	ldr	x2, [x2, _nv50_mstc@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	bl	_drm_connector_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x25, x0
	ldr	x0, [x24]
	bl	_kfree
	str	xzr, [x24]
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_9
LBB0_4:
Lloh11:
	adrp	x1, _nv50_mstc_help@GOTPAGE
Lloh12:
	ldr	x1, [x1, _nv50_mstc_help@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	mov	x0, x22
	bl	_nouveau_conn_attach_properties
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x1, [x8, x24, lsl #3]
	cbz	x1, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_drm_connector_attach_encoder
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_6
LBB0_8:
	ldr	w1, [x21, #4]
	mov	x0, x22
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x21]
	mov	x0, x22
	mov	w2, #0
	bl	_drm_object_attach_property
	mov	x0, x22
	mov	x1, x20
	bl	_drm_connector_set_path_property
	mov	x0, x19
	bl	_drm_dp_mst_get_port_malloc
	mov	w25, #0
LBB0_9:
	mov	x0, x25
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv50_mstc,4,2                  ; @nv50_mstc
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_nv50_mstc_help,4,2             ; @nv50_mstc_help
	.no_dead_strip	_nv50_mstc_new
.subsections_via_symbols
