	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grab_read_close
_grab_read_close:                       ## @grab_read_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	_METEOR_CAP_STOP_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	4(%rbx), %edi
	movq	_METEORCAPTUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %r14
	movq	%r14, %rdx
	callq	_ioctl
	movl	4(%rbx), %edi
	callq	_close
	movq	_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	(%rbx), %edi
	movq	_BT848_SAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	movl	(%rbx), %edi
	callq	_close
	movq	_video_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_video_buf_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_munmap
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METEOR_CAP_STOP_CONT,4,2       ## @METEOR_CAP_STOP_CONT
	.comm	_METEORCAPTUR,4,2               ## @METEORCAPTUR
	.comm	_AUDIO_MUTE,4,2                 ## @AUDIO_MUTE
	.comm	_BT848_SAUDIO,4,2               ## @BT848_SAUDIO
	.comm	_video_buf,8,3                  ## @video_buf
	.comm	_video_buf_size,4,2             ## @video_buf_size
	.no_dead_strip	_grab_read_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grab_read_close
_grab_read_close:                       ; @grab_read_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _METEOR_CAP_STOP_CONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METEOR_CAP_STOP_CONT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _METEORCAPTUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METEORCAPTUR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	ldr	w0, [x19, #4]
	bl	_close
Lloh6:
	adrp	x8, _AUDIO_MUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIO_MUTE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _BT848_SAUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BT848_SAUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	ldr	w0, [x19]
	bl	_close
Lloh12:
	adrp	x8, _video_buf@GOTPAGE
Lloh13:
	ldr	x8, [x8, _video_buf@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _video_buf_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _video_buf_size@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_munmap
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_METEOR_CAP_STOP_CONT,4,2       ; @METEOR_CAP_STOP_CONT
	.comm	_METEORCAPTUR,4,2               ; @METEORCAPTUR
	.comm	_AUDIO_MUTE,4,2                 ; @AUDIO_MUTE
	.comm	_BT848_SAUDIO,4,2               ; @BT848_SAUDIO
	.comm	_video_buf,8,3                  ; @video_buf
	.comm	_video_buf_size,4,2             ; @video_buf_size
	.no_dead_strip	_grab_read_close
.subsections_via_symbols
