	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_gyroadc_probe
_rcar_gyroadc_probe:                    ## @rcar_gyroadc_probe
	.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, %rbx
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movl	8(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_13
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	callq	_rcar_gyroadc_parse_subdevs
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	callq	_rcar_gyroadc_init_supplies
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%rbx, 24(%r14)
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	_rcar_gyroadc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	4(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movq	_RCAR_GYROADC_RUNTIME_PM_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%rbx, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%rbx, %rdi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_pm_runtime_get_sync
	movq	%r15, %rdi
	callq	_rcar_gyroadc_hw_init
	movq	%r15, %rdi
	callq	_rcar_gyroadc_hw_start
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_rcar_gyroadc_hw_stop
	movq	%rbx, %rdi
	callq	_pm_runtime_put_sync
	movq	%rbx, %rdi
	callq	_pm_runtime_disable
	movq	%rbx, %rdi
	callq	_pm_runtime_set_suspended
	movl	4(%r15), %edi
	callq	_clk_disable_unprepare
LBB0_12:
	movq	%r14, %rdi
	callq	_rcar_gyroadc_deinit_supplies
	jmp	LBB0_13
LBB0_15:
	movq	%rbx, %rdi
	callq	_pm_runtime_put_sync
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fck"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get IF clock (ret=%i)\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_rcar_gyroadc_iio_info,4,2      ## @rcar_gyroadc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.2:                               ## @.str.2
	.asciz	"Could not prepare or enable the IF clock.\n"

	.comm	_RCAR_GYROADC_RUNTIME_PM_DELAY_MS,4,2 ## @RCAR_GYROADC_RUNTIME_PM_DELAY_MS
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't register IIO device.\n"

	.no_dead_strip	_rcar_gyroadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_gyroadc_probe
_rcar_gyroadc_probe:                    ; @rcar_gyroadc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #16]
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x21, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x21, #4]
	bl	_PTR_ERR
	mov	x22, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.7:
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_rcar_gyroadc_parse_subdevs
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.9:
	mov	x0, x20
	bl	_rcar_gyroadc_init_supplies
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.10:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh13:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x19, [x20, #24]
	ldr	w8, [x19]
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _rcar_gyroadc_iio_info@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rcar_gyroadc_iio_info@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh18:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w0, [x21, #4]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _RCAR_GYROADC_RUNTIME_PM_DELAY_MS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RCAR_GYROADC_RUNTIME_PM_DELAY_MS@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x21
	bl	_rcar_gyroadc_hw_init
	mov	x0, x21
	bl	_rcar_gyroadc_hw_start
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.13:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_rcar_gyroadc_hw_stop
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	ldr	w0, [x21, #4]
	bl	_clk_disable_unprepare
LBB0_14:
	mov	x0, x20
	bl	_rcar_gyroadc_deinit_supplies
	b	LBB0_4
LBB0_15:
	mov	x0, x19
	bl	_pm_runtime_put_sync
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fck"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get IF clock (ret=%i)\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_rcar_gyroadc_iio_info,4,2      ; @rcar_gyroadc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.2:                               ; @.str.2
	.asciz	"Could not prepare or enable the IF clock.\n"

	.comm	_RCAR_GYROADC_RUNTIME_PM_DELAY_MS,4,2 ; @RCAR_GYROADC_RUNTIME_PM_DELAY_MS
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't register IIO device.\n"

	.no_dead_strip	_rcar_gyroadc_probe
.subsections_via_symbols
