	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_g_ext_ctrls
_uvc_ioctl_g_ext_ctrls:                 ## @uvc_ioctl_g_ext_ctrls
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rsi), %r14
	movq	(%rdx), %rax
	movq	16(%rdx), %r13
	movq	_V4L2_CTRL_WHICH_DEF_VAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 8(%r15)
	je	LBB0_12
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -48(%rbp)
	movl	4(%r13,%r12,8), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_uvc_query_v4l2_ctrl
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, (%r13,%r12,8)
	incq	%r12
	cmpl	8(%r15), %r12d
	jb	LBB0_3
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	%rsi, %r12
	movq	%r14, %rdi
	callq	_uvc_ctrl_begin
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r15)
	je	LBB0_11
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_uvc_ctrl_get
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %r13
	incl	%r12d
	cmpl	8(%r15), %r12d
	jb	LBB0_9
LBB0_11:
	movl	$0, 12(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uvc_ctrl_rollback              ## TAILCALL
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %ebx
	movl	%r12d, 12(%r15)
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_uvc_ctrl_rollback
	movl	%r12d, 12(%r15)
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ## @V4L2_CTRL_WHICH_DEF_VAL
	.no_dead_strip	_uvc_ioctl_g_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ioctl_g_ext_ctrls
_uvc_ioctl_g_ext_ctrls:                 ; @uvc_ioctl_g_ext_ctrls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	ldr	x20, [x1]
	ldr	x22, [x2, #16]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w21, #0
	add	x22, x22, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	stp	wzr, w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_uvc_query_v4l2_ctrl
	tbnz	w0, #31, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	stur	w8, [x22, #-4]
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	add	x22, x22, #8
	cmp	w21, w8
	b.lo	LBB0_3
LBB0_5:
	mov	w23, #0
	b	LBB0_15
LBB0_6:
	mov	x21, x1
	mov	x0, x20
	bl	_uvc_ctrl_begin
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.8:
	mov	w24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_uvc_ctrl_get
	tbnz	w0, #31, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #8
	add	w24, w24, #1
	ldr	w8, [x19, #8]
	cmp	w24, w8
	b.lo	LBB0_9
LBB0_11:
	str	wzr, [x19, #12]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_uvc_ctrl_rollback
LBB0_12:
	mov	x23, x0
	b	LBB0_15
LBB0_13:
	mov	x23, x0
	str	w21, [x19, #12]
	b	LBB0_15
LBB0_14:
	mov	x23, x0
	mov	x0, x21
	bl	_uvc_ctrl_rollback
	str	w24, [x19, #12]
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ; @V4L2_CTRL_WHICH_DEF_VAL
	.no_dead_strip	_uvc_ioctl_g_ext_ctrls
.subsections_via_symbols
