	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_setup_stereo
_dcn10_setup_stereo:                    ## @dcn10_setup_stereo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	16(%rdi), %rbx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dcn10_config_stereo_parameters
	movq	(%rbx), %rax
	movq	_TIMING_3D_FORMAT_SIDEBAND_FA@GOTPCREL(%rip), %rcx
	movq	(%r15), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	$1, %edi
	callq	_dc_set_generic_gpio_for_stereo
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %esi
LBB0_3:
	xorl	%edi, %edi
	callq	_dc_set_generic_gpio_for_stereo
LBB0_4:
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	xorl	%esi, %esi
	cmpl	$1, -32(%rbp)
	sete	%sil
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rsi
	callq	*(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMING_3D_FORMAT_SIDEBAND_FA,8,3 ## @TIMING_3D_FORMAT_SIDEBAND_FA
	.no_dead_strip	_dcn10_setup_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_setup_stereo
_dcn10_setup_stereo:                    ; @dcn10_setup_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x19, [x0, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_dcn10_config_stereo_parameters
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TIMING_3D_FORMAT_SIDEBAND_FA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIMING_3D_FORMAT_SIDEBAND_FA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x21]
	ldr	w1, [x10]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_dc_set_generic_gpio_for_stereo
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	ldr	w1, [x8]
LBB0_3:
	mov	w0, #0
	bl	_dc_set_generic_gpio_for_stereo
LBB0_4:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [sp, #8]
	cmp	w9, #1
	cset	w1, eq
	mov	x2, x19
	blr	x8
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x1, x19
	blr	x8
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMING_3D_FORMAT_SIDEBAND_FA,8,3 ; @TIMING_3D_FORMAT_SIDEBAND_FA
	.no_dead_strip	_dcn10_setup_stereo
.subsections_via_symbols
