	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_vidioc_g_ctrl
_si470x_vidioc_g_ctrl:                  ## @si470x_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_si470x_disconnect_check
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	testl	%ebx, %ebx
	jns	LBB0_8
LBB0_7:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movq	_SYSCONFIG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SYSCONFIG2_VOLUME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax,%rcx,4), %edx
	movl	%edx, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	_POWERCFG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_POWERCFG_DMUTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	andl	(%rax,%rcx,4), %edx
	sete	%sil
	movl	%esi, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_7
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCONFIG2,8,3                 ## @SYSCONFIG2
	.comm	_SYSCONFIG2_VOLUME,4,2          ## @SYSCONFIG2_VOLUME
	.comm	_POWERCFG,8,3                   ## @POWERCFG
	.comm	_POWERCFG_DMUTE,4,2             ## @POWERCFG_DMUTE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get control failed with %d\n"

	.no_dead_strip	_si470x_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 si470x_vidioc_g_ctrl
_si470x_vidioc_g_ctrl:                  ; @si470x_vidioc_g_ctrl
	.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	x20, x2
	bl	_video_drvdata
	mov	x21, x0
	bl	_si470x_disconnect_check
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.1:
	tbz	w19, #31, LBB0_8
LBB0_2:
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
	mov	w19, #0
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _SYSCONFIG2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SYSCONFIG2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _SYSCONFIG2_VOLUME@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SYSCONFIG2_VOLUME@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_6:
	mov	w19, #0
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _POWERCFG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _POWERCFG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh11:
	adrp	x9, _POWERCFG_DMUTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POWERCFG_DMUTE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
	tbnz	w19, #31, LBB0_2
LBB0_8:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCONFIG2,8,3                 ; @SYSCONFIG2
	.comm	_SYSCONFIG2_VOLUME,4,2          ; @SYSCONFIG2_VOLUME
	.comm	_POWERCFG,8,3                   ; @POWERCFG
	.comm	_POWERCFG_DMUTE,4,2             ; @POWERCFG_DMUTE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get control failed with %d\n"

	.no_dead_strip	_si470x_vidioc_g_ctrl
.subsections_via_symbols
