	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itg3200_initial_setup
_itg3200_initial_setup:                 ## @itg3200_initial_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_itg3200_reset
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_ITG3200_REG_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_itg3200_read_reg_8
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-20(%rbp), %edx
	movl	%edx, %eax
	andl	$126, %eax
	cmpl	$104, %eax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_itg3200_enable_full_scale
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ITG3200_REG_ADDRESS,4,2        ## @ITG3200_REG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid reg value 0x%02x"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_itg3200_initial_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itg3200_initial_setup
_itg3200_initial_setup:                 ; @itg3200_initial_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_itg3200_reset
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ITG3200_REG_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ITG3200_REG_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_itg3200_read_reg_8
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w2, [sp, #12]
	and	w8, w2, #0x7e
	cmp	w8, #104
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_itg3200_enable_full_scale
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ITG3200_REG_ADDRESS,4,2        ; @ITG3200_REG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid reg value 0x%02x"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_itg3200_initial_setup
.subsections_via_symbols
