	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shark_read_val
_shark_read_val:                        ## @shark_read_val
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	movq	_TB_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rax
	movl	$128, (%rax)
	movl	20(%r14), %ebx
	movq	_SHARK_OUT_EP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_usb_sndintpipe
	movq	(%r14), %rdx
	movl	(%r15), %ecx
	leaq	-28(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_usb_interrupt_msg
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	20(%r14), %ebx
	movq	_SHARK_IN_EP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_usb_rcvintpipe
	movq	(%r14), %rdx
	movl	(%r15), %ecx
	leaq	-28(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_usb_interrupt_msg
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %edx
	shll	$24, %eax
	shll	$16, %edx
	orl	%eax, %edx
	movl	8(%rcx), %eax
	shll	$8, %eax
	orl	%edx, %eax
	orl	12(%rcx), %eax
	movl	%eax, 8(%r14)
	movq	_TEA575X_BIT_BAND_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_TEA575X_BIT_BAND_FM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.5:
	movq	_TEA575X_BIT_MONO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_7:
	movl	$0, 12(%r14)
	jmp	LBB0_8
LBB0_1:
	leaq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	leaq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%eax, %edx
	callq	_v4l2_err
	movl	8(%r14), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, 12(%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TB_LEN,4,2                     ## @TB_LEN
	.comm	_SHARK_OUT_EP,4,2               ## @SHARK_OUT_EP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request-status error: %d\n"

	.comm	_SHARK_IN_EP,4,2                ## @SHARK_IN_EP
L_.str.1:                               ## @.str.1
	.asciz	"get-status error: %d\n"

	.comm	_TEA575X_BIT_BAND_MASK,4,2      ## @TEA575X_BIT_BAND_MASK
	.comm	_TEA575X_BIT_BAND_FM,4,2        ## @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_BIT_MONO,4,2           ## @TEA575X_BIT_MONO
	.no_dead_strip	_shark_read_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shark_read_val
_shark_read_val:                        ; @shark_read_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0]
	ldr	x0, [x20]
Lloh0:
	adrp	x21, _TB_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TB_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	mov	w9, #128
	str	w9, [x8]
	ldr	w19, [x20, #20]
Lloh2:
	adrp	x8, _SHARK_OUT_EP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SHARK_OUT_EP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_sndintpipe
	mov	x1, x0
	ldr	x2, [x20]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w5, #1000
	bl	_usb_interrupt_msg
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w19, [x20, #20]
Lloh5:
	adrp	x8, _SHARK_IN_EP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SHARK_IN_EP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_rcvintpipe
	mov	x1, x0
	ldr	x2, [x20]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w5, #1000
	bl	_usb_interrupt_msg
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w0, w8, w9
	str	w0, [x20, #8]
Lloh8:
	adrp	x8, _TEA575X_BIT_BAND_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEA575X_BIT_BAND_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh11:
	adrp	x9, _TEA575X_BIT_BAND_FM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TEA575X_BIT_BAND_FM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _TEA575X_BIT_MONO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TEA575X_BIT_MONO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_4:
	str	wzr, [x20, #12]
	b	LBB0_8
LBB0_5:
	mov	x2, x0
	add	x0, x20, #16
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x2, x0
	add	x0, x20, #16
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_v4l2_err
	ldr	w0, [x20, #8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TB_LEN,4,2                     ; @TB_LEN
	.comm	_SHARK_OUT_EP,4,2               ; @SHARK_OUT_EP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request-status error: %d\n"

	.comm	_SHARK_IN_EP,4,2                ; @SHARK_IN_EP
l_.str.1:                               ; @.str.1
	.asciz	"get-status error: %d\n"

	.comm	_TEA575X_BIT_BAND_MASK,4,2      ; @TEA575X_BIT_BAND_MASK
	.comm	_TEA575X_BIT_BAND_FM,4,2        ; @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_BIT_MONO,4,2           ; @TEA575X_BIT_MONO
	.no_dead_strip	_shark_read_val
.subsections_via_symbols
