	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itg3200_reset
_itg3200_reset:                         ## @itg3200_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_ITG3200_REG_POWER_MANAGEMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ITG3200_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_itg3200_write_reg_8
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movl	$1500, %edi                     ## imm = 0x5DC
	callq	_udelay
	movq	_ITG3200_IRQ_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	_ITG3200_IRQ_PUSH_PULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ITG3200_REG_IRQ_CONFIG@GOTPCREL(%rip), %rax
	movq	_ITG3200_IRQ_LATCH_50US_PULSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ITG3200_IRQ_LATCH_CLEAR_ANY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_itg3200_write_reg_8
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	(%r14), %rdi
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset device"

	.comm	_ITG3200_REG_POWER_MANAGEMENT,4,2 ## @ITG3200_REG_POWER_MANAGEMENT
	.comm	_ITG3200_RESET,4,2              ## @ITG3200_RESET
L_.str.1:                               ## @.str.1
	.asciz	"error resetting device"

	.comm	_ITG3200_REG_IRQ_CONFIG,4,2     ## @ITG3200_REG_IRQ_CONFIG
	.comm	_ITG3200_IRQ_ACTIVE_HIGH,4,2    ## @ITG3200_IRQ_ACTIVE_HIGH
	.comm	_ITG3200_IRQ_PUSH_PULL,4,2      ## @ITG3200_IRQ_PUSH_PULL
	.comm	_ITG3200_IRQ_LATCH_50US_PULSE,4,2 ## @ITG3200_IRQ_LATCH_50US_PULSE
	.comm	_ITG3200_IRQ_LATCH_CLEAR_ANY,4,2 ## @ITG3200_IRQ_LATCH_CLEAR_ANY
L_.str.2:                               ## @.str.2
	.asciz	"error init device"

	.no_dead_strip	_itg3200_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itg3200_reset
_itg3200_reset:                         ; @itg3200_reset
	.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	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _ITG3200_REG_POWER_MANAGEMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ITG3200_REG_POWER_MANAGEMENT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ITG3200_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ITG3200_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_itg3200_write_reg_8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w0, #1500
	bl	_udelay
Lloh10:
	adrp	x8, _ITG3200_REG_IRQ_CONFIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ITG3200_REG_IRQ_CONFIG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _ITG3200_IRQ_ACTIVE_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ITG3200_IRQ_ACTIVE_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ITG3200_IRQ_PUSH_PULL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ITG3200_IRQ_PUSH_PULL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _ITG3200_IRQ_LATCH_50US_PULSE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ITG3200_IRQ_LATCH_50US_PULSE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _ITG3200_IRQ_LATCH_CLEAR_ANY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ITG3200_IRQ_LATCH_CLEAR_ANY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_itg3200_write_reg_8
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	ldr	x0, [x19]
	bl	_dev_err
LBB0_5:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset device"

	.comm	_ITG3200_REG_POWER_MANAGEMENT,4,2 ; @ITG3200_REG_POWER_MANAGEMENT
	.comm	_ITG3200_RESET,4,2              ; @ITG3200_RESET
l_.str.1:                               ; @.str.1
	.asciz	"error resetting device"

	.comm	_ITG3200_REG_IRQ_CONFIG,4,2     ; @ITG3200_REG_IRQ_CONFIG
	.comm	_ITG3200_IRQ_ACTIVE_HIGH,4,2    ; @ITG3200_IRQ_ACTIVE_HIGH
	.comm	_ITG3200_IRQ_PUSH_PULL,4,2      ; @ITG3200_IRQ_PUSH_PULL
	.comm	_ITG3200_IRQ_LATCH_50US_PULSE,4,2 ; @ITG3200_IRQ_LATCH_50US_PULSE
	.comm	_ITG3200_IRQ_LATCH_CLEAR_ANY,4,2 ; @ITG3200_IRQ_LATCH_CLEAR_ANY
l_.str.2:                               ; @.str.2
	.asciz	"error init device"

	.no_dead_strip	_itg3200_reset
.subsections_via_symbols
