	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si476x_radio_g_volatile_ctrl
_si476x_radio_g_volatile_ctrl:          ## @si476x_radio_g_volatile_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	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_v4l2_ctrl_handler_to_radio
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_si476x_core_lock
	cmpl	$128, (%r15)
	jne	LBB0_6
## %bb.1:
	movl	(%r14), %edi
	callq	_si476x_core_has_diversity
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	8(%r14), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	%ebx, %edi
	callq	_SI476X_PHDIV_STATUS_LINK_LOCKED
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	(%r14), %edi
	callq	_si476x_core_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si476x_radio_g_volatile_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si476x_radio_g_volatile_ctrl
_si476x_radio_g_volatile_ctrl:          ; @si476x_radio_g_volatile_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, x0
	ldr	w0, [x0, #8]
	bl	_v4l2_ctrl_handler_to_radio
	mov	x19, x0
	ldr	w0, [x0]
	bl	_si476x_core_lock
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_si476x_core_has_diversity
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_8
; %bb.3:
	ldr	x8, [x8]
	ldr	w0, [x19]
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_SI476X_PHDIV_STATUS_LINK_LOCKED
	mov	w21, #0
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x20, #4]
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	ldr	w0, [x19]
	bl	_si476x_core_unlock
	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
LBB0_8:
Lloh2:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si476x_radio_g_volatile_ctrl
.subsections_via_symbols
