	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_init
_device_init:                           ## @device_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -72(%rbp)
	movl	(%rdx), %eax
	movl	%eax, -68(%rbp)
	movl	%r15d, -56(%rbp)
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %edi
	movq	_VIDIOC_S_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_v4l2_ioctl
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_2:
	movl	(%rbx), %ecx
	movl	-72(%rbp), %r9d
	movl	-68(%rbp), %eax
	movl	(%r12), %r8d
	cmpl	%r9d, %ecx
	jne	LBB0_4
## %bb.3:
	cmpl	%eax, %r8d
	je	LBB0_5
LBB0_4:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	-72(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-68(%rbp), %eax
	movl	%eax, (%r12)
LBB0_5:
	movl	-56(%rbp), %r8d
	cmpl	%r15d, %r8d
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_7:
	movq	-64(%rbp), %rax
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_9:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_VIDIOC_S_FMT,4,2               ## @VIDIOC_S_FMT
	.comm	_errno,4,2                      ## @errno
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The V4L2 driver changed the video from %dx%d to %dx%d\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"The V4L2 driver changed the pixel format from 0x%08X to 0x%08X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
L_.str.2:                               ## @.str.2
	.asciz	"The V4L2 driver is using the interlaced mode\n"

	.no_dead_strip	_device_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_init
_device_init:                           ; @device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0]
	str	xzr, [sp, #56]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	ldr	w8, [x1]
	ldr	w9, [x2]
	stp	w8, w9, [sp, #32]
Lloh3:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #40]
	str	w3, [sp, #48]
	ldr	w0, [x24, #4]
Lloh6:
	adrp	x8, _VIDIOC_S_FMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDIOC_S_FMT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_v4l2_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
LBB0_3:
	ldr	w8, [x22]
	ldr	w9, [x21]
	ldp	w10, w11, [sp, #32]
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.4:
	cmp	w9, w11
	b.eq	LBB0_6
LBB0_5:
Lloh12:
	adrp	x12, _AV_LOG_INFO@GOTPAGE
Lloh13:
	ldr	x12, [x12, _AV_LOG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x12]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldp	w8, w9, [sp, #32]
	str	w8, [x22]
	str	w9, [x21]
LBB0_6:
	ldr	w8, [sp, #48]
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh17:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	stp	x20, x8, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
LBB0_8:
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh28:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w8, #1
	str	w8, [x24]
LBB0_10:
	mov	x0, x23
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_VIDIOC_S_FMT,4,2               ; @VIDIOC_S_FMT
	.comm	_errno,4,2                      ; @errno
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The V4L2 driver changed the video from %dx%d to %dx%d\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"The V4L2 driver changed the pixel format from 0x%08X to 0x%08X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
l_.str.2:                               ; @.str.2
	.asciz	"The V4L2 driver is using the interlaced mode\n"

	.no_dead_strip	_device_init
.subsections_via_symbols
