	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_i2c_probe
_mpu3050_i2c_probe:                     ## @mpu3050_i2c_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	movq	(%rbx), %r15
	movq	_mpu3050_i2c_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_mpu3050_common_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movl	%eax, %edi
	callq	_iio_priv
	movq	%rax, %r15
	movl	4(%r14), %edi
	movq	_I2C_MUX_LOCKED@GOTPCREL(%rip), %rax
	movq	_I2C_MUX_GATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_mpu3050_i2c_bypass_select@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_mpu3050_i2c_bypass_deselect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r15, (%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
	.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	_mpu3050_i2c_regmap_config,4,2  ## @mpu3050_i2c_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	_mpu3050_i2c_bypass_select,4,2  ## @mpu3050_i2c_bypass_select
	.comm	_mpu3050_i2c_bypass_deselect,4,2 ## @mpu3050_i2c_bypass_deselect
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate I2C mux\n"

	.no_dead_strip	_mpu3050_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_i2c_probe
_mpu3050_i2c_probe:                     ; @mpu3050_i2c_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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
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_4
; %bb.1:
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x21, [x20]
Lloh3:
	adrp	x1, _mpu3050_i2c_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _mpu3050_i2c_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	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_4:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_mpu3050_common_probe
	cbnz	w0, LBB0_7
; %bb.9:
	mov	x0, x19
	bl	_dev_get_drvdata
	bl	_iio_priv
	mov	x20, x0
Lloh11:
	adrp	x8, _I2C_MUX_LOCKED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_MUX_LOCKED@GOTPAGEOFF]
	ldr	w0, [x19, #4]
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, _mpu3050_i2c_bypass_select@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mpu3050_i2c_bypass_select@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
Lloh20:
	adrp	x8, _mpu3050_i2c_bypass_deselect@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mpu3050_i2c_bypass_deselect@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	bl	_i2c_mux_alloc
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.10:
	str	x20, [x0]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	b	LBB0_12
LBB0_11:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	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 AdrpAdd	Lloh23, Lloh24
	.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	_mpu3050_i2c_regmap_config,4,2  ; @mpu3050_i2c_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	_mpu3050_i2c_bypass_select,4,2  ; @mpu3050_i2c_bypass_select
	.comm	_mpu3050_i2c_bypass_deselect,4,2 ; @mpu3050_i2c_bypass_deselect
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate I2C mux\n"

	.no_dead_strip	_mpu3050_i2c_probe
.subsections_via_symbols
