	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inv_mpu_probe
_inv_mpu_probe:                         ## @inv_mpu_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
	callq	_spi_get_device_id
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rcx
	addq	$8, %rax
	movq	(%rcx), %r14
	jmp	LBB0_4
LBB0_2:
	leaq	8(%rbx), %rsi
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_acpi_match_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	(%rax), %r12
	movq	_inv_mpu_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_spi
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	addq	$8, %rbx
	movq	%r15, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movl	(%rbx), %esi
	movq	_inv_mpu_i2c_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%r12d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inv_mpu_core_probe             ## TAILCALL
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_inv_mpu_regmap_config,4,2      ## @inv_mpu_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register spi regmap %d\n"

	.comm	_inv_mpu_i2c_disable,4,2        ## @inv_mpu_i2c_disable
	.no_dead_strip	_inv_mpu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inv_mpu_probe
_inv_mpu_probe:                         ; @inv_mpu_probe
	.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	x19, x0
	bl	_spi_get_device_id
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x0], #8
	b	LBB0_4
LBB0_2:
	mov	x1, x19
	ldr	x8, [x1, #8]!
	ldr	w0, [x8]
	bl	_acpi_match_device
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, #0
LBB0_4:
	ldr	x22, [x0]
Lloh0:
	adrp	x1, _inv_mpu_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _inv_mpu_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_spi
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	add	x19, x19, #8
	mov	x0, x21
	bl	_PTR_ERR
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	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
	b	_PTR_ERR
LBB0_6:
	ldr	w1, [x19]
Lloh4:
	adrp	x8, _inv_mpu_i2c_disable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _inv_mpu_i2c_disable@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x4, x22
	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
	b	_inv_mpu_core_probe
LBB0_7:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_inv_mpu_regmap_config,4,2      ; @inv_mpu_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register spi regmap %d\n"

	.comm	_inv_mpu_i2c_disable,4,2        ; @inv_mpu_i2c_disable
	.no_dead_strip	_inv_mpu_probe
.subsections_via_symbols
