	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function get_status
LCPI0_0:
	.long	0x3f7fbe88                      ## float 0.999001026
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_status:                            ## @get_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	leaq	-56(%rbp), %rdi
	callq	_vc_tv_get_display_state
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_STD
	jmp	LBB0_8
LBB0_1:
	movq	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_vc_tv_hdmi_get_property
	cmpq	$0, -24(%rbp)
	je	LBB0_6
## %bb.2:
	cmpq	$0, -32(%rbp)
	je	LBB0_6
## %bb.3:
	movq	-72(%rbp), %rax
	movq	_HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPCREL(%rip), %rcx
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	mulss	LCPI0_0(%rip), %xmm0
LBB0_5:
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	movl	-56(%rbp), %ebx
	leaq	-56(%rbp), %rdi
	callq	_status_mode
	movq	-32(%rbp), %r8
	movq	-24(%rbp), %rcx
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	cmpq	$0, -40(%rbp)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rdx, %r9
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movb	$1, %al
	callq	_LOG_STD
	jmp	LBB0_8
LBB0_6:
	movl	-56(%rbp), %ebx
	leaq	-56(%rbp), %rdi
	callq	_status_mode
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_LOG_STD
LBB0_8:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE,4,2 ## @HDMI_PROPERTY_PIXEL_CLOCK_TYPE
	.comm	_HDMI_PIXEL_CLOCK_TYPE_NTSC,8,3 ## @HDMI_PIXEL_CLOCK_TYPE_NTSC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state 0x%x [%s], %ux%u @ %.2fHz, %s"

L_.str.1:                               ## @.str.1
	.asciz	"interlaced"

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

L_.str.3:                               ## @.str.3
	.asciz	"state 0x%x [%s]"

L_.str.4:                               ## @.str.4
	.asciz	"Error getting current display state"

	.no_dead_strip	_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_status
_get_status:                            ; @get_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	add	x0, sp, #72
	bl	_vc_tv_get_display_state
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_PROPERTY_PIXEL_CLOCK_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	add	x0, sp, #56
	bl	_vc_tv_hdmi_get_property
	ldp	x9, x8, [sp, #96]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w19, [sp, #72]
	add	x0, sp, #72
	bl	_status_mode
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #56]
Lloh7:
	adrp	x9, _HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HDMI_PIXEL_CLOCK_TYPE_NTSC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	s0, [sp, #80]
	mov	w10, #48776
	movk	w10, #16255, lsl #16
	fmov	s1, w10
	fmul	s1, s0, s1
	cmp	x8, x9
	fcsel	s8, s1, s0, eq
	ldr	w19, [sp, #72]
	add	x0, sp, #72
	bl	_status_mode
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	x9, x8, [sp, #96]
	fcvt	d0, s8
	ldr	x10, [sp, #88]
Lloh10:
	adrp	x11, l_.str.1@PAGE
Lloh11:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh12:
	adrp	x12, l_.str.2@PAGE
Lloh13:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	x10, #0
	csel	x10, x12, x11, eq
	str	x10, [sp, #40]
	str	d0, [sp, #32]
	stp	x8, x9, [sp, #16]
	stp	x19, x0, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_LOG_STD
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PROPERTY_PIXEL_CLOCK_TYPE,4,2 ; @HDMI_PROPERTY_PIXEL_CLOCK_TYPE
	.comm	_HDMI_PIXEL_CLOCK_TYPE_NTSC,8,3 ; @HDMI_PIXEL_CLOCK_TYPE_NTSC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state 0x%x [%s], %ux%u @ %.2fHz, %s"

l_.str.1:                               ; @.str.1
	.asciz	"interlaced"

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

l_.str.3:                               ; @.str.3
	.asciz	"state 0x%x [%s]"

l_.str.4:                               ; @.str.4
	.asciz	"Error getting current display state"

	.no_dead_strip	_get_status
.subsections_via_symbols
