	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_pior_create
_nv50_pior_create:                      ## @nv50_pior_create
	.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	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %rdi
	callq	_nvxx_i2c
	movq	%rax, %r15
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	16(%r13), %edi
	callq	_NVKM_I2C_BUS_EXT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nvkm_i2c_bus_find
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	16(%r13), %edi
	callq	_NVKM_I2C_AUX_EXT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nvkm_i2c_aux_find
	movq	%rax, %r12
	movq	%rax, %rbx
LBB0_6:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%r12, (%rax)
	movq	%rax, %rdi
	callq	_to_drm_encoder
	movq	%rax, %rbx
	movl	12(%r13), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movl	(%r14), %edi
	movl	4(%r13), %eax
	movl	8(%r13), %r9d
	movl	%eax, (%rsp)
	movq	_nv50_pior_func@GOTPCREL(%rip), %rdx
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_drm_encoder_init
	movq	_nv50_pior_help@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_encoder_helper_add
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_attach_encoder
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv50_pior_func,4,2             ## @nv50_pior_func
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pior-%04x-%04x"

	.comm	_nv50_pior_help,4,2             ## @nv50_pior_help
	.no_dead_strip	_nv50_pior_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_pior_create
_nv50_pior_create:                      ; @nv50_pior_create
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_nouveau_drm
	bl	_nvxx_i2c
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_NVKM_I2C_BUS_EXT
	mov	x1, x0
	mov	x0, x21
	bl	_nvkm_i2c_bus_find
	mov	x23, x0
	mov	x22, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #16]
	bl	_NVKM_I2C_AUX_EXT
	mov	x1, x0
	mov	x0, x21
	bl	_nvkm_i2c_aux_find
	mov	x22, x0
	mov	x23, x0
LBB0_4:
Lloh0:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	stp	x23, x20, [x0, #8]
	str	x22, [x0]
	bl	_to_drm_encoder
	mov	x22, x0
	ldr	w8, [x20, #12]
	str	w8, [x0, #8]
	str	xzr, [x0]
	ldr	w0, [x19]
	ldp	w6, w5, [x20, #4]
Lloh6:
	adrp	x2, _nv50_pior_func@GOTPAGE
Lloh7:
	ldr	x2, [x2, _nv50_pior_func@GOTPAGEOFF]
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, x22
	mov	x3, x21
	bl	_drm_encoder_init
Lloh10:
	adrp	x1, _nv50_pior_help@GOTPAGE
Lloh11:
	ldr	x1, [x1, _nv50_pior_help@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_encoder_helper_add
	mov	x0, x19
	mov	x1, x22
	bl	_drm_connector_attach_encoder
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv50_pior_func,4,2             ; @nv50_pior_func
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pior-%04x-%04x"

	.comm	_nv50_pior_help,4,2             ; @nv50_pior_help
	.no_dead_strip	_nv50_pior_create
.subsections_via_symbols
