	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_conn_reset             ## -- Begin function nouveau_conn_reset
	.p2align	4, 0x90
_nouveau_conn_reset:                    ## @nouveau_conn_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$28, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_nouveau_conn_atomic_destroy_state
LBB0_3:
	movq	%rbx, %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	callq	___drm_atomic_helper_connector_reset
	movq	_DITHERING_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_DITHERING_DEPTH_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DRM_MODE_SCALE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_UNDERSCAN_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movabsq	$386547056790, %rax             ## imm = 0x5A00000096
	movq	%rax, 8(%rbx)
	movl	4(%r14), %edi
	callq	_nouveau_display
	movq	(%rax), %rax
	movq	_NV50_DISP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.4:
	cmpl	$128, (%r14)
	jne	LBB0_6
## %bb.5:
	movq	_DRM_MODE_SCALE_FULLSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DITHERING_MODE_AUTO,4,2        ## @DITHERING_MODE_AUTO
	.comm	_DITHERING_DEPTH_AUTO,4,2       ## @DITHERING_DEPTH_AUTO
	.comm	_DRM_MODE_SCALE_NONE,4,2        ## @DRM_MODE_SCALE_NONE
	.comm	_UNDERSCAN_OFF,4,2              ## @UNDERSCAN_OFF
	.comm	_NV50_DISP,8,3                  ## @NV50_DISP
	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ## @DRM_MODE_SCALE_FULLSCREEN
.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 nouveau_conn_reset
lCPI0_0:
	.long	150                             ; 0x96
	.long	90                              ; 0x5a
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_nouveau_conn_reset
	.p2align	2
_nouveau_conn_reset:                    ; @nouveau_conn_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #28
	bl	_kzalloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nouveau_conn_atomic_destroy_state
LBB0_3:
	add	x1, x20, #24
	mov	x0, x19
	bl	___drm_atomic_helper_connector_reset
Lloh3:
	adrp	x8, _DITHERING_MODE_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DITHERING_MODE_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DITHERING_DEPTH_AUTO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DITHERING_DEPTH_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh9:
	adrp	x8, _DRM_MODE_SCALE_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_SCALE_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh12:
	adrp	x8, _UNDERSCAN_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNDERSCAN_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #8]
	ldr	w0, [x19, #4]
	bl	_nouveau_display
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _NV50_DISP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NV50_DISP@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20]
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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DITHERING_MODE_AUTO,4,2        ; @DITHERING_MODE_AUTO
	.comm	_DITHERING_DEPTH_AUTO,4,2       ; @DITHERING_DEPTH_AUTO
	.comm	_DRM_MODE_SCALE_NONE,4,2        ; @DRM_MODE_SCALE_NONE
	.comm	_UNDERSCAN_OFF,4,2              ; @UNDERSCAN_OFF
	.comm	_NV50_DISP,8,3                  ; @NV50_DISP
	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ; @DRM_MODE_SCALE_FULLSCREEN
.subsections_via_symbols
