	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_i2c_configure       ## -- Begin function st_sensors_i2c_configure
	.p2align	4, 0x90
_st_sensors_i2c_configure:              ## @st_sensors_i2c_configure
	.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, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movq	24(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_st_sensors_i2c_regmap_config@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_st_sensors_i2c_regmap_multiread_bit_config@GOTPCREL(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	addq	$4, %rbx
	movl	16(%r14), %edi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	16(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	leaq	4(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	8(%rbx), %ecx
	movl	%ecx, (%r15)
	movq	%rax, 8(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_st_sensors_i2c_regmap_multiread_bit_config,4,2 ## @st_sensors_i2c_regmap_multiread_bit_config
	.comm	_st_sensors_i2c_regmap_config,4,2 ## @st_sensors_i2c_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register i2c regmap (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_i2c_configure       ; -- Begin function st_sensors_i2c_configure
	.p2align	2
_st_sensors_i2c_configure:              ; @st_sensors_i2c_configure
	.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	x21, x0
	bl	_iio_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _st_sensors_i2c_regmap_multiread_bit_config@GOTPAGE
Lloh1:
	ldr	x9, [x9, _st_sensors_i2c_regmap_multiread_bit_config@GOTPAGEOFF]
Lloh2:
	adrp	x10, _st_sensors_i2c_regmap_config@GOTPAGE
Lloh3:
	ldr	x10, [x10, _st_sensors_i2c_regmap_config@GOTPAGEOFF]
	cmp	x8, #0
	csel	x1, x10, x9, eq
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, x20, #4
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #16]
	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_2:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	add	x8, x20, #4
	str	x8, [x21, #8]
	ldr	w9, [x20, #8]
	str	w9, [x21]
	str	x8, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19]
	mov	w0, #0
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_st_sensors_i2c_regmap_multiread_bit_config,4,2 ; @st_sensors_i2c_regmap_multiread_bit_config
	.comm	_st_sensors_i2c_regmap_config,4,2 ; @st_sensors_i2c_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register i2c regmap (%d)\n"

.subsections_via_symbols
