	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_set_le_value
_uvc_set_le_value:                      ## @uvc_set_le_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movl	4(%rdi), %ecx
	movl	%ecx, %r8d
	andl	$7, %r8d
	leal	7(%rcx), %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	sarl	$3, %r9d
	movq	8(%rdi), %rcx
	movq	_V4L2_CTRL_TYPE_BUTTON@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	movl	$-1, %ecx
	cmovel	%ecx, %esi
	movq	$-1, %r10
	movl	%eax, %ecx
	shlq	%cl, %r10
	notl	%r10d
	movl	%r8d, %ecx
	shll	%cl, %r10d
	movl	%esi, %edi
	shll	%cl, %edi
	movslq	%r9d, %r9
	movl	(%rdx,%r9,4), %ecx
	xorl	%ecx, %edi
	andl	%r10d, %edi
	xorl	%ecx, %edi
	movl	%edi, (%rdx,%r9,4)
	leal	(%rax,%r8), %ecx
	addl	$-8, %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:
	testl	%r8d, %r8d
	movl	$8, %ecx
	cmovnel	%r8d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	addl	%r8d, %eax
	leaq	(%rdx,%r9,4), %rdx
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	$-8, %eax
	movq	$-1, %rdi
	movl	%eax, %ecx
	shlq	%cl, %rdi
	movl	(%rdx), %ecx
	xorl	%esi, %ecx
	andl	%edi, %ecx
	xorl	%esi, %ecx
	movl	%ecx, (%rdx)
	sarl	$8, %esi
	addq	$4, %rdx
	cmpl	$8, %eax
	jg	LBB0_3
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_TYPE_BUTTON,8,3      ## @V4L2_CTRL_TYPE_BUTTON
	.no_dead_strip	_uvc_set_le_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_set_le_value
_uvc_set_le_value:                      ; @uvc_set_le_value
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x0, #4]
	and	x10, x8, #0x7
	add	w11, w8, #7
	cmp	w8, #0
	csel	w11, w11, w8, lt
	asr	w8, w11, #3
	sbfiz	x13, x8, #2, #32
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x12, _V4L2_CTRL_TYPE_BUTTON@GOTPAGE
Lloh1:
	ldr	x12, [x12, _V4L2_CTRL_TYPE_BUTTON@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x8, x12
	csinv	w12, w1, wzr, ne
	mov	x8, #-1
	lsl	x14, x8, x9
	mvn	w14, w14
	lsl	w14, w14, w10
	ldr	w15, [x2, x13]
	bic	w15, w15, w14
	lsl	w16, w12, w10
	and	w14, w16, w14
	orr	w14, w15, w14
	str	w14, [x2, x13]
	add	w13, w9, w10
	sub	w13, w13, #8
	cmp	w13, #1
	b.lt	LBB0_4
; %bb.2:
	sbfx	x13, x11, #3, #29
	mov	w11, #8
	cmp	w10, #0
	csel	w11, w11, w10, eq
	asr	w11, w12, w11
	add	w9, w9, w10
	add	x10, x2, x13, lsl #2
	add	x10, x10, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w9, #8
	lsl	x12, x8, x9
	ldr	w13, [x10]
	and	w13, w13, w12
	bic	w12, w11, w12
	orr	w12, w13, w12
	str	w12, [x10], #4
	asr	w11, w11, #8
	cmp	w9, #8
	b.gt	LBB0_3
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_BUTTON,8,3      ; @V4L2_CTRL_TYPE_BUTTON
	.no_dead_strip	_uvc_set_le_value
.subsections_via_symbols
