	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_v4l2_get_format
_uvc_v4l2_get_format:                   ## @uvc_v4l2_get_format
	.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	(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movl	8(%rax), %edx
	movl	%edx, 40(%r15)
	movl	(%rcx), %edx
	movl	%edx, 8(%r15)
	movl	4(%rcx), %ecx
	movl	%ecx, 36(%r15)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	imull	(%rax), %edx
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%r15)
	movl	12(%rbx), %ecx
	movl	%ecx, 28(%r15)
	movl	4(%rax), %eax
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_uvc_v4l2_get_format
.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_format
_uvc_v4l2_get_format:                   ; @uvc_v4l2_get_format
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldp	x9, x8, [x22, #16]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	ldr	w10, [x8, #8]
	str	w10, [x20, #40]
	ldp	w10, w9, [x9]
Lloh6:
	adrp	x11, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	stp	w11, w9, [x20, #32]
	ldp	w9, w8, [x8]
	mul	w9, w9, w10
	add	w11, w9, #7
	cmp	w9, #0
	csel	w9, w11, w9, lt
	asr	w9, w9, #3
	stp	w10, w9, [x20, #8]
	ldr	w9, [x22, #12]
	stp	w8, w9, [x20, #24]
	str	xzr, [x20, #16]
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_uvc_v4l2_get_format
.subsections_via_symbols
