	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8974_probe
_ak8974_probe:                          ## @ak8974_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 32(%r15)
	leaq	28(%r15), %rdi
	callq	_mutex_init
	leaq	24(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_iio_read_mount_matrix
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.3:
	movq	_ak8974_reg_avdd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rdi
	movl	%eax, (%rdi)
	movq	_ak8974_reg_dvdd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_ARRAY_SIZE
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	_ak8974_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.35:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	20(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_34:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AK8974_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ak8974_set_power
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_ak8974_detect
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_14:
	movq	%r15, %rdi
	callq	_ak8974_selftest
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_16:
	movq	%r15, %rdi
	callq	_ak8974_reset
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_33:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_disable
	jmp	LBB0_34
LBB0_18:
	movq	_AK8974_AUTOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_put
	movq	%r14, 40(%r13)
	movq	_ak8974_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 24(%r13)
	movq	_ak8974_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_ak8974_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	16(%r15), %eax
	movl	%eax, (%r13)
	movq	_ak8974_handle_trigger@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_32
LBB0_20:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	jle	LBB0_29
## %bb.21:
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_irqd_get_trigger_type
	movq	%rax, %rbx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rbx
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_25
LBB0_23:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_26
## %bb.24:
	movl	$1, (%r15)
	leaq	L_.str.10(%rip), %rsi
LBB0_25:
	movq	%r14, %rdi
	callq	_dev_info
	movq	%rbx, %r8
LBB0_26:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orq	(%rax), %r8
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orq	(%rax), %r8
	movq	_ak8974_drdy_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ak8974_drdy_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%r15), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_29
LBB0_28:
	movl	$1, 4(%r15)
LBB0_29:
	movq	%r13, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_32:
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	_AK8974_PWR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ak8974_set_power
	jmp	LBB0_33
LBB0_30:
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mount-matrix"

	.comm	_ak8974_reg_avdd,4,2            ## @ak8974_reg_avdd
	.comm	_ak8974_reg_dvdd,4,2            ## @ak8974_reg_dvdd
L_.str.1:                               ## @.str.1
	.asciz	"cannot get regulators\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot enable regulators\n"

	.comm	_ak8974_regmap_config,4,2       ## @ak8974_regmap_config
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate register map\n"

	.comm	_AK8974_PWR_ON,4,2              ## @AK8974_PWR_ON
L_.str.4:                               ## @.str.4
	.asciz	"could not power on\n"

L_.str.5:                               ## @.str.5
	.asciz	"neither AK8974 nor AMI30x found\n"

L_.str.6:                               ## @.str.6
	.asciz	"selftest failed (continuing anyway)\n"

L_.str.7:                               ## @.str.7
	.asciz	"AK8974 reset failed\n"

	.comm	_AK8974_AUTOSUSPEND_DELAY,4,2   ## @AK8974_AUTOSUSPEND_DELAY
	.comm	_ak8974_channels,8,3            ## @ak8974_channels
	.comm	_ak8974_info,4,2                ## @ak8974_info
	.comm	_ak8974_scan_masks,4,2          ## @ak8974_scan_masks
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ak8974_handle_trigger,4,2      ## @ak8974_handle_trigger
L_.str.8:                               ## @.str.8
	.asciz	"triggered buffer setup failed\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
L_.str.9:                               ## @.str.9
	.asciz	"enable rising edge DRDY IRQ\n"

	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
L_.str.10:                              ## @.str.10
	.asciz	"enable falling edge DRDY IRQ\n"

	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_ak8974_drdy_irq,4,2            ## @ak8974_drdy_irq
	.comm	_ak8974_drdy_irq_thread,4,2     ## @ak8974_drdy_irq_thread
L_.str.11:                              ## @.str.11
	.asciz	"unable to request DRDY IRQ - proceeding without IRQ\n"

L_.str.12:                              ## @.str.12
	.asciz	"device register failed\n"

	.comm	_AK8974_PWR_OFF,4,2             ## @AK8974_PWR_OFF
	.no_dead_strip	_ak8974_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8974_probe
_ak8974_probe:                          ; @ak8974_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x0
	mov	x20, x0
	ldr	w22, [x20], #4
	mov	x0, x20
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x24
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x24, [x19, #32]
	add	x0, x19, #28
	bl	_mutex_init
	add	x2, x19, #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_iio_read_mount_matrix
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _ak8974_reg_avdd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ak8974_reg_avdd@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x0, [x19, #8]
	str	w8, [x0]
Lloh5:
	adrp	x8, _ak8974_reg_dvdd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ak8974_reg_dvdd@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x19, #8]
	mov	x0, x20
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	ldr	x1, [x19, #8]
	bl	_regulator_bulk_enable
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_pm_runtime_get_noresume
	mov	x0, x20
	bl	_pm_runtime_set_active
	mov	x0, x20
	bl	_pm_runtime_enable
Lloh8:
	adrp	x1, _ak8974_regmap_config@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ak8974_regmap_config@GOTPAGEOFF]
	mov	x0, x24
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_7:
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x23, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dev_err
LBB0_10:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh19:
	adrp	x8, _AK8974_PWR_ON@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AK8974_PWR_ON@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ak8974_set_power
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_13:
	mov	x0, x19
	bl	_ak8974_detect
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_ak8974_selftest
	cbz	w0, LBB0_17
; %bb.16:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_17:
	mov	x0, x19
	bl	_ak8974_reset
	cbz	w0, LBB0_21
; %bb.18:
	mov	x23, x0
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_19:
	mov	x0, x20
	bl	_dev_err
LBB0_20:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	ldr	x1, [x19, #8]
	bl	_regulator_bulk_disable
	b	LBB0_10
LBB0_21:
Lloh30:
	adrp	x8, _AK8974_AUTOSUSPEND_DELAY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AK8974_AUTOSUSPEND_DELAY@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x20
	bl	_pm_runtime_put
Lloh33:
	adrp	x8, _ak8974_channels@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ak8974_channels@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	stp	x0, x20, [x21, #32]
	bl	_ARRAY_SIZE
	str	w0, [x21, #24]
Lloh36:
	adrp	x8, _ak8974_info@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ak8974_info@GOTPAGEOFF]
Lloh38:
	adrp	x9, _ak8974_scan_masks@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ak8974_scan_masks@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh40:
	ldr	w8, [x9]
	str	w8, [x21, #8]
Lloh41:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	stp	w9, w8, [x21]
Lloh44:
	adrp	x8, _ak8974_handle_trigger@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ak8974_handle_trigger@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	cbz	w0, LBB0_23
; %bb.22:
	mov	x23, x0
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_34
LBB0_23:
	cmp	w22, #1
	b.lt	LBB0_32
; %bb.24:
	mov	x0, x22
	bl	_irq_get_irq_data
	bl	_irqd_get_trigger_type
	mov	x23, x0
Lloh49:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.25:
Lloh52:
	adrp	x1, l_.str.9@PAGE
Lloh53:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_28
LBB0_26:
Lloh54:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x23, x9
	b.ne	LBB0_29
; %bb.27:
	mov	w8, #1
	str	w8, [x19]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_28:
	mov	x0, x20
	bl	_dev_info
	mov	x8, x23
LBB0_29:
Lloh59:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh62:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh63:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
Lloh65:
	adrp	x10, _ak8974_drdy_irq@GOTPAGE
Lloh66:
	ldr	x10, [x10, _ak8974_drdy_irq@GOTPAGEOFF]
	orr	x4, x8, x9
Lloh67:
	ldr	w2, [x10]
Lloh68:
	adrp	x8, _ak8974_drdy_irq_thread@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ak8974_drdy_irq_thread@GOTPAGEOFF]
Lloh70:
	ldr	w3, [x8]
	ldr	w5, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_31
; %bb.30:
Lloh71:
	adrp	x1, l_.str.11@PAGE
Lloh72:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_32
LBB0_31:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_32:
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_10
; %bb.33:
Lloh73:
	adrp	x1, l_.str.12@PAGE
Lloh74:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_34:
	mov	x0, x20
	bl	_pm_runtime_put_noidle
	mov	x0, x20
	bl	_pm_runtime_disable
Lloh75:
	adrp	x8, _AK8974_PWR_OFF@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AK8974_PWR_OFF@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ak8974_set_power
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mount-matrix"

	.comm	_ak8974_reg_avdd,4,2            ; @ak8974_reg_avdd
	.comm	_ak8974_reg_dvdd,4,2            ; @ak8974_reg_dvdd
l_.str.1:                               ; @.str.1
	.asciz	"cannot get regulators\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot enable regulators\n"

	.comm	_ak8974_regmap_config,4,2       ; @ak8974_regmap_config
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate register map\n"

	.comm	_AK8974_PWR_ON,4,2              ; @AK8974_PWR_ON
l_.str.4:                               ; @.str.4
	.asciz	"could not power on\n"

l_.str.5:                               ; @.str.5
	.asciz	"neither AK8974 nor AMI30x found\n"

l_.str.6:                               ; @.str.6
	.asciz	"selftest failed (continuing anyway)\n"

l_.str.7:                               ; @.str.7
	.asciz	"AK8974 reset failed\n"

	.comm	_AK8974_AUTOSUSPEND_DELAY,4,2   ; @AK8974_AUTOSUSPEND_DELAY
	.comm	_ak8974_channels,8,3            ; @ak8974_channels
	.comm	_ak8974_info,4,2                ; @ak8974_info
	.comm	_ak8974_scan_masks,4,2          ; @ak8974_scan_masks
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ak8974_handle_trigger,4,2      ; @ak8974_handle_trigger
l_.str.8:                               ; @.str.8
	.asciz	"triggered buffer setup failed\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
l_.str.9:                               ; @.str.9
	.asciz	"enable rising edge DRDY IRQ\n"

	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
l_.str.10:                              ; @.str.10
	.asciz	"enable falling edge DRDY IRQ\n"

	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_ak8974_drdy_irq,4,2            ; @ak8974_drdy_irq
	.comm	_ak8974_drdy_irq_thread,4,2     ; @ak8974_drdy_irq_thread
l_.str.11:                              ; @.str.11
	.asciz	"unable to request DRDY IRQ - proceeding without IRQ\n"

l_.str.12:                              ; @.str.12
	.asciz	"device register failed\n"

	.comm	_AK8974_PWR_OFF,4,2             ; @AK8974_PWR_OFF
	.no_dead_strip	_ak8974_probe
.subsections_via_symbols
