	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_to_cur
_new_to_cur:                            ## @new_to_cur
	.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
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	40(%rbx), %edx
	movl	44(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ptr_to_ptr
LBB0_3:
	movq	_V4L2_EVENT_CTRL_CH_FLAGS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %r13
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r13), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_is_cur_manual
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	4(%rbx), %eax
	orl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movq	32(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	orl	(%r15), %eax
	movl	%eax, 4(%rbx)
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r12d, %eax
	orl	%r14d, %eax
	je	LBB0_14
## %bb.9:
	xorl	%eax, %eax
	cmpl	$0, 24(%rbx)
	cmoveq	%rax, %r15
	movl	%r12d, %edx
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movq	_V4L2_EVENT_CTRL_CH_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_11:
	orl	%r14d, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_send_event
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EVENT_CTRL_CH_FLAGS,4,2   ## @V4L2_EVENT_CTRL_CH_FLAGS
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_EVENT_CTRL_CH_VALUE,4,2   ## @V4L2_EVENT_CTRL_CH_VALUE
	.no_dead_strip	_new_to_cur
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_to_cur
_new_to_cur:                            ; @new_to_cur
	.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
	cbz	x1, LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w22, [x1]
	cbz	w22, LBB0_3
; %bb.2:
	ldp	w2, w1, [x19, #40]
	mov	x0, x19
	bl	_ptr_to_ptr
LBB0_3:
Lloh0:
	adrp	x8, _V4L2_EVENT_CTRL_CH_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
Lloh3:
	adrp	x21, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x23, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	bl	_is_cur_manual
	cbz	w0, LBB0_6
LBB0_5:
	mov	x21, #0
	orr	w8, w22, w20
	cbnz	w8, LBB0_9
	b	LBB0_13
LBB0_6:
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.7:
	mov	x21, #0
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
	orr	w8, w22, w20
	cbz	w8, LBB0_13
LBB0_9:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	csel	x0, xzr, x21, eq
Lloh7:
	adrp	x8, _V4L2_EVENT_CTRL_CH_VALUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_VALUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w8, w8, wzr, ne
	orr	w2, w8, w20
	mov	x1, x19
	bl	_send_event
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.10:
	cbz	w22, LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_13
; %bb.12:
	ldr	w1, [x8]
	mov	x0, 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
	br	x2
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EVENT_CTRL_CH_FLAGS,4,2   ; @V4L2_EVENT_CTRL_CH_FLAGS
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_EVENT_CTRL_CH_VALUE,4,2   ; @V4L2_EVENT_CTRL_CH_VALUE
	.no_dead_strip	_new_to_cur
.subsections_via_symbols
