	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_dc_rgb_init              ## -- Begin function tegra_dc_rgb_init
	.p2align	4, 0x90
_tegra_dc_rgb_init:                     ## @tegra_dc_rgb_init
	.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	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rbx), %r13
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tegra_rgb_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r13, %rsi
	callq	_drm_connector_init
	movq	_tegra_rgb_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_DRM_MODE_ENCODER_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tegra_rgb_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_tegra_rgb_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_encoder_helper_add
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_attach_encoder
	movq	%r13, %rdi
	callq	_drm_connector_register
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tegra_output_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_drm_crtc_mask
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_tegra_rgb_connector_funcs,4,2  ## @tegra_rgb_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_tegra_rgb_connector_helper_funcs,4,2 ## @tegra_rgb_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_tegra_rgb_encoder_funcs,4,2    ## @tegra_rgb_encoder_funcs
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ## @DRM_MODE_ENCODER_LVDS
	.comm	_tegra_rgb_encoder_helper_funcs,4,2 ## @tegra_rgb_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize output: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_dc_rgb_init              ; -- Begin function tegra_dc_rgb_init
	.p2align	2
_tegra_dc_rgb_init:                     ; @tegra_dc_rgb_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x1, #8]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	add	x22, x19, #8
Lloh0:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _tegra_rgb_connector_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _tegra_rgb_connector_funcs@GOTPAGEOFF]
	mov	x1, x22
	bl	_drm_connector_init
Lloh5:
	adrp	x1, _tegra_rgb_connector_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _tegra_rgb_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
Lloh7:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh10:
	adrp	x8, _DRM_MODE_ENCODER_LVDS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_ENCODER_LVDS@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, _tegra_rgb_encoder_funcs@GOTPAGE
Lloh14:
	ldr	x2, [x2, _tegra_rgb_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
Lloh15:
	adrp	x1, _tegra_rgb_encoder_helper_funcs@GOTPAGE
Lloh16:
	ldr	x1, [x1, _tegra_rgb_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
	mov	x0, x22
	mov	x1, x19
	bl	_drm_connector_attach_encoder
	mov	x0, x22
	bl	_drm_connector_register
	mov	x0, x21
	mov	x1, x19
	bl	_tegra_output_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_drm_crtc_mask
	mov	w21, #0
	str	w0, [x19]
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_tegra_rgb_connector_funcs,4,2  ; @tegra_rgb_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_tegra_rgb_connector_helper_funcs,4,2 ; @tegra_rgb_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_tegra_rgb_encoder_funcs,4,2    ; @tegra_rgb_encoder_funcs
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ; @DRM_MODE_ENCODER_LVDS
	.comm	_tegra_rgb_encoder_helper_funcs,4,2 ; @tegra_rgb_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize output: %d\n"

.subsections_via_symbols
