	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_ctrl
_vidioc_g_ctrl:                         ## @vidioc_g_ctrl
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rsi), %r15
	movl	4(%rdx), %edi
	callq	_check_control_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_TUNER_CUSTOM_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movl	$4, %r9d
	callq	_send_get_req
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	$-1, %eax
	orq	-40(%rbp), %rbx
	jne	LBB0_4
## %bb.3:
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TUNER_CUSTOM_PARAMETER,4,2     ## @TUNER_CUSTOM_PARAMETER
	.no_dead_strip	_vidioc_g_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_ctrl
_vidioc_g_ctrl:                         ; @vidioc_g_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	ldr	x20, [x1]
	ldr	w0, [x2, #4]
	bl	_check_control_id
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _TUNER_CUSTOM_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUNER_CUSTOM_PARAMETER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	w5, #4
	bl	_send_get_req
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [sp]
	orr	x8, x21, x8
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TUNER_CUSTOM_PARAMETER,4,2     ; @TUNER_CUSTOM_PARAMETER
	.no_dead_strip	_vidioc_g_ctrl
.subsections_via_symbols
