	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_probe
_bmc150_accel_probe:                    ## @bmc150_accel_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	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_2:
	movq	_bmc150_regmap_conf@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rcx
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	movl	(%rbx), %edx
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmc150_accel_core_probe        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_bmc150_regmap_conf,4,2         ## @bmc150_regmap_conf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize i2c regmap\n"

	.no_dead_strip	_bmc150_accel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_probe
_bmc150_accel_probe:                    ; @bmc150_accel_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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cmp	x0, #0
	cset	w21, ne
LBB0_3:
Lloh6:
	adrp	x1, _bmc150_regmap_conf@GOTPAGE
Lloh7:
	ldr	x1, [x1, _bmc150_regmap_conf@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x19, #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, 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	_PTR_ERR
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x3, [x20]
	b	LBB0_8
LBB0_7:
	mov	x3, #0
LBB0_8:
	ldr	w2, [x19], #4
	mov	x0, x19
	mov	x1, x22
	mov	x4, 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	_bmc150_accel_core_probe
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_bmc150_regmap_conf,4,2         ; @bmc150_regmap_conf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize i2c regmap\n"

	.no_dead_strip	_bmc150_accel_probe
.subsections_via_symbols
