	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itg3200_read_reg_s16
_itg3200_read_reg_s16:                  ## @itg3200_read_reg_s16
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_iio_priv
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movl	$1, -76(%rbp)
	leaq	-88(%rbp), %rdx
	movq	%rdx, -72(%rbp)
	movl	8(%rax), %edx
	movl	%edx, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, -56(%rbp)
	movl	$2, -52(%rbp)
	leaq	-84(%rbp), %r15
	movq	%r15, -48(%rbp)
	movl	%edx, -40(%rbp)
	orl	$128, %ebx
	movl	%ebx, -88(%rbp)
	movl	4(%rax), %edi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_be16_to_cpus
	movl	-84(%rbp), %ecx
	xorl	%eax, %eax
	cmpl	$2, %ebx
	cmovnel	%ebx, %eax
	movl	%ecx, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_itg3200_read_reg_s16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itg3200_read_reg_s16
_itg3200_read_reg_s16:                  ; @itg3200_read_reg_s16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_iio_priv
	ldr	x8, [x0]
	ldr	w9, [x8]
	mov	w10, #1
	stp	w9, w10, [sp, #8]
	add	x10, sp, #4
	str	x10, [sp, #16]
	ldr	w10, [x8, #8]
Lloh3:
	adrp	x11, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x11, [x11, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w10, [sp, #24]
	str	w9, [sp, #32]
	mov	w9, #2
	str	w9, [sp, #36]
	mov	x9, sp
	str	x9, [sp, #40]
	str	w10, [sp, #48]
	orr	w9, w20, #0x80
	str	w9, [sp, #4]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	mov	x20, x0
	mov	x0, sp
	bl	_be16_to_cpus
	ldr	w8, [sp]
	str	w8, [x19]
	cmp	w20, #2
	csel	w0, wzr, w20, eq
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_itg3200_read_reg_s16
.subsections_via_symbols
