	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_address_for_sbs_tb_stereo
_patch_address_for_sbs_tb_stereo:       ## @patch_address_for_sbs_tb_stereo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	(%rcx), %rax
	movq	_PLN_ADDR_TYPE_GRPH_STEREO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	_TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	movq	_TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
LBB0_6:
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	movq	_VIEW_3D_FORMAT_NONE@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.7:
	movq	_PLN_ADDR_TYPE_GRPH_STEREO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	%rdx, (%rcx)
	movl	8(%rcx), %edx
	movl	%edx, 12(%rcx)
LBB0_9:
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rcx), %eax
	movl	%eax, (%rsi)
	movl	12(%rcx), %eax
	movl	%eax, 8(%rcx)
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLN_ADDR_TYPE_GRPH_STEREO,8,3  ## @PLN_ADDR_TYPE_GRPH_STEREO
	.comm	_TIMING_3D_FORMAT_SIDE_BY_SIDE,8,3 ## @TIMING_3D_FORMAT_SIDE_BY_SIDE
	.comm	_TIMING_3D_FORMAT_TOP_AND_BOTTOM,8,3 ## @TIMING_3D_FORMAT_TOP_AND_BOTTOM
	.comm	_VIEW_3D_FORMAT_NONE,8,3        ## @VIEW_3D_FORMAT_NONE
	.no_dead_strip	_patch_address_for_sbs_tb_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_address_for_sbs_tb_stereo
_patch_address_for_sbs_tb_stereo:       ; @patch_address_for_sbs_tb_stereo
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _PLN_ADDR_TYPE_GRPH_STEREO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PLN_ADDR_TYPE_GRPH_STEREO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
Lloh3:
	adrp	x10, _TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x8, #8]
	str	w9, [x1]
	ldr	w9, [x8, #12]
	str	w9, [x8, #8]
	mov	w0, #1
	ret
LBB0_5:
	ldr	x9, [x0]
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _VIEW_3D_FORMAT_NONE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VIEW_3D_FORMAT_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ret
LBB0_7:
	ldr	x10, [x8]
Lloh12:
	adrp	x9, _PLN_ADDR_TYPE_GRPH_STEREO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PLN_ADDR_TYPE_GRPH_STEREO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ret
LBB0_9:
	mov	w0, #0
	str	x9, [x8]
	ldr	w9, [x8, #8]
	str	w9, [x8, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PLN_ADDR_TYPE_GRPH_STEREO,8,3  ; @PLN_ADDR_TYPE_GRPH_STEREO
	.comm	_TIMING_3D_FORMAT_SIDE_BY_SIDE,8,3 ; @TIMING_3D_FORMAT_SIDE_BY_SIDE
	.comm	_TIMING_3D_FORMAT_TOP_AND_BOTTOM,8,3 ; @TIMING_3D_FORMAT_TOP_AND_BOTTOM
	.comm	_VIEW_3D_FORMAT_NONE,8,3        ; @VIEW_3D_FORMAT_NONE
	.no_dead_strip	_patch_address_for_sbs_tb_stereo
.subsections_via_symbols
