	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_custom           ## -- Begin function v4l2_ctrl_new_custom
	.p2align	4, 0x90
_v4l2_ctrl_new_custom:                  ## @v4l2_ctrl_new_custom
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rcx
	movq	%rcx, -96(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	72(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%rsi), %eax
	movl	%eax, -44(%rbp)
	movl	64(%rsi), %edx
	movl	%edx, -64(%rbp)
	movl	60(%rsi), %edx
	movl	%edx, -60(%rbp)
	movl	56(%rsi), %edx
	movl	%edx, -56(%rbp)
	movl	52(%rsi), %edx
	movl	%edx, -52(%rbp)
	movl	48(%rsi), %edx
	movl	%edx, -48(%rbp)
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	36(%rbx), %edi
	leaq	-64(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	-96(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-52(%rbp), %r9
	pushq	%rax
	pushq	%r10
	callq	_v4l2_ctrl_fill
	addq	$16, %rsp
	movl	-44(%rbp), %eax
LBB0_2:
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	sete	%cl
	movq	_V4L2_CTRL_TYPE_INTEGER_MENU@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%r14b
	orb	%cl, %r14b
	leaq	32(%rbx), %r15
	testb	%r14b, %r14b
	leaq	-52(%rbp), %r13
	movq	%r15, %rax
	cmovneq	%r13, %rax
	movl	(%rax), %edi
	callq	_WARN_ON
	movl	-44(%rbp), %r9d
	cmpl	(%r12), %r9d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_7
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	36(%rbx), %edi
	callq	_v4l2_ctrl_get_menu
	movl	-44(%rbp), %r9d
	jmp	LBB0_5
LBB0_7:
	movq	_V4L2_CTRL_TYPE_INTEGER_MENU@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	jne	LBB0_5
## %bb.8:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_handler_set_err
	jmp	LBB0_11
LBB0_5:
	movl	44(%rbx), %esi
	movl	40(%rbx), %edx
	movl	36(%rbx), %ecx
	movq	-96(%rbp), %r8
	movl	-60(%rbp), %edi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r11d
	testb	%r14b, %r14b
	cmovneq	%r15, %r13
	movl	(%r13), %r14d
	movl	-48(%rbp), %r15d
	movl	24(%rbx), %r13d
	movl	28(%rbx), %r12d
	movl	-64(%rbp), %r10d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	pushq	%r13
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_v4l2_ctrl_new
	addq	$80, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r14
	movl	20(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ## @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,4,2 ## @V4L2_CTRL_TYPE_INTEGER_MENU
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_custom           ; -- Begin function v4l2_ctrl_new_custom
	.p2align	2
_v4l2_ctrl_new_custom:                  ; @v4l2_ctrl_new_custom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	x9, x22, [x1]
	str	x9, [sp, #72]
	ldr	x23, [x1, #72]
	ldr	w11, [x1, #64]
	ldp	w10, w8, [x1, #56]
	stp	w8, w11, [sp, #60]
	str	w10, [sp, #56]
	ldp	w10, w8, [x1, #48]
	stp	w10, w8, [sp, #48]
	ldr	w8, [x1, #16]
	str	w8, [sp, #68]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	w0, [x19, #36]
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #60
	add	x4, sp, #56
	add	x5, sp, #52
	add	x6, sp, #48
	add	x7, sp, #64
	bl	_v4l2_ctrl_fill
	ldr	w8, [sp, #68]
LBB0_2:
Lloh0:
	adrp	x26, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x26, [x26, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w8, w9
Lloh2:
	adrp	x25, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGE
Lloh3:
	ldr	x25, [x25, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGEOFF]
	ldr	w9, [x25]
	ccmp	w8, w9, #4, ne
	cset	w24, eq
	add	x8, x19, #32
	add	x9, sp, #52
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	bl	_WARN_ON
	ldr	w5, [sp, #68]
	ldr	w8, [x26]
	cmp	w5, w8
	b.ne	LBB0_5
; %bb.3:
	cbnz	x22, LBB0_5
; %bb.4:
	ldr	w0, [x19, #36]
	bl	_v4l2_ctrl_get_menu
	mov	x22, x0
	ldr	w5, [sp, #68]
	b	LBB0_8
LBB0_5:
	ldr	w8, [x25]
	cmp	w5, w8
	b.ne	LBB0_8
; %bb.6:
	cbnz	x23, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x20
	bl	_handler_set_err
	mov	x0, #0
	b	LBB0_10
LBB0_8:
	ldp	w2, w1, [x19, #40]
	ldr	w3, [x19, #36]
	ldr	x4, [sp, #72]
	ldp	w7, w6, [sp, #56]
	add	x8, x19, #32
	cmp	w24, #0
	add	x9, sp, #52
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	ldp	w11, w10, [x19, #24]
	ldr	w12, [sp, #64]
	stp	x23, x21, [sp, #32]
	str	x22, [sp, #24]
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	bl	_v4l2_ctrl_new
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x19, #20]
	str	w8, [x0]
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ; @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,4,2 ; @V4L2_CTRL_TYPE_INTEGER_MENU
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
