	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_camera_read_close
_android_camera_read_close:             ## @android_camera_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	leaq	96(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_store
	movq	88(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_ACameraCaptureSession_stopRepeating
	movq	88(%r14), %rdi
	callq	_ACameraCaptureSession_close
	movq	$0, 88(%r14)
LBB0_2:
	movq	80(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	72(%r14), %rsi
	callq	_ACaptureRequest_removeTarget
	movq	80(%r14), %rdi
	callq	_ACaptureRequest_free
	movq	$0, 80(%r14)
LBB0_4:
	movq	72(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_ACameraOutputTarget_free
	movq	$0, 72(%r14)
LBB0_6:
	movq	64(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	48(%r14), %rdi
	callq	_ACaptureSessionOutputContainer_remove
	movq	64(%r14), %rdi
	callq	_ACaptureSessionOutput_free
	movq	$0, 64(%r14)
LBB0_8:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_ANativeWindow_release
	movq	$0, 56(%r14)
LBB0_10:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_ACaptureSessionOutputContainer_free
	movq	$0, 48(%r14)
LBB0_12:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_ACameraDevice_close
	movq	$0, 40(%r14)
LBB0_14:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_AImageReader_delete
	movq	$0, 32(%r14)
LBB0_16:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_ACameraMetadata_free
	movq	$0, 24(%r14)
LBB0_18:
	leaq	16(%r14), %rdi
	callq	_av_freep
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_ACameraManager_delete
	movq	$0, 8(%r14)
LBB0_20:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.21:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_thread_message_queue_set_err_send
	movq	(%r14), %rdi
	movq	_AV_THREAD_MESSAGE_NONBLOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %rsi
	callq	_av_thread_message_queue_recv
	testq	%rax, %rax
	js	LBB0_24
## %bb.22:
	leaq	-28(%rbp), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movq	(%r14), %rdi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_av_thread_message_queue_recv
	testq	%rax, %rax
	jns	LBB0_23
LBB0_24:
	movq	%r14, %rdi
	callq	_av_thread_message_queue_free
LBB0_25:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_THREAD_MESSAGE_NONBLOCK,4,2 ## @AV_THREAD_MESSAGE_NONBLOCK
	.no_dead_strip	_android_camera_read_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_camera_read_close
_android_camera_read_close:             ; @android_camera_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]
	add	x0, x19, #96
	mov	w1, #1
	bl	_atomic_store
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_ACameraCaptureSession_stopRepeating
	ldr	x0, [x19, #88]
	bl	_ACameraCaptureSession_close
	str	xzr, [x19, #88]
LBB0_2:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x19, #72]
	bl	_ACaptureRequest_removeTarget
	ldr	x0, [x19, #80]
	bl	_ACaptureRequest_free
	str	xzr, [x19, #80]
LBB0_4:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_ACameraOutputTarget_free
	str	xzr, [x19, #72]
LBB0_6:
	ldr	x1, [x19, #64]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	x0, [x19, #48]
	bl	_ACaptureSessionOutputContainer_remove
	ldr	x0, [x19, #64]
	bl	_ACaptureSessionOutput_free
	str	xzr, [x19, #64]
LBB0_8:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_ANativeWindow_release
	str	xzr, [x19, #56]
LBB0_10:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_ACaptureSessionOutputContainer_free
	str	xzr, [x19, #48]
LBB0_12:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_ACameraDevice_close
	str	xzr, [x19, #40]
LBB0_14:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_AImageReader_delete
	str	xzr, [x19, #32]
LBB0_16:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_ACameraMetadata_free
	str	xzr, [x19, #24]
LBB0_18:
	add	x0, x19, #16
	bl	_av_freep
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_ACameraManager_delete
	str	xzr, [x19, #8]
LBB0_20:
	ldr	x0, [x19]
	cbz	x0, LBB0_25
; %bb.21:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_av_thread_message_queue_set_err_send
	ldr	x0, [x19]
Lloh3:
	adrp	x20, _AV_THREAD_MESSAGE_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AV_THREAD_MESSAGE_NONBLOCK@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20]
	add	x1, sp, #12
	bl	_av_thread_message_queue_recv
	tbnz	x0, #63, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x0, sp, #12
	bl	_av_packet_unref
	ldr	x0, [x19]
	b	LBB0_22
LBB0_24:
	mov	x0, x19
	bl	_av_thread_message_queue_free
LBB0_25:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_THREAD_MESSAGE_NONBLOCK,4,2 ; @AV_THREAD_MESSAGE_NONBLOCK
	.no_dead_strip	_android_camera_read_close
.subsections_via_symbols
