	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_log_status
_cx18_log_status:                       ## @cx18_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %rbx
	movq	_CX18_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	movq	_CX18_HW_TVEEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cx18_read_eeprom
LBB0_2:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_log_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cx18_call_all
	movl	76(%rbx), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_cx18_get_input
	movl	72(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_cx18_get_audio_input
	movl	-56(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	movl	-48(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	leaq	68(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_CX18_F_I_RADIO_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	leaq	64(%rbx), %rdi
	movl	60(%rbx), %esi
	callq	_v4l2_ctrl_handler_log_status
	movl	56(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	movq	_CX18_MAX_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movl	$12, %r14d
	xorl	%r13d, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$32, %r14
	cmpq	%rcx, %r13
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%rbx), %r15
	cmpq	$0, 12(%r15,%r14)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -12(%r15,%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%r14), %rdi
	movl	4(%r15,%r14), %r12d
	movl	8(%r15,%r14), %ebx
	callq	_atomic_read
	imull	-8(%r15,%r14), %eax
	imull	$100, %eax, %eax
	movl	-12(%r15,%r14), %r9d
	cltd
	idivl	%r9d
	movl	-4(%r15,%r14), %ecx
	imull	%r9d, %ecx
	leal	1023(%rcx), %r8d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r8d
	sarl	$10, %r8d
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_CX18_INFO
	movq	_CX18_MAX_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	movq	32(%rbx), %rdx
	movq	40(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_INFO
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Version: %s  Card: %s\n"

	.comm	_CX18_VERSION,8,3               ## @CX18_VERSION
	.comm	_CX18_HW_TVEEPROM,4,2           ## @CX18_HW_TVEEPROM
	.comm	_core,4,2                       ## @core
	.comm	_log_status,4,2                 ## @log_status
L_.str.1:                               ## @.str.1
	.asciz	"Video Input: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Audio Input: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"GPIO:  direction 0x%08x, value 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Tuner: %s\n"

	.comm	_CX18_F_I_RADIO_USER,4,2        ## @CX18_F_I_RADIO_USER
L_.str.5:                               ## @.str.5
	.asciz	"Radio"

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

L_.str.7:                               ## @.str.7
	.asciz	"Status flags: 0x%08lx\n"

	.comm	_CX18_MAX_STREAMS,4,2           ## @CX18_MAX_STREAMS
L_.str.8:                               ## @.str.8
	.asciz	"Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n"

L_.str.9:                               ## @.str.9
	.asciz	"Read MPEG/VBI: %lld/%lld bytes\n"

	.no_dead_strip	_cx18_log_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_log_status
_cx18_log_status:                       ; @cx18_log_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [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 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
	mov	x0, x1
	bl	_fh2id
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _CX18_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CX18_INFO
	ldr	w8, [x19, #8]
Lloh5:
	adrp	x9, _CX18_HW_TVEEPROM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CX18_HW_TVEEPROM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x1, sp, #40
	mov	x0, x19
	bl	_cx18_read_eeprom
LBB0_2:
Lloh8:
	adrp	x8, _core@GOTPAGE
Lloh9:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _log_status@GOTPAGE
Lloh12:
	ldr	x8, [x8, _log_status@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cx18_call_all
	ldr	w1, [x19, #76]
	add	x2, sp, #56
	mov	x0, x19
	bl	_cx18_get_input
	ldr	w1, [x19, #72]
	add	x2, sp, #48
	mov	x0, x19
	bl	_cx18_get_audio_input
	ldr	w8, [sp, #56]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_CX18_INFO
	ldr	w8, [sp, #48]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_CX18_INFO
	add	x20, x19, #68
	mov	x0, x20
	bl	_mutex_lock
	ldp	x8, x9, [x19, #16]
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_CX18_INFO
	mov	x0, x20
	bl	_mutex_unlock
Lloh20:
	adrp	x8, _CX18_F_I_RADIO_USER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CX18_F_I_RADIO_USER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, x19, #56
	bl	_test_bit
Lloh23:
	adrp	x8, l_.str.5@PAGE
Lloh24:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh25:
	adrp	x9, l_.str.6@PAGE
Lloh26:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_CX18_INFO
	add	x0, x19, #64
	ldr	w1, [x19, #60]
	bl	_v4l2_ctrl_handler_log_status
	ldr	w8, [x19, #56]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_CX18_INFO
Lloh31:
	adrp	x21, _CX18_MAX_STREAMS@GOTPAGE
Lloh32:
	ldr	x21, [x21, _CX18_MAX_STREAMS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #100
Lloh33:
	adrp	x20, l_.str.8@PAGE
Lloh34:
	add	x20, x20, l_.str.8@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x22, x22, #32
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	add	x10, x9, x22
	ldr	x10, [x10, #24]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9, x22]
	cbz	w10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x9, x22
	add	x0, x25, #12
	ldp	w27, w26, [x25, #16]
	bl	_atomic_read
	ldp	w9, w8, [x25]
	mul	w8, w0, w8
	mul	w8, w8, w24
	sdiv	w8, w8, w9
	ldr	w10, [x25, #8]
	mul	w10, w10, w9
	add	w11, w10, #1023
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #10
	stp	x10, x9, [sp, #24]
	stp	x26, x27, [sp]
	str	x8, [sp, #16]
	mov	x0, x20
	bl	_CX18_INFO
	ldr	w8, [x21]
	b	LBB0_4
LBB0_8:
	ldp	x9, x8, [x19, #32]
	stp	x8, x9, [sp]
Lloh35:
	adrp	x0, l_.str.9@PAGE
Lloh36:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_CX18_INFO
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Version: %s  Card: %s\n"

	.comm	_CX18_VERSION,8,3               ; @CX18_VERSION
	.comm	_CX18_HW_TVEEPROM,4,2           ; @CX18_HW_TVEEPROM
	.comm	_core,4,2                       ; @core
	.comm	_log_status,4,2                 ; @log_status
l_.str.1:                               ; @.str.1
	.asciz	"Video Input: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Audio Input: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"GPIO:  direction 0x%08x, value 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Tuner: %s\n"

	.comm	_CX18_F_I_RADIO_USER,4,2        ; @CX18_F_I_RADIO_USER
l_.str.5:                               ; @.str.5
	.asciz	"Radio"

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

l_.str.7:                               ; @.str.7
	.asciz	"Status flags: 0x%08lx\n"

	.comm	_CX18_MAX_STREAMS,4,2           ; @CX18_MAX_STREAMS
l_.str.8:                               ; @.str.8
	.asciz	"Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n"

l_.str.9:                               ; @.str.9
	.asciz	"Read MPEG/VBI: %lld/%lld bytes\n"

	.no_dead_strip	_cx18_log_status
.subsections_via_symbols
