	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_fops_open
_si470x_fops_open:                      ## @si470x_fops_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_v4l2_fh_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_v4l2_fh_is_singular_file
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	callq	_si470x_start
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_SYSCONFIG1_RDSIEN@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	movq	_SYSCONFIG1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rcx,%rsi,4), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx,%rsi,4)
	movq	_SYSCONFIG1_STCIEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rcx,%rsi,4)
	movq	_SYSCONFIG1_GPIO2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	orl	$4, %eax
	movl	%eax, (%rcx,%rsi,4)
	movq	%r15, %rdi
	callq	_si470x_set_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r12d
LBB0_5:
	movq	%r14, %rdi
	callq	_v4l2_fh_release
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCONFIG1_RDSIEN,4,2          ## @SYSCONFIG1_RDSIEN
	.comm	_SYSCONFIG1,8,3                 ## @SYSCONFIG1
	.comm	_SYSCONFIG1_STCIEN,4,2          ## @SYSCONFIG1_STCIEN
	.comm	_SYSCONFIG1_GPIO2,4,2           ## @SYSCONFIG1_GPIO2
	.no_dead_strip	_si470x_fops_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_fops_open
_si470x_fops_open:                      ; @si470x_fops_open
	.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	x19, x0
	bl	_video_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_v4l2_fh_open
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_si470x_start
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _SYSCONFIG1_RDSIEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSCONFIG1_RDSIEN@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _SYSCONFIG1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SYSCONFIG1@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w11, w8
	str	w8, [x9, x10]
Lloh6:
	adrp	x11, _SYSCONFIG1_STCIEN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SYSCONFIG1_STCIEN@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w8, w11, w8
	str	w8, [x9, x10]
Lloh9:
	adrp	x11, _SYSCONFIG1_GPIO2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SYSCONFIG1_GPIO2@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	bic	w8, w8, w11
	orr	w8, w8, #0x4
	str	w8, [x9, x10]
	mov	x0, x20
	bl	_si470x_set_register
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	x21, x0
LBB0_6:
	mov	x0, x19
	bl	_v4l2_fh_release
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCONFIG1_RDSIEN,4,2          ; @SYSCONFIG1_RDSIEN
	.comm	_SYSCONFIG1,8,3                 ; @SYSCONFIG1
	.comm	_SYSCONFIG1_STCIEN,4,2          ; @SYSCONFIG1_STCIEN
	.comm	_SYSCONFIG1_GPIO2,4,2           ; @SYSCONFIG1_GPIO2
	.no_dead_strip	_si470x_fops_open
.subsections_via_symbols
