	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_s_try_ext_ctrls
_uvc_ioctl_s_try_ext_ctrls:             ## @uvc_ioctl_s_try_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_V4L2_CTRL_WHICH_DEF_VAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_2:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rsi), %rbx
	movq	(%rdi), %rdi
	callq	_uvc_ctrl_begin
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	$0, 8(%r12)
	je	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uvc_ctrl_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rbx
	incl	%r15d
	movl	8(%r12), %edx
	cmpl	%edx, %r15d
	jb	LBB0_7
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_5:
	xorl	%edx, %edx
LBB0_13:
	movl	$0, 12(%r12)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.15:
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uvc_ctrl_commit                ## TAILCALL
LBB0_8:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_uvc_ctrl_rollback
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movl	8(%r12), %r15d
LBB0_10:
	movl	%r15d, 12(%r12)
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uvc_ctrl_rollback              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ## @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uvc_ioctl_s_try_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_s_try_ext_ctrls
_uvc_ioctl_s_try_ext_ctrls:             ; @uvc_ioctl_s_try_ext_ctrls
	.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
	ldr	x8, [x1]
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_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x1, #16]
	ldr	x0, [x0]
	bl	_uvc_ctrl_begin
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.4:
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_uvc_ctrl_set
	tbnz	w0, #31, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #4
	add	w24, w24, #1
	ldr	w2, [x19, #8]
	cmp	w24, w2
	b.lo	LBB0_5
; %bb.7:
	str	wzr, [x19, #12]
	cbz	w20, LBB0_11
LBB0_8:
	ldr	x1, [x19, #16]
	mov	x0, x21
	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
	b	_uvc_ctrl_commit
LBB0_9:
	mov	x23, x0
	b	LBB0_15
LBB0_10:
	mov	w2, #0
	str	wzr, [x19, #12]
	cbnz	w20, LBB0_8
LBB0_11:
	mov	x0, x21
	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
	b	_uvc_ctrl_rollback
LBB0_12:
	mov	x23, x0
	mov	x0, x21
	bl	_uvc_ctrl_rollback
	cbz	w20, LBB0_14
; %bb.13:
	ldr	w24, [x19, #8]
LBB0_14:
	str	w24, [x19, #12]
LBB0_15:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ; @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uvc_ioctl_s_try_ext_ctrls
.subsections_via_symbols
