	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	_OPTSTRING_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_HDMI_RES_GROUP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HDMI_MODE_HDMI@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	_SDTV_MODE_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_SDTV_ASPECT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_vcos_init
	movq	%r12, %rdi
	callq	_create_optstring
	leaq	LJTI0_0(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$0, -96(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -104(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -108(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -92(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	movq	%rcx, %r13
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
LBB0_54:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -104(%rbp)                  ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_long_opts@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_getopt_long_only
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$142, %ecx
	ja	LBB0_119
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15,%rcx,4), %rcx
	addq	%r15, %rcx
	jmpq	*%rcx
LBB0_53:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -100(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -96(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	leaq	L_.str.14(%rip), %rsi
	leaq	-192(%rbp), %r14
	movq	%r14, %rdx
	leaq	-256(%rbp), %rcx
	leaq	-224(%rbp), %r8
	callq	_sscanf
	movl	%eax, %r13d
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.15(%rip), %rdi
	movq	%r14, %rsi
	callq	_vcos_strcasecmp
	movq	_SDTV_MODE_NTSC@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.16(%rip), %rdi
	movq	%r14, %rsi
	callq	_vcos_strcasecmp
	movq	_SDTV_MODE_NTSC_J@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.17(%rip), %rdi
	movq	%r14, %rsi
	callq	_vcos_strcasecmp
	movq	_SDTV_MODE_PAL@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.18(%rip), %rdi
	movq	%r14, %rsi
	callq	_vcos_strcasecmp
	movq	_SDTV_MODE_PAL_M@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_36
LBB0_37:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	L_.str.20(%rip), %rdi
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	je	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.21(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	movq	-128(%rbp), %r14                ## 8-byte Reload
	je	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.22(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	jne	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_SDTV_ASPECT_16_9@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
LBB0_56:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	incl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_48:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_vcos_strcasecmp
	movq	_HDMI_RES_GROUP_CEA@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_vcos_strcasecmp
	movq	_HDMI_RES_GROUP_DMT@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_50
LBB0_51:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$1, -88(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_55:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$1, -108(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rdx
	leaq	-42(%rbp), %rcx
	leaq	-256(%rbp), %r8
	callq	_sscanf
	movl	%eax, %r14d
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	movq	_HDMI_RES_GROUP_DMT@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.4(%rip), %rdi
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	movq	_HDMI_RES_GROUP_CEA@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.6(%rip), %rdi
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	movl	$4, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_HDMI_RES_GROUP_CEA@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_13
	jmp	LBB0_23
LBB0_58:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -112(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_52:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_47:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_57:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -92(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_38:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SDTV_ASPECT_4_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %r14                ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.23(%rip), %rdi
	leaq	-224(%rbp), %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_46:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %r13
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_1
LBB0_40:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SDTV_ASPECT_14_9@GOTPCREL(%rip), %rax
LBB0_43:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$3, %r13d
	je	LBB0_45
	jmp	LBB0_46
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HDMI_RES_GROUP_CEA@GOTPCREL(%rip), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	cmpl	$3, %r14d
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.10(%rip), %rdi
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.11(%rip), %rdi
	movq	%rbx, %rsi
	callq	_vcos_strcasecmp
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_HDMI_MODE_DVI@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HDMI_MODE_HDMI@GOTPCREL(%rip), %rax
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rax), %eax
	movb	%al, -41(%rbp)                  ## 1-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movsbl	-42(%rbp), %esi
	movq	_MAX_MODE_ID@GOTPCREL(%rip), %rax
	cmpb	(%rax), %sil
	jg	LBB0_18
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_1
LBB0_5:
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_25
LBB0_18:
	leaq	L_.str.13(%rip), %rdi
LBB0_19:
	xorl	%eax, %eax
	callq	_LOG_ERR
	movl	$1, %edi
	callq	_exit
LBB0_59:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	$1, %rax
	je	LBB0_61
## %bb.60:
	cmpl	%ebx, %eax
	jl	LBB0_61
## %bb.63:
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	leal	(%r12,%rbx), %eax
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	addl	%r15d, %eax
	cmpl	$2, %eax
	jb	LBB0_65
## %bb.64:
	leaq	L_.str.26(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERR
	jmp	LBB0_120
LBB0_119:
	leaq	L_.str.24(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_LOG_ERR
	jmp	LBB0_120
LBB0_50:
	movq	(%r13), %rsi
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_25
LBB0_61:
	cmpl	%ebx, %eax
	jge	LBB0_120
## %bb.62:
	movq	(%r14,%rax,8), %rsi
	leaq	L_.str.25(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERR
LBB0_120:
	xorl	%eax, %eax
	callq	_show_usage
	movl	$1, %edi
	callq	_exit
LBB0_28:
	leaq	L_.str.12(%rip), %rdi
	leaq	-256(%rbp), %rsi
	jmp	LBB0_25
LBB0_65:
	cmpl	$1, %ebx
	sete	%al
	cmpl	$1, %r12d
	sete	%cl
	orb	%al, %cl
	cmpl	$1, %r15d
	sete	%al
	orb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_68
## %bb.66:
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_68
## %bb.67:
	leaq	L_.str.27(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERR
	movl	$1, %edi
	callq	_exit
LBB0_36:
	leaq	L_.str.19(%rip), %rdi
LBB0_24:
	leaq	-192(%rbp), %rsi
LBB0_25:
	xorl	%eax, %eax
	callq	_LOG_ERR
	movl	$1, %edi
	callq	_exit
LBB0_68:
	leaq	-224(%rbp), %rdi
	callq	_vchi_initialise
	testl	%eax, %eax
	jne	LBB0_69
## %bb.71:
	movl	-224(%rbp), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vchi_connect
	testl	%eax, %eax
	jne	LBB0_72
## %bb.73:
	movl	-224(%rbp), %edi
	leaq	-256(%rbp), %rsi
	movl	$1, %edx
	callq	_vc_vchi_tv_init
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	cmpl	$1, %r14d
	jne	LBB0_75
## %bb.74:
	leaq	L_.str.30(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_STD
	xorl	%eax, %eax
	callq	_start_monitor
	testq	%rax, %rax
	jne	LBB0_118
LBB0_75:
	cmpl	$1, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_77
## %bb.76:
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_get_modes
	testq	%rax, %rax
	jne	LBB0_118
LBB0_77:
	cmpl	$1, %ebx
	jne	LBB0_80
## %bb.78:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_set_property
	testq	%rax, %rax
	jne	LBB0_118
## %bb.79:
	xorl	%eax, %eax
	callq	_power_on_preferred
	jmp	LBB0_98
LBB0_69:
	leaq	L_.str.28(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_19
LBB0_23:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_24
LBB0_72:
	leaq	L_.str.29(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_19
LBB0_80:
	cmpl	$1, %r12d
	jne	LBB0_94
## %bb.81:
	cmpl	$4, -48(%rbp)                   ## 4-byte Folded Reload
	ja	LBB0_89
## %bb.82:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_83:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_88
LBB0_94:
	cmpl	$1, %r15d
	jne	LBB0_96
## %bb.95:
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_power_on_sdtv
	jmp	LBB0_98
LBB0_96:
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_99
## %bb.97:
	xorl	%eax, %eax
	callq	_power_off
	jmp	LBB0_98
LBB0_84:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_SBS_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_88
LBB0_85:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_TB_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_88
LBB0_86:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_FRAME_PACKING@GOTPCREL(%rip), %rax
	jmp	LBB0_88
LBB0_87:
	movq	_HDMI_PROPERTY_3D_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_3D_FORMAT_FRAME_SEQUENTIAL@GOTPCREL(%rip), %rax
LBB0_88:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_set_property
	testq	%rax, %rax
	jne	LBB0_118
LBB0_89:
	movq	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_90
## %bb.91:
	movq	_HDMI_PIXEL_CLOCK_TYPE_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_92
LBB0_90:
	movq	_HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPCREL(%rip), %rax
LBB0_92:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_set_property
	testq	%rax, %rax
	jne	LBB0_118
## %bb.93:
	movsbl	-42(%rbp), %esi
	movsbl	-41(%rbp), %edx                 ## 1-byte Folded Reload
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_power_on_explicit
LBB0_98:
	testq	%rax, %rax
	jne	LBB0_118
LBB0_99:
	cmpl	$1, -100(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_101
## %bb.100:
	xorl	%eax, %eax
	callq	_get_status
	testq	%rax, %rax
	jne	LBB0_118
LBB0_101:
	cmpl	$1, -104(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_103
## %bb.102:
	xorl	%eax, %eax
	callq	_get_audiosup
	testq	%rax, %rax
	jne	LBB0_118
LBB0_103:
	cmpl	$1, -108(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_105
## %bb.104:
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_dump_edid
	testq	%rax, %rax
	jne	LBB0_118
LBB0_105:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_107
## %bb.106:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	decl	%edi
	callq	_show_info
	testq	%rax, %rax
	jne	LBB0_118
LBB0_107:
	cmpl	$1, -112(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_116
## %bb.108:
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_vc_tv_get_device_id
	testq	%rax, %rax
	jne	LBB0_113
## %bb.109:
	movq	-192(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_111
## %bb.110:
	movq	-184(%rbp), %rdx
	cmpb	$0, (%rdx)
	jne	LBB0_112
LBB0_111:
	leaq	L_.str.31(%rip), %rdi
	jmp	LBB0_114
LBB0_113:
	leaq	L_.str.33(%rip), %rdi
LBB0_114:
	xorl	%eax, %eax
	callq	_LOG_ERR
LBB0_115:
	movl	-64(%rbp), %r14d                ## 4-byte Reload
LBB0_116:
	cmpl	$1, %r14d
	jne	LBB0_118
## %bb.117:
	movq	_quit_event@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_vcos_event_wait
	movq	%rbx, %rdi
	callq	_vcos_event_delete
LBB0_118:
	xorl	%eax, %eax
	callq	_vc_vchi_tv_stop
	movl	-224(%rbp), %edi
	callq	_vchi_disconnect
	xorl	%edi, %edi
	callq	_exit
LBB0_112:
	leaq	L_.str.32(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_STD
	jmp	LBB0_115
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_59, LBB0_59-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_119, LBB0_119-LJTI0_0
.set L0_0_set_120, LBB0_120-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_58, LBB0_58-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
LJTI0_0:
	.long	L0_0_set_59
	.long	L0_0_set_1
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_120
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_119
	.long	L0_0_set_53
	.long	L0_0_set_56
	.long	L0_0_set_31
	.long	L0_0_set_3
	.long	L0_0_set_47
	.long	L0_0_set_30
	.long	L0_0_set_58
	.long	L0_0_set_52
	.long	L0_0_set_48
	.long	L0_0_set_57
	.long	L0_0_set_120
	.long	L0_0_set_4
	.long	L0_0_set_55
	.long	L0_0_set_54
.set L0_1_set_83, LBB0_83-LJTI0_1
.set L0_1_set_84, LBB0_84-LJTI0_1
.set L0_1_set_85, LBB0_85-LJTI0_1
.set L0_1_set_86, LBB0_86-LJTI0_1
.set L0_1_set_87, LBB0_87-LJTI0_1
LJTI0_1:
	.long	L0_1_set_83
	.long	L0_1_set_84
	.long	L0_1_set_85
	.long	L0_1_set_86
	.long	L0_1_set_87
	.end_data_region
                                        ## -- End function
	.comm	_OPTSTRING_LEN,4,2              ## @OPTSTRING_LEN
	.comm	_HDMI_RES_GROUP_INVALID,4,2     ## @HDMI_RES_GROUP_INVALID
	.comm	_HDMI_MODE_HDMI,1,0             ## @HDMI_MODE_HDMI
	.comm	_SDTV_MODE_NTSC,4,2             ## @SDTV_MODE_NTSC
	.comm	_SDTV_ASPECT_UNKNOWN,4,2        ## @SDTV_ASPECT_UNKNOWN
	.comm	_long_opts,4,2                  ## @long_opts
	.comm	_optarg,8,3                     ## @optarg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%31s %u %31s"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid arguments '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"CEA"

	.comm	_HDMI_RES_GROUP_CEA,4,2         ## @HDMI_RES_GROUP_CEA
L_.str.3:                               ## @.str.3
	.asciz	"DMT"

	.comm	_HDMI_RES_GROUP_DMT,4,2         ## @HDMI_RES_GROUP_DMT
L_.str.4:                               ## @.str.4
	.asciz	"CEA_3D"

L_.str.5:                               ## @.str.5
	.asciz	"CEA_3D_SBS"

L_.str.6:                               ## @.str.6
	.asciz	"CEA_3D_TB"

L_.str.7:                               ## @.str.7
	.asciz	"CEA_3D_FP"

L_.str.8:                               ## @.str.8
	.asciz	"CEA_3D_FS"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid group '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"HDMI"

L_.str.11:                              ## @.str.11
	.asciz	"DVI"

	.comm	_HDMI_MODE_DVI,1,0              ## @HDMI_MODE_DVI
L_.str.12:                              ## @.str.12
	.asciz	"Invalid drive '%s'"

	.comm	_MAX_MODE_ID,1,0                ## @MAX_MODE_ID
L_.str.13:                              ## @.str.13
	.asciz	"Invalid mode '%u'"

L_.str.14:                              ## @.str.14
	.asciz	"%s %s %s"

L_.str.15:                              ## @.str.15
	.asciz	"NTSC"

L_.str.16:                              ## @.str.16
	.asciz	"NTSC_J"

	.comm	_SDTV_MODE_NTSC_J,4,2           ## @SDTV_MODE_NTSC_J
L_.str.17:                              ## @.str.17
	.asciz	"PAL"

	.comm	_SDTV_MODE_PAL,4,2              ## @SDTV_MODE_PAL
L_.str.18:                              ## @.str.18
	.asciz	"PAL_M"

	.comm	_SDTV_MODE_PAL_M,4,2            ## @SDTV_MODE_PAL_M
L_.str.19:                              ## @.str.19
	.asciz	"Invalid mode '%s'"

L_.str.20:                              ## @.str.20
	.asciz	"4:3"

	.comm	_SDTV_ASPECT_4_3,4,2            ## @SDTV_ASPECT_4_3
L_.str.21:                              ## @.str.21
	.asciz	"14:9"

	.comm	_SDTV_ASPECT_14_9,4,2           ## @SDTV_ASPECT_14_9
L_.str.22:                              ## @.str.22
	.asciz	"16:9"

	.comm	_SDTV_ASPECT_16_9,4,2           ## @SDTV_ASPECT_16_9
L_.str.23:                              ## @.str.23
	.asciz	"P"

L_.str.24:                              ## @.str.24
	.asciz	"Unrecognized option '%d'\n"

	.comm	_optind,4,2                     ## @optind
L_.str.25:                              ## @.str.25
	.asciz	"Unrecognized argument -- '%s'"

L_.str.26:                              ## @.str.26
	.asciz	"Conflicting power on options"

L_.str.27:                              ## @.str.27
	.asciz	"Cannot power on and power off simultaneously"

L_.str.28:                              ## @.str.28
	.asciz	"Failed to initialize VCHI (ret=%d)"

L_.str.29:                              ## @.str.29
	.asciz	"Failed to create VCHI connection (ret=%d)"

L_.str.30:                              ## @.str.30
	.asciz	"Starting to monitor for HDMI events"

	.comm	_HDMI_PROPERTY_3D_STRUCTURE,4,2 ## @HDMI_PROPERTY_3D_STRUCTURE
	.comm	_HDMI_3D_FORMAT_NONE,4,2        ## @HDMI_3D_FORMAT_NONE
	.comm	_HDMI_3D_FORMAT_SBS_HALF,4,2    ## @HDMI_3D_FORMAT_SBS_HALF
	.comm	_HDMI_3D_FORMAT_TB_HALF,4,2     ## @HDMI_3D_FORMAT_TB_HALF
	.comm	_HDMI_3D_FORMAT_FRAME_PACKING,4,2 ## @HDMI_3D_FORMAT_FRAME_PACKING
	.comm	_HDMI_3D_FORMAT_FRAME_SEQUENTIAL,4,2 ## @HDMI_3D_FORMAT_FRAME_SEQUENTIAL
	.comm	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE,4,2 ## @HDMI_PROPERTY_PIXEL_CLOCK_TYPE
	.comm	_HDMI_PIXEL_CLOCK_TYPE_NTSC,4,2 ## @HDMI_PIXEL_CLOCK_TYPE_NTSC
	.comm	_HDMI_PIXEL_CLOCK_TYPE_PAL,4,2  ## @HDMI_PIXEL_CLOCK_TYPE_PAL
L_.str.31:                              ## @.str.31
	.asciz	"No device present"

L_.str.32:                              ## @.str.32
	.asciz	"device_name=%s-%s"

L_.str.33:                              ## @.str.33
	.asciz	"Failed to obtain device name"

	.comm	_quit_event,4,2                 ## @quit_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #192
	mov	x24, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _OPTSTRING_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPTSTRING_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh5:
	adrp	x8, _HDMI_RES_GROUP_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_RES_GROUP_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _HDMI_MODE_HDMI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_MODE_HDMI@GOTPAGEOFF]
	ldrb	w8, [x8]
	sub	x9, x29, #12
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
Lloh10:
	adrp	x8, _SDTV_MODE_NTSC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDTV_MODE_NTSC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	x9, x29, #4
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
Lloh13:
	adrp	x8, _SDTV_ASPECT_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDTV_ASPECT_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	bl	_vcos_init
	mov	x0, x27
	bl	_create_optstring
	stur	xzr, [x29, #-200]               ; 8-byte Folded Spill
	mov	w19, #0
	stp	xzr, xzr, [x29, #-240]          ; 16-byte Folded Spill
	mov	w28, #0
	stur	wzr, [x29, #-248]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-204]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-212]               ; 4-byte Folded Spill
	sub	x8, x29, #16
	stur	wzr, [x8, #-256]                ; 4-byte Folded Spill
	stur	wzr, [x29, #-244]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-208]               ; 4-byte Folded Spill
	stur	xzr, [x29, #-224]               ; 8-byte Folded Spill
	stur	wzr, [x29, #-256]               ; 4-byte Folded Spill
Lloh16:
	adrp	x22, _long_opts@GOTPAGE
Lloh17:
	ldr	x22, [x22, _long_opts@GOTPAGEOFF]
Lloh18:
	adrp	x25, lJTI0_0@PAGE
Lloh19:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh20:
	adrp	x23, _optarg@GOTPAGE
Lloh21:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
	sub	x8, x29, #8
	stur	w21, [x8, #-256]                ; 4-byte Folded Spill
	stur	w21, [x29, #-252]               ; 4-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-232]                ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x22]
	mov	x0, x26
	mov	x1, x24
	mov	x2, x27
	mov	x4, #0
	bl	_getopt_long_only
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w0, #1
	cmp	w8, #142
	b.hi	LBB0_62
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrh	w10, [x25, x8, lsl #1]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-236]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-240]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23]
	bl	_atoi
	add	w8, w0, #1
	stur	w8, [x29, #-212]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23]
	sub	x2, x29, #128
	sub	x3, x29, #160
	sub	x4, x29, #192
Lloh22:
	adrp	x1, l_.str.14@PAGE
Lloh23:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_sscanf
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_57
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	sub	x1, x29, #128
Lloh24:
	adrp	x0, l_.str.15@PAGE
Lloh25:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh26:
	adrp	x0, l_.str.16@PAGE
Lloh27:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_35
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh28:
	adrp	x0, l_.str.17@PAGE
Lloh29:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_45
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh30:
	adrp	x0, l_.str.18@PAGE
Lloh31:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_vcos_strcasecmp
Lloh32:
	adrp	x8, _SDTV_MODE_PAL_M@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SDTV_MODE_PAL_M@GOTPAGEOFF]
	cbz	w0, LBB0_46
	b	LBB0_73
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-196]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x23]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x23]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vcos_strcasecmp
Lloh38:
	adrp	x8, _HDMI_RES_GROUP_DMT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HDMI_RES_GROUP_DMT@GOTPAGEOFF]
	cbz	w0, LBB0_30
	b	LBB0_65
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	stur	x8, [x29, #-224]                ; 8-byte Folded Spill
	mov	w8, #1
	stur	w8, [x29, #-228]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23]
	sub	x2, x29, #128
	sub	x3, x29, #89
	sub	x4, x29, #160
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sscanf
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_57
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	sub	x1, x29, #128
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_34
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_36
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_32
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_32
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_55
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh52:
	adrp	x0, l_.str.7@PAGE
Lloh53:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_56
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #128
Lloh54:
	adrp	x0, l_.str.8@PAGE
Lloh55:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_vcos_strcasecmp
	cbnz	w0, LBB0_84
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #4
	b	LBB0_33
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-208]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-204]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-200]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-244]                ; 4-byte Folded Spill
	b	LBB0_2
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh56:
	adrp	x8, _HDMI_RES_GROUP_CEA@GOTPAGE
Lloh57:
	ldr	x8, [x8, _HDMI_RES_GROUP_CEA@GOTPAGEOFF]
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8]
	mov	w8, #1
	stp	w9, w8, [x29, #-252]            ; 8-byte Folded Spill
	b	LBB0_2
LBB0_31:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh58:
	adrp	x8, _SDTV_MODE_NTSC@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SDTV_MODE_NTSC@GOTPAGEOFF]
	b	LBB0_46
LBB0_32:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
LBB0_33:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x29, #16
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
LBB0_34:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh60:
	adrp	x8, _HDMI_RES_GROUP_CEA@GOTPAGE
Lloh61:
	ldr	x8, [x8, _HDMI_RES_GROUP_CEA@GOTPAGEOFF]
	b	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh62:
	adrp	x8, _SDTV_MODE_NTSC_J@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SDTV_MODE_NTSC_J@GOTPAGEOFF]
	b	LBB0_46
LBB0_36:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh64:
	adrp	x8, _HDMI_RES_GROUP_DMT@GOTPAGE
Lloh65:
	ldr	x8, [x8, _HDMI_RES_GROUP_DMT@GOTPAGEOFF]
LBB0_37:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [x8]
	cmp	w21, #3
	b.ne	LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #160
Lloh66:
	adrp	x0, l_.str.10@PAGE
Lloh67:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #160
Lloh68:
	adrp	x0, l_.str.11@PAGE
Lloh69:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_vcos_strcasecmp
	cbnz	w0, LBB0_69
; %bb.40:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh70:
	adrp	x8, _HDMI_MODE_DVI@GOTPAGE
Lloh71:
	ldr	x8, [x8, _HDMI_MODE_DVI@GOTPAGEOFF]
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh72:
	adrp	x8, _HDMI_MODE_HDMI@GOTPAGE
Lloh73:
	ldr	x8, [x8, _HDMI_MODE_HDMI@GOTPAGEOFF]
LBB0_42:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x8]
	sub	x9, x29, #12
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
LBB0_43:                                ;   in Loop: Header=BB0_2 Depth=1
	ldursb	w8, [x29, #-89]
Lloh74:
	adrp	x9, _MAX_MODE_ID@GOTPAGE
Lloh75:
	ldr	x9, [x9, _MAX_MODE_ID@GOTPAGEOFF]
Lloh76:
	ldrsb	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_58
; %bb.44:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x29, #8
	stur	w19, [x8, #-256]                ; 4-byte Folded Spill
	mov	w19, #1
	b	LBB0_2
LBB0_45:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh77:
	adrp	x8, _SDTV_MODE_PAL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _SDTV_MODE_PAL@GOTPAGEOFF]
LBB0_46:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x8]
	sub	x1, x29, #160
Lloh79:
	adrp	x0, l_.str.20@PAGE
Lloh80:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #160
Lloh81:
	adrp	x0, l_.str.21@PAGE
Lloh82:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_vcos_strcasecmp
	cbz	w0, LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #160
Lloh83:
	adrp	x0, l_.str.22@PAGE
Lloh84:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_vcos_strcasecmp
Lloh85:
	adrp	x8, _SDTV_ASPECT_16_9@GOTPAGE
Lloh86:
	ldr	x8, [x8, _SDTV_ASPECT_16_9@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w8, w20, eq
	b	LBB0_52
LBB0_49:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh88:
	adrp	x8, _SDTV_ASPECT_4_3@GOTPAGE
Lloh89:
	ldr	x8, [x8, _SDTV_ASPECT_4_3@GOTPAGEOFF]
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh90:
	adrp	x8, _SDTV_ASPECT_14_9@GOTPAGE
Lloh91:
	ldr	x8, [x8, _SDTV_ASPECT_14_9@GOTPAGEOFF]
LBB0_51:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x8]
LBB0_52:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #3
	sub	x8, x29, #4
	stur	w28, [x8, #-256]                ; 4-byte Folded Spill
	b.ne	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #192
Lloh92:
	adrp	x0, l_.str.23@PAGE
Lloh93:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_vcos_strcasecmp
	cmp	w0, #0
	ldur	w8, [x29, #-256]                ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	stur	w8, [x29, #-256]                ; 4-byte Folded Spill
LBB0_54:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #1
	b	LBB0_2
LBB0_55:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #2
	b	LBB0_33
LBB0_56:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #3
	b	LBB0_33
LBB0_57:
	ldr	x8, [x23]
	str	x8, [sp, #-16]!
Lloh94:
	adrp	x0, l_.str.1@PAGE
Lloh95:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_86
LBB0_58:
	str	x8, [sp, #-16]!
Lloh96:
	adrp	x0, l_.str.13@PAGE
Lloh97:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_86
LBB0_59:
Lloh98:
	adrp	x8, _optind@GOTPAGE
Lloh99:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	cmp	w8, #1
	ccmp	w8, w26, #8, ne
	b.ge	LBB0_67
; %bb.60:
	sxtw	x8, w8
	cmp	w8, w26
	b.ge	LBB0_64
; %bb.61:
	ldr	x8, [x24, x8, lsl #3]
	str	x8, [sp, #-16]!
Lloh101:
	adrp	x0, l_.str.25@PAGE
Lloh102:
	add	x0, x0, l_.str.25@PAGEOFF
	b	LBB0_63
LBB0_62:
	str	x0, [sp, #-16]!
Lloh103:
	adrp	x0, l_.str.24@PAGE
Lloh104:
	add	x0, x0, l_.str.24@PAGEOFF
LBB0_63:
	bl	_LOG_ERR
	add	sp, sp, #16
LBB0_64:
	bl	_show_usage
	mov	w0, #1
	bl	_exit
LBB0_65:
	ldr	x8, [x23]
	sub	sp, sp, #16
LBB0_66:
	str	x8, [sp]
Lloh105:
	adrp	x0, l_.str.9@PAGE
Lloh106:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_86
LBB0_67:
	ldur	w22, [x29, #-196]               ; 4-byte Folded Reload
	add	w8, w19, w22
	add	w8, w8, w28
	cmp	w8, #2
	b.lo	LBB0_70
; %bb.68:
Lloh107:
	adrp	x0, l_.str.26@PAGE
Lloh108:
	add	x0, x0, l_.str.26@PAGEOFF
	bl	_LOG_ERR
	b	LBB0_64
LBB0_69:
	sub	x8, x29, #160
	str	x8, [sp, #-16]!
Lloh109:
	adrp	x0, l_.str.12@PAGE
Lloh110:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_86
LBB0_70:
	cmp	w28, #1
	ccmp	w19, #1, #4, ne
	ccmp	w22, #1, #4, ne
	b.ne	LBB0_74
; %bb.71:
	ldur	w8, [x29, #-200]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_74
; %bb.72:
Lloh111:
	adrp	x0, l_.str.27@PAGE
Lloh112:
	add	x0, x0, l_.str.27@PAGEOFF
	bl	_LOG_ERR
	mov	w0, #1
	bl	_exit
LBB0_73:
	sub	x8, x29, #128
	str	x8, [sp, #-16]!
Lloh113:
	adrp	x0, l_.str.19@PAGE
Lloh114:
	add	x0, x0, l_.str.19@PAGEOFF
	b	LBB0_86
LBB0_74:
	sub	x0, x29, #192
	bl	_vchi_initialise
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_83
; %bb.75:
	ldur	w2, [x29, #-192]
	mov	x0, #0
	mov	w1, #0
	bl	_vchi_connect
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_85
; %bb.76:
	ldur	w0, [x29, #-192]
	sub	x1, x29, #160
	mov	w2, #1
	bl	_vc_vchi_tv_init
	ldur	w21, [x29, #-204]               ; 4-byte Folded Reload
	cmp	w21, #1
	b.ne	LBB0_78
; %bb.77:
Lloh115:
	adrp	x0, l_.str.30@PAGE
Lloh116:
	add	x0, x0, l_.str.30@PAGEOFF
	bl	_LOG_STD
	bl	_start_monitor
	cbnz	x0, LBB0_120
LBB0_78:
	ldur	w8, [x29, #-248]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_80
; %bb.79:
	ldur	w0, [x29, #-252]                ; 4-byte Folded Reload
	ldur	w1, [x29, #-244]                ; 4-byte Folded Reload
	bl	_get_modes
	cbnz	x0, LBB0_120
LBB0_80:
	cmp	w22, #1
	b.ne	LBB0_87
; %bb.81:
Lloh117:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh118:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh119:
	ldr	w0, [x8]
Lloh120:
	adrp	x8, _HDMI_3D_FORMAT_NONE@GOTPAGE
Lloh121:
	ldr	x8, [x8, _HDMI_3D_FORMAT_NONE@GOTPAGEOFF]
Lloh122:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_set_property
	cbnz	x0, LBB0_120
; %bb.82:
	bl	_power_on_preferred
	cbz	x0, LBB0_102
	b	LBB0_120
LBB0_83:
	str	x0, [sp, #-16]!
Lloh123:
	adrp	x0, l_.str.28@PAGE
Lloh124:
	add	x0, x0, l_.str.28@PAGEOFF
	b	LBB0_86
LBB0_84:
	sub	sp, sp, #16
	sub	x8, x29, #128
	b	LBB0_66
LBB0_85:
	str	x0, [sp, #-16]!
Lloh125:
	adrp	x0, l_.str.29@PAGE
Lloh126:
	add	x0, x0, l_.str.29@PAGEOFF
LBB0_86:
	bl	_LOG_ERR
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
LBB0_87:
	cmp	w19, #1
	b.ne	LBB0_91
; %bb.88:
	sub	x8, x29, #16
	ldur	w8, [x8, #-256]                 ; 4-byte Folded Reload
	cmp	w8, #4
	b.hi	LBB0_100
; %bb.89:
	sub	x8, x29, #16
	ldur	w8, [x8, #-256]                 ; 4-byte Folded Reload
	mov	w8, w8
Lloh127:
	adrp	x9, lJTI0_1@PAGE
Lloh128:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_90
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_90:
Lloh129:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh130:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh131:
	ldr	w0, [x8]
Lloh132:
	adrp	x8, _HDMI_3D_FORMAT_NONE@GOTPAGE
Lloh133:
	ldr	x8, [x8, _HDMI_3D_FORMAT_NONE@GOTPAGEOFF]
	b	LBB0_99
LBB0_91:
	cmp	w28, #1
	b.ne	LBB0_93
; %bb.92:
	sub	x8, x29, #4
	ldur	w0, [x8, #-256]                 ; 4-byte Folded Reload
	mov	x1, x20
	ldur	w2, [x29, #-256]                ; 4-byte Folded Reload
	bl	_power_on_sdtv
	cbz	x0, LBB0_102
	b	LBB0_120
LBB0_93:
	ldur	w8, [x29, #-200]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_102
; %bb.94:
	bl	_power_off
	cbz	x0, LBB0_102
	b	LBB0_120
LBB0_95:
Lloh134:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh135:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh136:
	ldr	w0, [x8]
Lloh137:
	adrp	x8, _HDMI_3D_FORMAT_SBS_HALF@GOTPAGE
Lloh138:
	ldr	x8, [x8, _HDMI_3D_FORMAT_SBS_HALF@GOTPAGEOFF]
	b	LBB0_99
LBB0_96:
Lloh139:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh140:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh141:
	ldr	w0, [x8]
Lloh142:
	adrp	x8, _HDMI_3D_FORMAT_TB_HALF@GOTPAGE
Lloh143:
	ldr	x8, [x8, _HDMI_3D_FORMAT_TB_HALF@GOTPAGEOFF]
	b	LBB0_99
LBB0_97:
Lloh144:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh145:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh146:
	ldr	w0, [x8]
Lloh147:
	adrp	x8, _HDMI_3D_FORMAT_FRAME_PACKING@GOTPAGE
Lloh148:
	ldr	x8, [x8, _HDMI_3D_FORMAT_FRAME_PACKING@GOTPAGEOFF]
	b	LBB0_99
LBB0_98:
Lloh149:
	adrp	x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGE
Lloh150:
	ldr	x8, [x8, _HDMI_PROPERTY_3D_STRUCTURE@GOTPAGEOFF]
Lloh151:
	ldr	w0, [x8]
Lloh152:
	adrp	x8, _HDMI_3D_FORMAT_FRAME_SEQUENTIAL@GOTPAGE
Lloh153:
	ldr	x8, [x8, _HDMI_3D_FORMAT_FRAME_SEQUENTIAL@GOTPAGEOFF]
LBB0_99:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_set_property
	cbnz	x0, LBB0_120
LBB0_100:
Lloh154:
	adrp	x8, _HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPAGE
Lloh155:
	ldr	x8, [x8, _HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPAGEOFF]
Lloh156:
	adrp	x9, _HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPAGE
Lloh157:
	ldr	x9, [x9, _HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPAGEOFF]
Lloh158:
	ldr	w0, [x8]
Lloh159:
	adrp	x8, _HDMI_PIXEL_CLOCK_TYPE_PAL@GOTPAGE
Lloh160:
	ldr	x8, [x8, _HDMI_PIXEL_CLOCK_TYPE_PAL@GOTPAGEOFF]
	ldur	w10, [x29, #-240]               ; 4-byte Folded Reload
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_set_property
	cbnz	x0, LBB0_120
; %bb.101:
	ldursb	w1, [x29, #-89]
	sub	x8, x29, #12
	ldur	w8, [x8, #-256]                 ; 4-byte Folded Reload
	sxtb	w2, w8
	sub	x8, x29, #8
	ldur	w0, [x8, #-256]                 ; 4-byte Folded Reload
	bl	_power_on_explicit
	cbnz	x0, LBB0_120
LBB0_102:
	ldur	w8, [x29, #-236]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_104
; %bb.103:
	bl	_get_status
	cbnz	x0, LBB0_120
LBB0_104:
	ldur	w8, [x29, #-232]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_106
; %bb.105:
	bl	_get_audiosup
	cbnz	x0, LBB0_120
LBB0_106:
	ldur	w8, [x29, #-228]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_108
; %bb.107:
	ldur	x0, [x29, #-224]                ; 8-byte Folded Reload
	bl	_dump_edid
	cbnz	x0, LBB0_120
LBB0_108:
	ldur	w8, [x29, #-212]                ; 4-byte Folded Reload
	cbz	w8, LBB0_110
; %bb.109:
	ldur	w8, [x29, #-212]                ; 4-byte Folded Reload
	sub	w0, w8, #1
	bl	_show_info
	cbnz	x0, LBB0_120
LBB0_110:
	ldur	w8, [x29, #-208]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_118
; %bb.111:
	sub	x0, x29, #128
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	sub	x0, x29, #128
	bl	_vc_tv_get_device_id
	cbnz	x0, LBB0_115
; %bb.112:
	ldur	x8, [x29, #-128]
	ldrb	w9, [x8]
	cbz	w9, LBB0_114
; %bb.113:
	ldur	x9, [x29, #-120]
	ldrb	w10, [x9]
	cbnz	w10, LBB0_121
LBB0_114:
Lloh161:
	adrp	x0, l_.str.31@PAGE
Lloh162:
	add	x0, x0, l_.str.31@PAGEOFF
	b	LBB0_116
LBB0_115:
Lloh163:
	adrp	x0, l_.str.33@PAGE
Lloh164:
	add	x0, x0, l_.str.33@PAGEOFF
LBB0_116:
	bl	_LOG_ERR
LBB0_117:
	ldur	w21, [x29, #-204]               ; 4-byte Folded Reload
LBB0_118:
	cmp	w21, #1
	b.ne	LBB0_120
; %bb.119:
Lloh165:
	adrp	x19, _quit_event@GOTPAGE
Lloh166:
	ldr	x19, [x19, _quit_event@GOTPAGEOFF]
	mov	x0, x19
	bl	_vcos_event_wait
	mov	x0, x19
	bl	_vcos_event_delete
LBB0_120:
	bl	_vc_vchi_tv_stop
	ldur	w0, [x29, #-192]
	bl	_vchi_disconnect
	mov	w0, #0
	bl	_exit
LBB0_121:
	stp	x8, x9, [sp, #-16]!
Lloh167:
	adrp	x0, l_.str.32@PAGE
Lloh168:
	add	x0, x0, l_.str.32@PAGEOFF
	bl	_LOG_STD
	add	sp, sp, #16
	b	LBB0_117
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGot	Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGot	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGot	Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGot	Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGot	Lloh159, Lloh160
	.loh AdrpLdrGot	Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh158
	.loh AdrpAdd	Lloh161, Lloh162
	.loh AdrpAdd	Lloh163, Lloh164
	.loh AdrpLdrGot	Lloh165, Lloh166
	.loh AdrpAdd	Lloh167, Lloh168
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_59-LBB0_1)>>2
	.short	(LBB0_2-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_64-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_62-LBB0_1)>>2
	.short	(LBB0_4-LBB0_1)>>2
	.short	(LBB0_6-LBB0_1)>>2
	.short	(LBB0_7-LBB0_1)>>2
	.short	(LBB0_12-LBB0_1)>>2
	.short	(LBB0_27-LBB0_1)>>2
	.short	(LBB0_5-LBB0_1)>>2
	.short	(LBB0_25-LBB0_1)>>2
	.short	(LBB0_26-LBB0_1)>>2
	.short	(LBB0_13-LBB0_1)>>2
	.short	(LBB0_28-LBB0_1)>>2
	.short	(LBB0_64-LBB0_1)>>2
	.short	(LBB0_16-LBB0_1)>>2
	.short	(LBB0_15-LBB0_1)>>2
	.short	(LBB0_1-LBB0_1)>>2
lJTI0_1:
	.byte	(LBB0_90-LBB0_90)>>2
	.byte	(LBB0_95-LBB0_90)>>2
	.byte	(LBB0_96-LBB0_90)>>2
	.byte	(LBB0_97-LBB0_90)>>2
	.byte	(LBB0_98-LBB0_90)>>2
                                        ; -- End function
	.comm	_OPTSTRING_LEN,4,2              ; @OPTSTRING_LEN
	.comm	_HDMI_RES_GROUP_INVALID,4,2     ; @HDMI_RES_GROUP_INVALID
	.comm	_HDMI_MODE_HDMI,1,0             ; @HDMI_MODE_HDMI
	.comm	_SDTV_MODE_NTSC,4,2             ; @SDTV_MODE_NTSC
	.comm	_SDTV_ASPECT_UNKNOWN,4,2        ; @SDTV_ASPECT_UNKNOWN
	.comm	_long_opts,4,2                  ; @long_opts
	.comm	_optarg,8,3                     ; @optarg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%31s %u %31s"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid arguments '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"CEA"

	.comm	_HDMI_RES_GROUP_CEA,4,2         ; @HDMI_RES_GROUP_CEA
l_.str.3:                               ; @.str.3
	.asciz	"DMT"

	.comm	_HDMI_RES_GROUP_DMT,4,2         ; @HDMI_RES_GROUP_DMT
l_.str.4:                               ; @.str.4
	.asciz	"CEA_3D"

l_.str.5:                               ; @.str.5
	.asciz	"CEA_3D_SBS"

l_.str.6:                               ; @.str.6
	.asciz	"CEA_3D_TB"

l_.str.7:                               ; @.str.7
	.asciz	"CEA_3D_FP"

l_.str.8:                               ; @.str.8
	.asciz	"CEA_3D_FS"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid group '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"HDMI"

l_.str.11:                              ; @.str.11
	.asciz	"DVI"

	.comm	_HDMI_MODE_DVI,1,0              ; @HDMI_MODE_DVI
l_.str.12:                              ; @.str.12
	.asciz	"Invalid drive '%s'"

	.comm	_MAX_MODE_ID,1,0                ; @MAX_MODE_ID
l_.str.13:                              ; @.str.13
	.asciz	"Invalid mode '%u'"

l_.str.14:                              ; @.str.14
	.asciz	"%s %s %s"

l_.str.15:                              ; @.str.15
	.asciz	"NTSC"

l_.str.16:                              ; @.str.16
	.asciz	"NTSC_J"

	.comm	_SDTV_MODE_NTSC_J,4,2           ; @SDTV_MODE_NTSC_J
l_.str.17:                              ; @.str.17
	.asciz	"PAL"

	.comm	_SDTV_MODE_PAL,4,2              ; @SDTV_MODE_PAL
l_.str.18:                              ; @.str.18
	.asciz	"PAL_M"

	.comm	_SDTV_MODE_PAL_M,4,2            ; @SDTV_MODE_PAL_M
l_.str.19:                              ; @.str.19
	.asciz	"Invalid mode '%s'"

l_.str.20:                              ; @.str.20
	.asciz	"4:3"

	.comm	_SDTV_ASPECT_4_3,4,2            ; @SDTV_ASPECT_4_3
l_.str.21:                              ; @.str.21
	.asciz	"14:9"

	.comm	_SDTV_ASPECT_14_9,4,2           ; @SDTV_ASPECT_14_9
l_.str.22:                              ; @.str.22
	.asciz	"16:9"

	.comm	_SDTV_ASPECT_16_9,4,2           ; @SDTV_ASPECT_16_9
l_.str.23:                              ; @.str.23
	.asciz	"P"

l_.str.24:                              ; @.str.24
	.asciz	"Unrecognized option '%d'\n"

	.comm	_optind,4,2                     ; @optind
l_.str.25:                              ; @.str.25
	.asciz	"Unrecognized argument -- '%s'"

l_.str.26:                              ; @.str.26
	.asciz	"Conflicting power on options"

l_.str.27:                              ; @.str.27
	.asciz	"Cannot power on and power off simultaneously"

l_.str.28:                              ; @.str.28
	.asciz	"Failed to initialize VCHI (ret=%d)"

l_.str.29:                              ; @.str.29
	.asciz	"Failed to create VCHI connection (ret=%d)"

l_.str.30:                              ; @.str.30
	.asciz	"Starting to monitor for HDMI events"

	.comm	_HDMI_PROPERTY_3D_STRUCTURE,4,2 ; @HDMI_PROPERTY_3D_STRUCTURE
	.comm	_HDMI_3D_FORMAT_NONE,4,2        ; @HDMI_3D_FORMAT_NONE
	.comm	_HDMI_3D_FORMAT_SBS_HALF,4,2    ; @HDMI_3D_FORMAT_SBS_HALF
	.comm	_HDMI_3D_FORMAT_TB_HALF,4,2     ; @HDMI_3D_FORMAT_TB_HALF
	.comm	_HDMI_3D_FORMAT_FRAME_PACKING,4,2 ; @HDMI_3D_FORMAT_FRAME_PACKING
	.comm	_HDMI_3D_FORMAT_FRAME_SEQUENTIAL,4,2 ; @HDMI_3D_FORMAT_FRAME_SEQUENTIAL
	.comm	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE,4,2 ; @HDMI_PROPERTY_PIXEL_CLOCK_TYPE
	.comm	_HDMI_PIXEL_CLOCK_TYPE_NTSC,4,2 ; @HDMI_PIXEL_CLOCK_TYPE_NTSC
	.comm	_HDMI_PIXEL_CLOCK_TYPE_PAL,4,2  ; @HDMI_PIXEL_CLOCK_TYPE_PAL
l_.str.31:                              ; @.str.31
	.asciz	"No device present"

l_.str.32:                              ; @.str.32
	.asciz	"device_name=%s-%s"

l_.str.33:                              ; @.str.33
	.asciz	"Failed to obtain device name"

	.comm	_quit_event,4,2                 ; @quit_event
.subsections_via_symbols
