	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_cx2341x_set
_ctrl_cx2341x_set:                      ## @ctrl_cx2341x_set
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, -48(%rbp)
	movl	$1, -64(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	%r14d, -84(%rbp)
	leaq	8(%r13), %rbx
	movl	12(%r13), %esi
	movq	_VIDIOC_S_EXT_CTRLS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_cx2341x_ext_ctrls
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %ecx
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cx2341x_ext_ctrls
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	$1, (%r13)
	jmp	LBB0_4
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movl	$1, 4(%r13)
	xorl	%eax, %eax
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDIOC_S_EXT_CTRLS,4,2         ## @VIDIOC_S_EXT_CTRLS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ctrl_cx2341x_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_cx2341x_set
_ctrl_cx2341x_set:                      ; @ctrl_cx2341x_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	x21, [x0, #8]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x22, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	x8, [x20]
	ldr	w8, [x8]
	stp	w19, w8, [sp, #4]
	add	x19, x21, #8
	ldr	w1, [x21, #12]
Lloh0:
	adrp	x20, _VIDIOC_S_EXT_CTRLS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VIDIOC_S_EXT_CTRLS@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x2, sp, #24
	mov	x0, x19
	bl	_cx2341x_ext_ctrls
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w3, [x20]
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #0
	bl	_cx2341x_ext_ctrls
	cbnz	w0, LBB0_5
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_4
LBB0_3:
	cbnz	w0, LBB0_5
LBB0_4:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21, #4]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDIOC_S_EXT_CTRLS,4,2         ; @VIDIOC_S_EXT_CTRLS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ctrl_cx2341x_set
.subsections_via_symbols
