	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_try_init
_device_try_init:                       ## @device_try_init
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %rsi
	movl	%ebx, %edi
	callq	_ff_fmt_ff2v4l
	movl	%eax, (%r15)
	testl	%eax, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_device_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	$0, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_19
LBB0_4:
	movl	(%r15), %edi
	testl	%edi, %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_17
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $ebx
LBB0_5:
	movq	_ff_fmt_conversion_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	je	LBB0_16
## %bb.6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rax,%r12), %rdi
	addq	$16, %r12
	cmpq	%rcx, %rdi
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdx, %rdi
	jne	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_avcodec_get_name
	movl	%eax, %r14d
	movq	_ff_fmt_conversion_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%r12), %edi
	callq	_av_get_pix_fmt_name
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_av_x_if_null
	movq	%r13, %rdi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_av_log
	movq	_ff_fmt_conversion_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax,%r12), %ecx
	movl	%ecx, (%r15)
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_device_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, (%r15)
	movq	_ff_fmt_conversion_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_13
LBB0_14:
	xorl	%edi, %edi
	jmp	LBB0_15
LBB0_10:
	movl	(%r15), %edi
LBB0_15:
	testl	%edi, %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_17
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rdi
	callq	_avcodec_get_name
	movl	%eax, %ebx
	movq	(%r13), %r12
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_av_x_if_null
	movl	%r14d, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	%r12, %r8
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movl	(%r15), %edi
LBB0_17:
	callq	_ff_fmt_v4l2codec
	movl	%eax, (%r12)
	movl	%eax, %eax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_19
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_av_assert0
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ff_fmt_conversion_table,8,3    ## @ff_fmt_conversion_table
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to set codec:%s pix_fmt:%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"none"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Cannot find a proper format for codec '%s' (id %d), pixel format '%s' (id %d)\n"

	.no_dead_strip	_device_try_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_try_init
_device_try_init:                       ; @device_try_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x26, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x1, [x0]
	mov	x0, x21
	bl	_ff_fmt_ff2v4l
	str	w0, [x20]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x3, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_device_init
	mov	x25, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	str	wzr, [x20]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w25, w0
	b.ne	LBB0_16
LBB0_3:
	ldr	w0, [x20]
	cbnz	w0, LBB0_14
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w25
LBB0_5:
Lloh3:
	adrp	x19, _ff_fmt_conversion_table@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ff_fmt_conversion_table@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh5:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_13
; %bb.6:
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	mov	x26, #0
Lloh8:
	adrp	x27, l_.str@PAGE
Lloh9:
	add	x27, x27, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x8, x26
	ldr	x0, [x10, #16]
	add	x26, x26, #16
	cmp	x0, x9
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	cmp	x10, x9
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh10:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	bl	_avcodec_get_name
	mov	x28, x0
	ldr	x8, [x19]
	add	x8, x8, x26
	ldr	w0, [x8, #8]
	bl	_av_get_pix_fmt_name
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_av_x_if_null
	mov	x4, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x27
	mov	x3, x28
	bl	_av_log
	ldr	x8, [x19]
	add	x8, x8, x26
	ldr	w3, [x8, #12]
	str	w3, [x20]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_device_init
	mov	x25, x0
	tbz	w0, #31, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w25, w0
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	w0, LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	ldr	x0, [x22]
	bl	_avcodec_get_name
	mov	x24, x0
	ldr	x25, [x22]
	mov	x0, x21
	bl	_av_get_pix_fmt_name
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_av_x_if_null
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	stp	x0, x21, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x24
	mov	x4, x25
	bl	_av_log
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
	ldr	w0, [x20]
LBB0_14:
	bl	_ff_fmt_v4l2codec
	str	w0, [x26]
Lloh31:
	adrp	x8, _AV_CODEC_ID_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x8, w0, uxtw
	b.ne	LBB0_16
; %bb.15:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w25, w0
	cset	w0, eq
	bl	_av_assert0
LBB0_16:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	ldr	w0, [x20]
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	w0, LBB0_14
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ff_fmt_conversion_table,8,3    ; @ff_fmt_conversion_table
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to set codec:%s pix_fmt:%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"none"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Cannot find a proper format for codec '%s' (id %d), pixel format '%s' (id %d)\n"

	.no_dead_strip	_device_try_init
.subsections_via_symbols
