	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_event
_fill_event:                            ## @fill_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_V4L2_EVENT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	40(%r14), %eax
	movl	%eax, 40(%rbx)
	movl	%r15d, 36(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_user_flags
	movl	%eax, 32(%rbx)
	cmpq	$0, 32(%r14)
	jne	LBB0_2
## %bb.1:
	movq	24(%r14), %rax
	movq	(%rax), %r12
LBB0_2:
	movq	%r12, 24(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rcx
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.3:
	movq	_V4L2_CTRL_TYPE_INTEGER_MENU@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:
	movl	8(%r14), %eax
LBB0_5:
	movl	%eax, 8(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 12(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EVENT_CTRL,4,2            ## @V4L2_EVENT_CTRL
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ## @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,8,3 ## @V4L2_CTRL_TYPE_INTEGER_MENU
	.no_dead_strip	_fill_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_event
_fill_event:                            ; @fill_event
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _V4L2_EVENT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EVENT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w8, [x20, #40]
	stp	w21, w8, [x19, #36]
	ldr	x8, [x20]
	str	x8, [x19]
	mov	x0, x20
	bl	_user_flags
	str	w0, [x19, #32]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x8, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
LBB0_3:
	str	x8, [x19, #24]
	ldr	d0, [x20, #16]
	str	d0, [x19, #16]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20, #8]
LBB0_6:
	str	w8, [x19, #8]
	ldr	w8, [x20, #12]
	str	w8, [x19, #12]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EVENT_CTRL,4,2            ; @V4L2_EVENT_CTRL
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ; @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,8,3 ; @V4L2_CTRL_TYPE_INTEGER_MENU
	.no_dead_strip	_fill_event
.subsections_via_symbols
