	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_capture_session
_create_capture_session:                ## @create_capture_session
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	32(%r15), %rbx
	movq	%rbx, %rdi
	callq	_ACaptureSessionOutputContainer_create
	movq	_ACAMERA_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movl	48(%r15), %edi
	callq	_ANativeWindow_acquire
	movl	48(%r15), %edi
	leaq	52(%r15), %r12
	movq	%r12, %rsi
	callq	_ACaptureSessionOutput_create
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_ACaptureSessionOutputContainer_add
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:
	movl	48(%r15), %edi
	leaq	40(%r15), %rsi
	callq	_ACameraOutputTarget_create
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.8:
	movl	36(%r15), %edi
	movq	_TEMPLATE_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ACameraDevice_createCaptureRequest
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.10:
	movq	_ACAMERA_CONTROL_AE_TARGET_FPS_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edi
	movl	44(%r15), %ecx
	movl	$2, %edx
	callq	_ACaptureRequest_setEntry_i32
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.12:
	movl	(%r15), %edi
	movl	40(%r15), %esi
	callq	_ACaptureRequest_addTarget
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.14:
	leaq	8(%r15), %rdx
	movq	%r14, 24(%r15)
	movq	_capture_session_closed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_capture_session_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_capture_session_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	leaq	4(%r15), %rcx
	callq	_ACameraDevice_createCaptureSession
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.16:
	movl	4(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_ACameraCaptureSession_setRepeatingRequest
	cmpq	(%r13), %rax
	je	LBB0_19
## %bb.17:
	leaq	L_.str.8(%rip), %r15
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_18
LBB0_7:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.4(%rip), %r15
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.6(%rip), %r15
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.7(%rip), %r15
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_camera_status_string
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACAMERA_OK,8,3                 ## @ACAMERA_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create capture session output container, error: %s.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create capture session container, error: %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to add output to output container, error: %s.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create camera output target, error: %s.\n"

	.comm	_TEMPLATE_RECORD,4,2            ## @TEMPLATE_RECORD
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create capture request, error: %s.\n"

	.comm	_ACAMERA_CONTROL_AE_TARGET_FPS_RANGE,4,2 ## @ACAMERA_CONTROL_AE_TARGET_FPS_RANGE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to set target fps range in capture request, error: %s.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to add capture request capture request, error: %s.\n"

	.comm	_capture_session_closed,4,2     ## @capture_session_closed
	.comm	_capture_session_ready,4,2      ## @capture_session_ready
	.comm	_capture_session_active,4,2     ## @capture_session_active
L_.str.7:                               ## @.str.7
	.asciz	"Failed to create capture session, error: %s.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to set repeating request on capture session, error: %s.\n"

	.no_dead_strip	_create_capture_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_capture_session
_create_capture_session:                ; @create_capture_session
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
	add	x21, x20, #32
	mov	x0, x21
	bl	_ACaptureSessionOutputContainer_create
Lloh0:
	adrp	x23, _ACAMERA_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ACAMERA_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	w0, [x20, #48]
	bl	_ANativeWindow_acquire
	ldr	w0, [x20, #48]
	add	x22, x20, #52
	mov	x1, x22
	bl	_ACaptureSessionOutput_create
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_ACaptureSessionOutputContainer_add
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.3:
	ldr	w0, [x20, #48]
	add	x1, x20, #40
	bl	_ACameraOutputTarget_create
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.4:
	ldr	w0, [x20, #36]
Lloh2:
	adrp	x8, _TEMPLATE_RECORD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEMPLATE_RECORD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ACameraDevice_createCaptureRequest
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _ACAMERA_CONTROL_AE_TARGET_FPS_RANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACAMERA_CONTROL_AE_TARGET_FPS_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x20, #44]
	mov	w2, #2
	bl	_ACaptureRequest_setEntry_i32
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.6:
	ldr	w0, [x20]
	ldr	w1, [x20, #40]
	bl	_ACaptureRequest_addTarget
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.7:
Lloh8:
	adrp	x8, _capture_session_active@GOTPAGE
Lloh9:
	ldr	x8, [x8, _capture_session_active@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x2, x20
	str	w8, [x2, #8]!
	str	x19, [x2, #16]
Lloh11:
	adrp	x8, _capture_session_closed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _capture_session_closed@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _capture_session_ready@GOTPAGE
Lloh15:
	ldr	x9, [x9, _capture_session_ready@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #4]
	ldp	w1, w0, [x2, #24]
	sub	x3, x2, #4
	bl	_ACameraDevice_createCaptureSession
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.8:
	ldr	w0, [x20, #4]
	mov	x1, #0
	mov	w2, #1
	mov	x3, x20
	mov	x4, #0
	bl	_ACameraCaptureSession_setRepeatingRequest
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.9:
	mov	w0, #0
	b	LBB0_20
LBB0_10:
Lloh17:
	adrp	x20, l_.str@PAGE
Lloh18:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_19
LBB0_11:
Lloh19:
	adrp	x20, l_.str.1@PAGE
Lloh20:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_12:
Lloh21:
	adrp	x20, l_.str.2@PAGE
Lloh22:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_13:
Lloh23:
	adrp	x20, l_.str.3@PAGE
Lloh24:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_14:
Lloh25:
	adrp	x20, l_.str.4@PAGE
Lloh26:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh27:
	adrp	x20, l_.str.5@PAGE
Lloh28:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh29:
	adrp	x20, l_.str.6@PAGE
Lloh30:
	add	x20, x20, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh31:
	adrp	x20, l_.str.7@PAGE
Lloh32:
	add	x20, x20, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh33:
	adrp	x20, l_.str.8@PAGE
Lloh34:
	add	x20, x20, l_.str.8@PAGEOFF
LBB0_19:
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	bl	_camera_status_string
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_av_log
Lloh38:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
LBB0_20:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ACAMERA_OK,8,3                 ; @ACAMERA_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create capture session output container, error: %s.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create capture session container, error: %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to add output to output container, error: %s.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create camera output target, error: %s.\n"

	.comm	_TEMPLATE_RECORD,4,2            ; @TEMPLATE_RECORD
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create capture request, error: %s.\n"

	.comm	_ACAMERA_CONTROL_AE_TARGET_FPS_RANGE,4,2 ; @ACAMERA_CONTROL_AE_TARGET_FPS_RANGE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to set target fps range in capture request, error: %s.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to add capture request capture request, error: %s.\n"

	.comm	_capture_session_closed,4,2     ; @capture_session_closed
	.comm	_capture_session_ready,4,2      ; @capture_session_ready
	.comm	_capture_session_active,4,2     ; @capture_session_active
l_.str.7:                               ; @.str.7
	.asciz	"Failed to create capture session, error: %s.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to set repeating request on capture session, error: %s.\n"

	.no_dead_strip	_create_capture_session
.subsections_via_symbols
