	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2497_probe
_ltc2497_probe:                         ## @ltc2497_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, %r12
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, 16(%r14)
	movq	%rbx, (%r15)
	movl	(%r12), %eax
	movl	%eax, 32(%r15)
	movq	_ltc2497_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ltc2497_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_11:
	movq	16(%r14), %rdi
	movq	_LTC2497_CONFIG_DEFAULT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_15
LBB0_13:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_map_array_unregister
LBB0_14:
	movl	(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ltc2497_info,4,2               ## @ltc2497_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ltc2497_channel,4,2            ## @ltc2497_channel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

L_.str.1:                               ## @.str.1
	.asciz	"iio map err: %d\n"

	.comm	_LTC2497_CONFIG_DEFAULT,4,2     ## @LTC2497_CONFIG_DEFAULT
	.no_dead_strip	_ltc2497_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2497_probe
_ltc2497_probe:                         ; @ltc2497_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	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
	ldr	w0, [x0, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x21, [x19, #16]
	str	x21, [x20]
	ldr	w8, [x22]
	str	w8, [x20, #32]
Lloh6:
	adrp	x8, _ltc2497_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ltc2497_info@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ltc2497_channel@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ltc2497_channel@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_8
; %bb.3:
	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_4:
Lloh16:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	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
	ret
LBB0_8:
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_12
; %bb.9:
	ldr	x1, [x21]
	cbz	x1, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_iio_map_array_register
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
	b	LBB0_17
LBB0_12:
	mov	x22, x0
	b	LBB0_7
LBB0_13:
	ldr	x0, [x19, #16]
Lloh22:
	adrp	x21, _LTC2497_CONFIG_DEFAULT@GOTPAGE
Lloh23:
	ldr	x21, [x21, _LTC2497_CONFIG_DEFAULT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_16
; %bb.14:
	ldr	w8, [x21]
	str	w8, [x19, #8]
	bl	_ktime_get
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w22, #0
	b	LBB0_7
LBB0_16:
	mov	x22, x0
	mov	x0, x20
	bl	_iio_map_array_unregister
LBB0_17:
	ldr	w0, [x19]
	bl	_regulator_disable
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ltc2497_info,4,2               ; @ltc2497_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ltc2497_channel,4,2            ; @ltc2497_channel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

l_.str.1:                               ; @.str.1
	.asciz	"iio map err: %d\n"

	.comm	_LTC2497_CONFIG_DEFAULT,4,2     ; @LTC2497_CONFIG_DEFAULT
	.no_dead_strip	_ltc2497_probe
.subsections_via_symbols
