	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ths7303_log_status
_ths7303_log_status:                    ## @ths7303_log_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_state
	movq	%rax, %rbx
	cmpq	$0, 32(%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_WIDTH
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_HEIGHT
	movl	%eax, %r10d
	movl	28(%rbx), %r9d
	movl	8(%rbx), %r11d
	movl	24(%rbx), %ecx
	cmpq	$0, 16(%rbx)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	movl	%r10d, %esi
	imull	%r12d, %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.2:
	movl	%r11d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r15d
LBB0_3:
	movl	(%rbx), %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r9d, %edx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_v4l2_info
	addq	$32, %rsp
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
LBB0_5:
	movq	_THS7303_CHANNEL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ths7303_log_channel_status
	movq	_THS7303_CHANNEL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ths7303_log_channel_status
	movq	_THS7303_CHANNEL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ths7303_log_channel_status
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream %s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"timings: %dx%d%s%d (%dx%d). Pix freq. = %d Hz. Polarities = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"i"

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

L_.str.6:                               ## @.str.6
	.asciz	"no timings set\n"

	.comm	_THS7303_CHANNEL_1,4,2          ## @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ## @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ## @THS7303_CHANNEL_3
	.no_dead_strip	_ths7303_log_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ths7303_log_status
_ths7303_log_status:                    ; @ths7303_log_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	bl	_to_state
	mov	x20, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_V4L2_DV_BT_FRAME_WIDTH
	mov	x21, x0
	mov	x0, x20
	bl	_V4L2_DV_BT_FRAME_HEIGHT
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w9, w8, [x20, #24]
	ldr	x10, [x20, #16]
Lloh6:
	adrp	x11, l_.str.4@PAGE
Lloh7:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh8:
	adrp	x12, l_.str.5@PAGE
Lloh9:
	add	x12, x12, l_.str.5@PAGEOFF
	cmp	x10, #0
	csel	x10, x12, x11, eq
	mul	w11, w0, w21
	ldr	w12, [x20, #8]
	sdiv	w13, w12, w11
	cmp	w11, #1
	csel	w11, wzr, w13, lt
	ldr	w13, [x20]
	stp	x12, x13, [sp, #48]
	stp	x21, x0, [sp, #32]
	stp	x10, x11, [sp, #16]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	stp	x8, x9, [sp]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_v4l2_info
Lloh14:
	adrp	x8, _THS7303_CHANNEL_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _THS7303_CHANNEL_1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_log_channel_status
Lloh17:
	adrp	x8, _THS7303_CHANNEL_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THS7303_CHANNEL_2@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_log_channel_status
Lloh20:
	adrp	x8, _THS7303_CHANNEL_3@GOTPAGE
Lloh21:
	ldr	x8, [x8, _THS7303_CHANNEL_3@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_log_channel_status
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream %s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"timings: %dx%d%s%d (%dx%d). Pix freq. = %d Hz. Polarities = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"i"

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

l_.str.6:                               ; @.str.6
	.asciz	"no timings set\n"

	.comm	_THS7303_CHANNEL_1,4,2          ; @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ; @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ; @THS7303_CHANNEL_3
	.no_dead_strip	_ths7303_log_status
.subsections_via_symbols
