	.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	%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	%rsi, %rbx
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	8(%r15), %r14
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, -44(%rbp)
	movq	%r15, %rbx
	jmp	LBB0_7
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.6:
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_7:
	movq	(%rbx), %r12
LBB0_8:
	movq	_inv_mpu_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
LBB0_10:
	movl	%eax, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	20(%r15), %esi
	movl	-44(%rbp), %r8d
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_inv_mpu_core_probe
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movl	%eax, %edi
	callq	_iio_priv
	movq	%rax, %r12
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.14:
	movl	16(%r15), %edi
	movq	_I2C_MUX_LOCKED@GOTPCREL(%rip), %rax
	movq	_I2C_MUX_GATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_inv_mpu6050_select_bypass@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_inv_mpu6050_deselect_bypass@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_alloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	8(%r12), %rdi
	movl	%eax, (%rdi)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:
	movq	%r15, %rdi
	callq	_inv_mpu_acpi_create_mux_client
	movl	$0, %r13d
	testl	%eax, %eax
	je	LBB0_11
## %bb.17:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	callq	_i2c_mux_del_adapters
	movl	%ebx, %r13d
	jmp	LBB0_11
LBB0_18:
	movq	%r14, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_inv_mpu_match_acpi_device
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_22:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ## @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_inv_mpu_regmap_config,4,2      ## @inv_mpu_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register i2c regmap %d\n"

	.comm	_I2C_MUX_LOCKED,4,2             ## @I2C_MUX_LOCKED
	.comm	_I2C_MUX_GATE,4,2               ## @I2C_MUX_GATE
	.comm	_inv_mpu6050_select_bypass,4,2  ## @inv_mpu6050_select_bypass
	.comm	_inv_mpu6050_deselect_bypass,4,2 ## @inv_mpu6050_deselect_bypass
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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:
	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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	w0, [sp, #12]
	mov	x21, x19
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_5:
	cbz	x21, LBB0_15
; %bb.6:
	ldr	x8, [x21, #8]
	str	w8, [sp, #12]
LBB0_7:
	ldr	x21, [x21]
LBB0_8:
Lloh5:
	adrp	x1, _inv_mpu_regmap_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _inv_mpu_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	bl	_PTR_ERR
LBB0_10:
	mov	x22, x0
LBB0_11:
	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_12:
	ldr	w1, [x19, #20]
	ldr	w4, [sp, #12]
	mov	x0, x22
	mov	x2, x21
	mov	x3, #0
	bl	_inv_mpu_core_probe
	tbnz	w0, #31, LBB0_10
; %bb.13:
	mov	x0, x20
	bl	_dev_get_drvdata
	bl	_iio_priv
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.14:
	mov	w22, #0
	b	LBB0_11
LBB0_15:
	mov	x0, x20
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_22
; %bb.16:
	add	x1, sp, #12
	mov	x0, x20
	bl	_inv_mpu_match_acpi_device
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.17:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
	mov	x21, x0
Lloh11:
	adrp	x8, _I2C_MUX_LOCKED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_MUX_LOCKED@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _I2C_MUX_GATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_MUX_GATE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh17:
	adrp	x8, _inv_mpu6050_select_bypass@GOTPAGE
Lloh18:
	ldr	x8, [x8, _inv_mpu6050_select_bypass@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
Lloh20:
	adrp	x8, _inv_mpu6050_deselect_bypass@GOTPAGE
Lloh21:
	ldr	x8, [x8, _inv_mpu6050_deselect_bypass@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_i2c_mux_alloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_23
; %bb.19:
	mov	x0, x20
	bl	_dev_get_drvdata
	ldr	x8, [x21, #8]
	str	w0, [x8]
	mov	x0, x8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.20:
	mov	x0, x19
	bl	_inv_mpu_acpi_create_mux_client
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.21:
	ldr	x0, [x21, #8]
	bl	_i2c_mux_del_adapters
	b	LBB0_11
LBB0_22:
Lloh23:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_23:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ; @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_inv_mpu_regmap_config,4,2      ; @inv_mpu_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register i2c regmap %d\n"

	.comm	_I2C_MUX_LOCKED,4,2             ; @I2C_MUX_LOCKED
	.comm	_I2C_MUX_GATE,4,2               ; @I2C_MUX_GATE
	.comm	_inv_mpu6050_select_bypass,4,2  ; @inv_mpu6050_select_bypass
	.comm	_inv_mpu6050_deselect_bypass,4,2 ; @inv_mpu6050_deselect_bypass
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_inv_mpu_probe
.subsections_via_symbols
