	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_gyroadc_read_raw
_rcar_gyroadc_read_raw:                 ## @rcar_gyroadc_read_raw
	.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	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r13
	movq	(%r14), %rdi
	callq	_RCAR_GYROADC_REALTIME_DATA
	movq	_RCAR_GYROADC_MODE_SELECT_1_MB88101A@GOTPCREL(%rip), %rcx
	movq	(%r13), %rdx
	movq	16(%r13), %rsi
	cmpq	(%rcx), %rdx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	leaq	(%rsi,%rcx,8), %rsi
LBB0_2:
	movq	(%rsi), %rdi
	cmpq	$128, %r12
	je	LBB0_10
## %bb.3:
	cmpq	$129, %r12
	je	LBB0_13
## %bb.4:
	cmpq	$130, %r12
	jne	LBB0_12
## %bb.5:
	movl	8(%r14), %edx
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_12
## %bb.6:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_rcar_gyroadc_set_power
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:
	movl	%r14d, %edi
	addl	12(%r13), %edi
	callq	_readl
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movl	8(%r13), %edi
	callq	_BIT
	decl	%eax
	andl	%eax, (%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_rcar_gyroadc_set_power
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	jns	LBB0_14
	jmp	LBB0_16
LBB0_10:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_regulator_get_voltage
	movl	%eax, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movb	8(%r13), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_13:
	movq	_RCAR_GYROADC_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_14:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_iio_device_release_direct_mode
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_GYROADC_MODE_SELECT_1_MB88101A,8,3 ## @RCAR_GYROADC_MODE_SELECT_1_MB88101A
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_RCAR_GYROADC_SAMPLE_RATE,4,2   ## @RCAR_GYROADC_SAMPLE_RATE
	.no_dead_strip	_rcar_gyroadc_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_gyroadc_read_raw
_rcar_gyroadc_read_raw:                 ; @rcar_gyroadc_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x0, [x24]
	bl	_RCAR_GYROADC_REALTIME_DATA
	mov	x22, x0
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _RCAR_GYROADC_MODE_SELECT_1_MB88101A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCAR_GYROADC_MODE_SELECT_1_MB88101A@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x20, #16]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x24]
	add	x8, x8, x9, lsl #3
LBB0_2:
	ldr	x0, [x8]
	cmp	x25, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	x25, #129
	b.eq	LBB0_13
; %bb.4:
	cmp	x25, #130
	b.ne	LBB0_12
; %bb.5:
	ldr	w8, [x24, #8]
Lloh3:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.6:
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x21
	bl	_iio_device_claim_direct_mode
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.8:
	mov	x0, x20
	mov	w1, #1
	bl	_rcar_gyroadc_set_power
	tbnz	w0, #31, LBB0_16
; %bb.9:
	ldr	w8, [x20, #12]
	add	w0, w8, w22
	bl	_readl
	str	w0, [x19]
	ldr	w0, [x20, #8]
	bl	_BIT
	sub	w8, w0, #1
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_rcar_gyroadc_set_power
	mov	x19, x0
	mov	x0, x21
	bl	_iio_device_release_direct_mode
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w23, w19, w8, lt
	b	LBB0_15
LBB0_10:
	cbz	x0, LBB0_12
; %bb.11:
	bl	_regulator_get_voltage
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w0, w8
	lsr	x8, x8, #38
	str	w8, [x19]
	ldr	w8, [x20, #8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x23]
Lloh9:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x8, _RCAR_GYROADC_SAMPLE_RATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RCAR_GYROADC_SAMPLE_RATE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh17:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_14:
	ldr	w23, [x8]
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x23, x0
	mov	x0, x21
	bl	_iio_device_release_direct_mode
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_GYROADC_MODE_SELECT_1_MB88101A,8,3 ; @RCAR_GYROADC_MODE_SELECT_1_MB88101A
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_RCAR_GYROADC_SAMPLE_RATE,4,2   ; @RCAR_GYROADC_SAMPLE_RATE
	.no_dead_strip	_rcar_gyroadc_read_raw
.subsections_via_symbols
