	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___v4l2_ctrl_modify_range       ## -- Begin function __v4l2_ctrl_modify_range
	.p2align	4, 0x90
___v4l2_ctrl_modify_range:              ## @__v4l2_ctrl_modify_range
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	80(%rdi), %rax
	movl	(%rax), %edi
	callq	_lockdep_assert_held
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$8, %eax
	ja	LBB0_2
## %bb.1:
	cmpl	$0, 72(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_check_range
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	cmpq	%r13, 8(%rbx)
	movq	%rcx, %r14
	jne	LBB0_8
## %bb.5:
	cmpq	%r12, 16(%rbx)
	jne	LBB0_8
## %bb.6:
	cmpq	%r15, 24(%rbx)
	jne	LBB0_8
## %bb.7:
	movb	$1, %al
	cmpq	%r14, 32(%rbx)
	je	LBB0_9
LBB0_8:
	movq	%r13, 8(%rbx)
	movq	%r12, 16(%rbx)
	movq	%r15, 24(%rbx)
	movq	%r14, 32(%rbx)
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_cur_to_new
	movq	56(%rbx), %rsi
	movq	64(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_validate_new
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	cmpl	$133, %ecx
	jne	LBB0_15
## %bb.11:
	movq	56(%rbx), %rax
	movq	%r14, (%rax)
	movq	40(%rbx), %rax
	jmp	LBB0_17
LBB0_12:
	cmpl	$133, %ecx
	jne	LBB0_21
## %bb.13:
	movq	56(%rbx), %rax
	movq	(%rax), %r14
	movq	40(%rbx), %rax
	jmp	LBB0_17
LBB0_15:
	movq	64(%rbx), %rax
	movq	%r14, (%rax)
	jmp	LBB0_16
LBB0_21:
	movq	64(%rbx), %rax
	movq	(%rax), %r14
LBB0_16:
	movq	48(%rbx), %rax
LBB0_17:
	cmpq	(%rax), %r14
	jne	LBB0_22
## %bb.18:
	xorl	%r14d, %r14d
	testb	%r15b, %r15b
	jne	LBB0_20
## %bb.19:
	movq	_V4L2_EVENT_CTRL_CH_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_send_event
	jmp	LBB0_20
LBB0_22:
	movq	_V4L2_EVENT_CTRL_CH_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_ctrl                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_EVENT_CTRL_CH_RANGE,4,2   ## @V4L2_EVENT_CTRL_CH_RANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___v4l2_ctrl_modify_range       ; -- Begin function __v4l2_ctrl_modify_range
	.p2align	2
___v4l2_ctrl_modify_range:              ; @__v4l2_ctrl_modify_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #80]
	ldr	w0, [x8]
	bl	_lockdep_assert_held
	ldr	w0, [x19]
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_2
; %bb.1:
	ldr	w8, [x19, #72]
	cbz	w8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_check_range
	cbnz	w0, LBB0_3
; %bb.5:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #16]
	cmp	x8, x22
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #24]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #32]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.9:
	mov	w24, #1
	b	LBB0_11
LBB0_10:
	mov	w24, #0
	stp	x23, x22, [x19, #8]
	stp	x21, x20, [x19, #24]
LBB0_11:
	mov	x0, x19
	bl	_cur_to_new
	ldp	x1, x2, [x19, #56]
	mov	x0, x19
	bl	_validate_new
	ldr	w8, [x19]
	cmp	w8, #133
	cbz	x0, LBB0_14
; %bb.12:
	b.ne	LBB0_17
; %bb.13:
	ldr	x8, [x19, #56]
	str	x20, [x8]
	b	LBB0_15
LBB0_14:
	b.ne	LBB0_18
LBB0_15:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
LBB0_16:
Lloh3:
	adrp	x8, _V4L2_EVENT_CTRL_CH_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_ctrl
LBB0_17:
	ldr	x8, [x19, #64]
	str	x20, [x8]
	b	LBB0_19
LBB0_18:
	ldr	x8, [x19, #64]
	ldr	x20, [x8]
LBB0_19:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_16
LBB0_20:
	tbnz	w24, #0, LBB0_22
; %bb.21:
Lloh6:
	adrp	x8, _V4L2_EVENT_CTRL_CH_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x19
	bl	_send_event
LBB0_22:
	mov	w0, #0
	b	LBB0_3
	.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_EVENT_CTRL_CH_RANGE,4,2   ; @V4L2_EVENT_CTRL_CH_RANGE
.subsections_via_symbols
