	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ctrl_get_flags
_uvc_ctrl_get_flags:                    ## @uvc_ctrl_get_flags
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_UVC_GET_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movl	4(%r14), %r8d
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %r9
	callq	_uvc_query_ctrl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movl	(%r15), %eax
	movq	_UVC_CONTROL_CAP_GET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movq	_UVC_CTRL_FLAG_GET_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_5:
	movq	_UVC_CONTROL_CAP_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	movq	_UVC_CTRL_FLAG_SET_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	orl	%edx, %ecx
	movq	_UVC_CONTROL_CAP_AUTOUPDATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_9
## %bb.8:
	movq	_UVC_CTRL_FLAG_AUTO_UPDATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_9:
	orl	%edx, %ecx
	movq	_UVC_CONTROL_CAP_ASYNCHRONOUS@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_11
## %bb.10:
	movq	_UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	(%r14), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_12:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_GET_INFO,4,2               ## @UVC_GET_INFO
	.comm	_UVC_CONTROL_CAP_GET,4,2        ## @UVC_CONTROL_CAP_GET
	.comm	_UVC_CTRL_FLAG_GET_CUR,4,2      ## @UVC_CTRL_FLAG_GET_CUR
	.comm	_UVC_CONTROL_CAP_SET,4,2        ## @UVC_CONTROL_CAP_SET
	.comm	_UVC_CTRL_FLAG_SET_CUR,4,2      ## @UVC_CTRL_FLAG_SET_CUR
	.comm	_UVC_CONTROL_CAP_AUTOUPDATE,4,2 ## @UVC_CONTROL_CAP_AUTOUPDATE
	.comm	_UVC_CTRL_FLAG_AUTO_UPDATE,4,2  ## @UVC_CTRL_FLAG_AUTO_UPDATE
	.comm	_UVC_CONTROL_CAP_ASYNCHRONOUS,4,2 ## @UVC_CONTROL_CAP_ASYNCHRONOUS
	.comm	_UVC_CTRL_FLAG_ASYNCHRONOUS,4,2 ## @UVC_CTRL_FLAG_ASYNCHRONOUS
	.no_dead_strip	_uvc_ctrl_get_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ctrl_get_flags
_uvc_ctrl_get_flags:                    ; @uvc_ctrl_get_flags
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _UVC_GET_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_GET_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	ldr	w3, [x21]
	ldr	w4, [x19, #4]
	mov	x0, x21
	mov	x5, x20
	mov	w6, #1
	bl	_uvc_query_ctrl
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _UVC_CONTROL_CAP_GET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UVC_CONTROL_CAP_GET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _UVC_CTRL_FLAG_GET_CUR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _UVC_CTRL_FLAG_GET_CUR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh12:
	adrp	x10, _UVC_CONTROL_CAP_SET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UVC_CONTROL_CAP_SET@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _UVC_CTRL_FLAG_SET_CUR@GOTPAGE
Lloh16:
	ldr	x11, [x11, _UVC_CTRL_FLAG_SET_CUR@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _UVC_CONTROL_CAP_AUTOUPDATE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _UVC_CONTROL_CAP_AUTOUPDATE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _UVC_CTRL_FLAG_AUTO_UPDATE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _UVC_CTRL_FLAG_AUTO_UPDATE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _UVC_CONTROL_CAP_ASYNCHRONOUS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _UVC_CONTROL_CAP_ASYNCHRONOUS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPAGE
Lloh28:
	ldr	x11, [x11, _UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	ldr	w10, [x19]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_GET_INFO,4,2               ; @UVC_GET_INFO
	.comm	_UVC_CONTROL_CAP_GET,4,2        ; @UVC_CONTROL_CAP_GET
	.comm	_UVC_CTRL_FLAG_GET_CUR,4,2      ; @UVC_CTRL_FLAG_GET_CUR
	.comm	_UVC_CONTROL_CAP_SET,4,2        ; @UVC_CONTROL_CAP_SET
	.comm	_UVC_CTRL_FLAG_SET_CUR,4,2      ; @UVC_CTRL_FLAG_SET_CUR
	.comm	_UVC_CONTROL_CAP_AUTOUPDATE,4,2 ; @UVC_CONTROL_CAP_AUTOUPDATE
	.comm	_UVC_CTRL_FLAG_AUTO_UPDATE,4,2  ; @UVC_CTRL_FLAG_AUTO_UPDATE
	.comm	_UVC_CONTROL_CAP_ASYNCHRONOUS,4,2 ; @UVC_CONTROL_CAP_ASYNCHRONOUS
	.comm	_UVC_CTRL_FLAG_ASYNCHRONOUS,4,2 ; @UVC_CTRL_FLAG_ASYNCHRONOUS
	.no_dead_strip	_uvc_ctrl_get_flags
.subsections_via_symbols
