	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iadc_probe
_iadc_probe:                            ## @iadc_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	%rdi, %r13
	leaq	8(%rdi), %r15
	movq	16(%rdi), %rbx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	leaq	32(%rbx), %rdi
	callq	_init_completion
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:
	movl	-48(%rbp), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_iadc_version_check
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_iadc_rsense_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	_IADC_INT_RSENSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_IADC_EXT_RSENSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_13
## %bb.6:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_iadc_reset
	testl	%eax, %eax
	js	LBB0_20
## %bb.9:
	cmpl	$0, (%rbx)
	je	LBB0_21
## %bb.10:
	movq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
LBB0_11:
	movq	%rbx, %rdi
	callq	_iadc_update_offset
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	%r15, 32(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r14)
	movl	(%r13), %eax
	movl	%eax, 20(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_iadc_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_iadc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_device_register
LBB0_13:
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_24
LBB0_21:
	movq	_iadc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.22:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_enable_irq_wake
	jmp	LBB0_11
LBB0_23:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
LBB0_24:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"sense resistors %d and %d micro Ohm\n"

	.comm	_IADC_INT_RSENSE,8,3            ## @IADC_INT_RSENSE
	.comm	_IADC_EXT_RSENSE,8,3            ## @IADC_EXT_RSENSE
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"reset failed\n"

	.comm	_iadc_isr,4,2                   ## @iadc_isr
L_.str.3:                               ## @.str.3
	.asciz	"spmi-iadc"

L_.str.4:                               ## @.str.4
	.asciz	"failed offset calibration\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_iadc_info,4,2                  ## @iadc_info
	.comm	_iadc_channels,4,2              ## @iadc_channels
	.no_dead_strip	_iadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iadc_probe
_iadc_probe:                            ; @iadc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	add	x19, x0, #8
	ldr	x22, [x0, #16]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	str	x19, [x0, #8]
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x23, #36]
	cbz	w0, LBB0_7
; %bb.2:
	add	x0, x23, #32
	bl	_init_completion
	add	x0, x23, #28
	bl	_mutex_init
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x23, #24]
	mov	x0, x23
	bl	_iadc_version_check
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	bl	_iadc_rsense_read
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldp	x0, x8, [x23, #8]
Lloh2:
	adrp	x9, _IADC_INT_RSENSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IADC_INT_RSENSE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _IADC_EXT_RSENSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IADC_EXT_RSENSE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x25, x0
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_11
; %bb.6:
	mov	x24, x25
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	tbz	w25, #31, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x23]
LBB0_13:
	mov	x0, x23
	bl	_iadc_reset
	tbnz	w0, #31, LBB0_18
; %bb.14:
	ldr	w8, [x23]
	cbz	w8, LBB0_19
; %bb.15:
	ldr	x0, [x23, #8]
	mov	w1, #1
	bl	_device_init_wakeup
LBB0_16:
	mov	x0, x23
	bl	_iadc_update_offset
	tbnz	w0, #31, LBB0_21
; %bb.17:
	stp	x22, x19, [x20, #24]
	ldr	w8, [x21]
Lloh17:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _iadc_info@GOTPAGE
Lloh21:
	ldr	x10, [x10, _iadc_info@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
	str	x10, [x20, #8]
Lloh22:
	adrp	x8, _iadc_channels@GOTPAGE
Lloh23:
	ldr	x8, [x8, _iadc_channels@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x24, x0
	b	LBB0_10
LBB0_18:
	mov	x24, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x8, _iadc_isr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _iadc_isr@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x4, l_.str.3@PAGE
Lloh31:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x25
	mov	w3, #0
	mov	x5, x23
	bl	_devm_request_irq
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.20:
	mov	x0, x25
	bl	_enable_irq_wake
	b	LBB0_16
LBB0_21:
	mov	x24, x0
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"sense resistors %d and %d micro Ohm\n"

	.comm	_IADC_INT_RSENSE,8,3            ; @IADC_INT_RSENSE
	.comm	_IADC_EXT_RSENSE,8,3            ; @IADC_EXT_RSENSE
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"reset failed\n"

	.comm	_iadc_isr,4,2                   ; @iadc_isr
l_.str.3:                               ; @.str.3
	.asciz	"spmi-iadc"

l_.str.4:                               ; @.str.4
	.asciz	"failed offset calibration\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_iadc_info,4,2                  ; @iadc_info
	.comm	_iadc_channels,4,2              ; @iadc_channels
	.no_dead_strip	_iadc_probe
.subsections_via_symbols
