	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_v4l2_get_streamparm
_uvc_v4l2_get_streamparm:               ## @uvc_v4l2_get_streamparm
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%r15), %rax
	movq	%rax, -40(%rbp)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	$10000000, -32(%rbp)            ## imm = 0x989680
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	movl	$333, %ecx                      ## imm = 0x14D
	callq	_uvc_simplify_fraction
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	(%r15), %rcx
	movq	%rcx, (%rbx)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	movq	_V4L2_CAP_TIMEPERFRAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	%rax, 80(%rbx)
	movq	$0, 72(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, 64(%rbx)
	movq	-32(%rbp), %rax
	movq	%rax, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-32(%rbp), %rax
	movq	%rax, 8(%rbx)
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_CAP_TIMEPERFRAME,8,3      ## @V4L2_CAP_TIMEPERFRAME
	.no_dead_strip	_uvc_v4l2_get_streamparm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_v4l2_get_streamparm
_uvc_v4l2_get_streamparm:               ; @uvc_v4l2_get_streamparm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	str	x8, [sp, #8]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w8, #38528
	movk	w8, #152, lsl #16
	str	x8, [sp]
	add	x0, sp, #8
	mov	x1, sp
	mov	w2, #8
	mov	w3, #333
	bl	_uvc_simplify_fraction
	mov	x0, x19
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	str	x9, [x19]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _V4L2_CAP_TIMEPERFRAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CAP_TIMEPERFRAME@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	stp	xzr, x8, [x19, #72]
	ldp	x9, x8, [sp]
	stp	x9, x8, [x19, #56]
	stp	xzr, xzr, [x19, #40]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	stp	xzr, x8, [x19, #24]
	ldp	x9, x8, [sp]
	stp	x9, x8, [x19, #8]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_CAP_TIMEPERFRAME,8,3      ; @V4L2_CAP_TIMEPERFRAME
	.no_dead_strip	_uvc_v4l2_get_streamparm
.subsections_via_symbols
