	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_conn_attach_properties ## -- Begin function nouveau_conn_attach_properties
	.p2align	4, 0x90
_nouveau_conn_attach_properties:        ## @nouveau_conn_attach_properties
	.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	%rdi, %rbx
	movq	16(%rdi), %r12
	movl	8(%rdi), %edi
	callq	_nouveau_conn_atom
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_nouveau_display
	movq	%rax, %r15
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	movq	8(%r12), %rsi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_2:
	movq	56(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.3:
	movl	(%rbx), %eax
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.4:
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.5:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_7:
	leaq	4(%rbx), %r13
	movq	_UNDERSCAN_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_drm_object_attach_property
	movq	48(%r15), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movq	40(%r15), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_8:
	movq	32(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	leaq	4(%rbx), %rdi
	movl	16(%r14), %edx
	callq	_drm_object_attach_property
LBB0_10:
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	leaq	4(%rbx), %rdi
	movl	12(%r14), %edx
	callq	_drm_object_attach_property
LBB0_12:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_19
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.14:
	movl	16(%r15), %eax
	movq	_NV50_DISP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_19
LBB0_15:
	leaq	4(%rbx), %r13
	movq	(%r12), %rsi
	movl	8(%r14), %edx
	movq	%r13, %rdi
	callq	_drm_object_attach_property
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.16:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movl	4(%r14), %edx
	movq	%r13, %rdi
	callq	_drm_object_attach_property
LBB0_18:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.20:
	movl	(%r14), %edx
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_object_attach_property     ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ## @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_UNDERSCAN_OFF,4,2              ## @UNDERSCAN_OFF
	.comm	_NV50_DISP,4,2                  ## @NV50_DISP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_conn_attach_properties ; -- Begin function nouveau_conn_attach_properties
	.p2align	2
_nouveau_conn_attach_properties:        ; @nouveau_conn_attach_properties
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x22, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_nouveau_conn_atom
	mov	x19, x0
	mov	x0, x22
	bl	_nouveau_display
	mov	x20, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x23, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x21, #4
	ldr	x1, [x22, #8]
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_2:
	ldr	x1, [x20, #56]
	cbz	x1, LBB0_5
; %bb.3:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x23]
Lloh5:
	adrp	x11, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh7:
	adrp	x12, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh8:
	ldr	x12, [x12, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
Lloh10:
	ldr	w12, [x12]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.ne	LBB0_5
; %bb.4:
	add	x23, x21, #4
Lloh11:
	adrp	x8, _UNDERSCAN_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UNDERSCAN_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_drm_object_attach_property
	ldr	x1, [x20, #48]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	x1, [x20, #40]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_5:
	ldr	x1, [x20, #32]
	cbz	x1, LBB0_7
; %bb.6:
	add	x0, x21, #4
	ldr	w2, [x19, #16]
	bl	_drm_object_attach_property
LBB0_7:
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_9
; %bb.8:
	add	x0, x21, #4
	ldr	w2, [x19, #12]
	bl	_drm_object_attach_property
LBB0_9:
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x20, #16]
Lloh14:
	adrp	x9, _NV50_DISP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NV50_DISP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_17
LBB0_12:
	add	x23, x21, #4
	ldr	x1, [x22]
	ldr	w2, [x19, #8]
	mov	x0, x23
	bl	_drm_object_attach_property
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_17
; %bb.13:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_15
; %bb.14:
	ldr	w2, [x19, #4]
	mov	x0, x23
	bl	_drm_object_attach_property
LBB0_15:
	ldr	x1, [x20]
	cbz	x1, LBB0_17
; %bb.16:
	ldr	w2, [x19]
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_drm_object_attach_property
LBB0_17:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ; @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_UNDERSCAN_OFF,4,2              ; @UNDERSCAN_OFF
	.comm	_NV50_DISP,4,2                  ; @NV50_DISP
.subsections_via_symbols
