	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4350_reg_access
_adf4350_reg_access:                    ## @adf4350_reg_access
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movq	_ADF4350_REG5@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_lock
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$2, %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	andl	%r12d, %eax
	movq	(%r15), %rcx
	movl	%r13d, %edx
	movl	%eax, (%rcx,%rdx,4)
	movq	%r15, %rdi
	callq	_adf4350_sync_config
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF4350_REG5,4,2               ## @ADF4350_REG5
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adf4350_reg_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4350_reg_access
_adf4350_reg_access:                    ; @adf4350_reg_access
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_iio_priv
Lloh0:
	adrp	x8, _ADF4350_REG5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADF4350_REG5@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	cbz	x23, LBB0_4
; %bb.3:
	mov	w21, #0
	ldr	x8, [x22, #8]
	ldr	w8, [x8, w20, uxtw #2]
	str	w8, [x23]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	bl	_BIT
	mov	x23, x0
	mov	w0, #1
	bl	_BIT
	orr	w23, w0, w23
	mov	w0, #2
	bl	_BIT
	orr	w8, w23, w0
	bic	w8, w21, w8
	ldr	x9, [x22]
	str	w8, [x9, w20, uxtw #2]
	mov	x0, x22
	bl	_adf4350_sync_config
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF4350_REG5,4,2               ; @ADF4350_REG5
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adf4350_reg_access
.subsections_via_symbols
