	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_print_rev
_sca3000_print_rev:                     ## @sca3000_print_rev
	.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	_iio_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_SCA3000_REG_REVID_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_sca3000_read_data_short
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	_SCA3000_REG_REVID_MAJOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	movq	_SCA3000_REG_REVID_MINOR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCA3000_REG_REVID_ADDR,4,2     ## @SCA3000_REG_REVID_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sca3000 revision major=%lu, minor=%lu\n"

	.comm	_SCA3000_REG_REVID_MAJOR_MASK,4,2 ## @SCA3000_REG_REVID_MAJOR_MASK
	.comm	_SCA3000_REG_REVID_MINOR_MASK,4,2 ## @SCA3000_REG_REVID_MINOR_MASK
	.no_dead_strip	_sca3000_print_rev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_print_rev
_sca3000_print_rev:                     ; @sca3000_print_rev
	.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
	bl	_iio_priv
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SCA3000_REG_REVID_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCA3000_REG_REVID_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	bl	_sca3000_read_data_short
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCA3000_REG_REVID_MAJOR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCA3000_REG_REVID_MAJOR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w2, w9, w8
Lloh6:
	adrp	x9, _SCA3000_REG_REVID_MINOR_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCA3000_REG_REVID_MINOR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w3, w9, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_2:
	mov	x0, x19
	bl	_mutex_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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCA3000_REG_REVID_ADDR,4,2     ; @SCA3000_REG_REVID_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sca3000 revision major=%lu, minor=%lu\n"

	.comm	_SCA3000_REG_REVID_MAJOR_MASK,4,2 ; @SCA3000_REG_REVID_MAJOR_MASK
	.comm	_SCA3000_REG_REVID_MINOR_MASK,4,2 ; @SCA3000_REG_REVID_MINOR_MASK
	.no_dead_strip	_sca3000_print_rev
.subsections_via_symbols
